Page MenuHomePhabricator

Allowing use of "Task:" in commit comments to link to Phabricator tasks
Closed, DuplicatePublic

Description

On 26 Feb 2015 16:55, @bearND wrote:

I would like to link more commits to Phabricator tasks. We already do this for defects. But I'm talking about doing this also for regular (new feature) tasks. Using "Bug: <task id>" doesn't sound appropriate to me. Can we add something like "Task: <task id>" as well?

Background: https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Body

Event Timeline

Qgil raised the priority of this task from to Needs Triage.
Qgil updated the task description. (Show Details)
Qgil added a project: Gerrit.
Qgil added subscribers: Qgil, QChris, Jdlrobson and 5 others.
Aklapper triaged this task as Lowest priority.Feb 27 2015, 9:44 AM

If writing "Bug: " as a prefix feels too weird, feel free to write
support for more string prefixes via patching
src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java
in operations/gerrit/plugins/its-phabricator-from-bugzilla.jar (I think,
qchris was kind enough to set that part up) &&
operations/puppet/modules/gerrit/files/its/action.config (for Gerritbot
comments in Phabricator). Also needs changes to the regex in
operations/puppet/modules/gerrit/templates/gerrit.config.erb (for
auto-linking the prefix in the Gerrit web UI).