如何通过电子邮件将问题发送到 BitBucket?

发布于 2024-09-26 02:50:37 字数 344 浏览 6 评论 0 原文

我喜欢 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

戏蝶舞 2024-10-03 02:50:37

我认为没有办法通过电子邮件提交问题,现在 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 :-(

暖心男生 2024-10-03 02:50:37

重新添加电子邮件:

我想将这些电子邮件转发到 Bitbucket,以便问题可以通过电子邮件直接进入问题跟踪器。

是的,您可以这样做 - 您需要有一个接收电子邮件的端点,例如 sendgrid 允许这样做(请参阅 Sendgrid webhooks 文档),每当有电子邮件进来时就会调用服务器上的 webhook。然后,您需要在服务器上使用一些粘合代码来发布该邮件通过 bitbucket API 向 bitbucket 发出问题 (请参阅 bitbucket api 文档)。因此,执行此操作分为两个部分,我认为您需要编写一些代码。

我目前正在项目页面开发一个工具来执行此操作。如果有人想尝试一下,请告诉我。我还计划让它询问用户以获取有关与问题相关的优先级和 URL 等更多详细信息。

关于您问题的第二部分:

同样,您可以配置 Bitbucket 以便它侦听代码签入并自动神奇地将问题设置为完成/修复等吗?

是的,您可以自动关闭问题 - 只需使用文本修复 #n,例如:

fixes #123 

在提交消息中,其中 123 是您要关闭的问题的编号。

Re adding emails:

I want to forward those emails to Bitbucket so problems to go directly into the issue tracker via E-Mail.

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:

Similarly, can you configure Bitbucket so that it listens for code check-ins and it auto-magically set issues to complete/fixed etc.?

Yes you can close issues automatically - just use the text fixes #n, so for example:

fixes #123 

in the commit message, where 123 is the number of the issue you want to close.

横笛休吹塞上声 2024-10-03 02:50:37

有一个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.

任性一次 2024-10-03 02:50:37

是的,这是可能的。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文