New issue
Advanced search Search tips

Issue 778252 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Extract bug number from branch name in git cl upload

Project Member Reported by battre@chromium.org, Oct 25 2017

Issue description

It would be nice if git cl upload would extract the bug number from the git branch and prepopulate the CL description with this value.

For example
1) git checkout master
2) git checkout -b bug-123-fix-foobar
3) $fixing and committing
4) git cl upload
--> the template should contain the line
Bug:  123 
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/depot_tools/+/7d1c484ecd93e94c5258dc330602ac37c5efab44

commit 7d1c484ecd93e94c5258dc330602ac37c5efab44
Author: Dominic Battre <battre@chromium.org>
Date: Fri Oct 27 17:04:03 2017

Extract bug number from branch name for git cl upload

If you name your branches "bug-123-fix-foobar" or "123-fix-foobar", git cl
upload will automatically populate the "Bug: " line in the cl description with
123.

Bug:  778252 
Change-Id: I5bf570d5d44e8681c552a52a8b5ed0c64ce82284
Reviewed-on: https://chromium-review.googlesource.com/738237
Commit-Queue: Aaron Gable <agable@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>

[modify] https://crrev.com/7d1c484ecd93e94c5258dc330602ac37c5efab44/git_cl.py

Status: Fixed (was: Started)

Sign in to add a comment