我喜欢 BitBucket.org
但是有没有办法配置 BitBucket 接受电子邮件并自动将它们放入我的“新邮件”中' 问题跟踪器中的问题列表?
BitBucket 发送电子邮件通知,但我想要相反的东西。我不想每次有人向我发送有关问题的电子邮件时都必须手动创建问题。我想将这些电子邮件转发到 Bitbucket,以便问题可以通过电子邮件直接进入问题跟踪器。
并且:同样,您是否可以配置 Bitbucket,以便它侦听代码签入并自动神奇地将问题设置为完成/修复等?
有办法吗?
I Love BitBucket.org
But is there a way to configure BitBucket to accept email and automatically put them into my 'New' Issue list in the issue tracker?
BitBucket sends out email notifications, but I want something the other way around. I don't want to have to go in and create an issue manually each time someone emails me about a problem. I want to forward those emails to Bitbucket so problems to go directly into the issue tracker via E-Mail.
And: Similarly, can you configure Bitbucket so that it listens for code check-ins and it auto-magically set issues to complete/fixed etc.?
Is there a way?
发布评论
评论(4)
我认为没有办法通过电子邮件提交问题,现在 Atlassian 已经购买了 Bitbucket,我对此表示怀疑他们将花费大量时间改进或增强 Bitbucket 内部的问题跟踪,因为他们的主要产品(JIRA)是一个非常全面的问题跟踪器。
我更希望两者能够进行某种程度的整合,并逐步淘汰当前的问题跟踪器。但随后我们可能需要付费:-(
I don't think there is a way to submit issues via email and now that Atlassian has bought Bitbucket I doubt that they will spend much time improving or enhancing the issue tracking inside Bitbucket as their main product (JIRA) is an very comprehensive issue tracker.
I would sooner expect some sort of integration of the two and a phase out of the current issue tracker. But then we will probably have to pay :-(
重新添加电子邮件:
是的,您可以这样做 - 您需要有一个接收电子邮件的端点,例如 sendgrid 允许这样做(请参阅 Sendgrid webhooks 文档),每当有电子邮件进来时就会调用服务器上的 webhook。然后,您需要在服务器上使用一些粘合代码来发布该邮件通过 bitbucket API 向 bitbucket 发出问题 (请参阅 bitbucket api 文档)。因此,执行此操作分为两个部分,我认为您需要编写一些代码。
我目前正在项目页面开发一个工具来执行此操作。如果有人想尝试一下,请告诉我。我还计划让它询问用户以获取有关与问题相关的优先级和 URL 等更多详细信息。
关于您问题的第二部分:
是的,您可以自动关闭问题 - 只需使用文本修复 #n,例如:
在提交消息中,其中 123 是您要关闭的问题的编号。
Re adding emails:
Yes you can do this - you need to have an endpoint that receives emails, so for example sendgrid allows this (see Sendgrid webhooks docs), and will call a webhook on your server whenever an email comes in. You then need a bit of glue code on the server to post that issue to bitbucket via the bitbucket API (see the bitbucket api docs). So there are two parts to doing this, and you will need to write some code I think.
I'm currently working on a tool to do just this at Project Page. If anyone would like to try it out let me know. I'm also planning to let it interrogate the user to get a bit more detail about things like priority and urls associated with the problem.
Re the second part of your question:
Yes you can close issues automatically - just use the text fixes #n, so for example:
in the commit message, where 123 is the number of the issue you want to close.
有一个API可以创建问题 http://confluence.atlassian.com/display/BBDEV/Issues< /a>.
以及一个自定义脚本,它可能能够获取电子邮件并发布到问题跟踪器。
There is a API to create issue http://confluence.atlassian.com/display/BBDEV/Issues.
And a custom script which may or could be able to fetch email and post to issue tracker.
是的,这是可能的。 Bitbucket 拥有强大的 REST API,您可以通过至少两种方式完成此操作:
选项 1:第 3 方服务
使用在线 API 自动化服务,例如
(点击这些链接对于特定的电子邮件/Bitbucket 集成示例。)
对于这种方法,您有多种选择。例如,使用 Zapier,您可以拥有一个专用的仅限问题的 Gmail 地址,发送到该地址的任何电子邮件都会创建一个新的问题票证。或者,您只需为现有 Gmail 帐户中的电子邮件分配特定标签即可自动创建问题。
奇怪的是,IFTTT 目前不提供 Bitbucket 集成。
选项 2:编写您自己的服务器脚本
如果您具有服务器访问权限,则可以配置消息传输代理以将某些电子邮件发送到 PHP 脚本,从而创建 Bitbucket 问题。
有关此方法的一篇很棒的操作方法文章是 使用 Exim 的 PHP 脚本处理传入邮件< /a>.
Yes, it's possible. Bitbucket has a robust REST API that lets you do it at least two ways:
Option 1: 3rd Party Service
Use an online API automation service like
(Click those links for specific email/Bitbucket integration examples.)
You have a couple of options with this approach. With Zapier, for example, you can have a dedicated Issue-only Gmail address, and any email sent to it creates a new Issues ticket. OR you can automatically create Issues just by assigning a specific label to an email in an existing Gmail account.
Oddly, IFTTT doesn't currently offer Bitbucket integration.
Option 2: Write Your Own Server Script
If you have server access, you can configure your Message Transfer Agent to send certain emails to a PHP script that will create a Bitbucket Issue.
A great how-to article for this approach is Process Incoming Mail with PHP Script with Exim.