Opened 4 years ago

Last modified 2 months ago

#3674 closed change

Write a hg hook that adds a comment on the relevant issue for each commit — at Initial Version

Reported by: fhd Assignee: fhd
Priority: P4 Milestone:
Module: Sitescripts Keywords:
Cc: Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29336790

Description

Background

Whenever we currently commit something linked to a specific issue, we manually add a comment pointing to that commit. That's fairly easy to automate, since commits always have the same format: Issue [number] - [message].

What to change

Write a hook (probably used for either incoming or changegroup that inspects the commit message and adds a comment to the issue mentioned. (As an added bonus, the hook could reject commits that don't use the right format or that refer to an issue that doesn't exist (note that Noissue - [message] is also valid).

Change History (0)

Note: See TracTickets for help on using tickets.