Automatically link branch and assign bug based on heuristics

Bug #826845 reported by Jamu Kakar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Many people use a branch naming format like '<branch>-<bug#>'. It
would be great if, whenever such a branch was pushed, Launchpad found
the related bug, linked the branch to it, marked it as 'In Progress'
and assigned the branch owner to it.

Revision history for this message
Aaron Bentley (abentley) wrote :

Note that you can already explicitly indicate a link to a bug using "commit --fixes"
There is also an lp-link-bug command in lp:~launchpad/lpreview-body/trunk that uses the API.

Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Jamu Kakar (jkakar) wrote :

Aaron, thanks. I knew about --fixes but not lp-link-bug. Even then,
I shouldn't have to do anything special. There are many opportunities
for Launchpad to just know what I want and do it for me, this is one
of them. I can think of cases where this kind of simple heuristic
might cause problems, but they're all cases that happen infrequently.
These little boring tasks create friction, it'd be great to see them
go.

I'm pretty sure there's already a bug about it, but another thing that
Launchpad should do is mark a bug as 'Fix Committed' when a linked
branch is merged. It's another case where this is exactly what you
want 99% of the time.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 826845] Re: Automatically link branch and assign bug based on heuristics

On 16 August 2011 07:11, Jamu Kakar <email address hidden> wrote:
> Aaron, thanks.  I knew about --fixes but not lp-link-bug.  Even then,
> I shouldn't have to do anything special.  There are many opportunities
> for Launchpad to just know what I want and do it for me, this is one
> of them.  I can think of cases where this kind of simple heuristic
> might cause problems, but they're all cases that happen infrequently.
> These little boring tasks create friction, it'd be great to see them
> go.

I think that's a really interesting point: there was recently a
heuristic added whereby when you click "link a branch", Launchpad will
suggest branches that contain the bug number. But why even make
people do that? It would be pretty useful for Launchpad to show a
link to "probably related branches".

>
> I'm pretty sure there's already a bug about it, but another thing that
> Launchpad should do is mark a bug as 'Fix Committed' when a linked
> branch is merged.  It's another case where this is exactly what you
> want 99% of the time.

Yep, bug 318439.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.