On Fri, Dec 15, 2017 at 09:46:13PM +0100, Christoph Berg wrote: > I forgot the reasons why we haven't moved the QA svn to git over the > past years, so I figured I could just do that now.
\o/ Thank you for this!! ♥♥♥ > - the QA commits don't seem to end up on the mailing list yet Looks like they do now :) > - commit messages can't close bugs I made toghether a thing based off the the hook we use in the pbuilder team to close the bugs from commits that contain 'Closes: #123567' in their description. The script used is in /home/groups/qa/qa-git-bug-close-hook and I set it up to be used by qa.git and pts.git. What it looks for is: git rev-parse --not --exclude='wip[-/]*' --branches | grep -v $(git rev-parse ${refname}) | git rev-list --reverse --stdin "${revrange}" | while read rev; do # Look at git-buildpackage meta tags (Closes: in commit message) bugs=`git cat-file -p ${rev} | sed -rne 's/^Closes: *//pi'` for bug in $bugs; do bug=$(echo $bug | sed 's/^#//' | sed 's/,.*//') send_mail $bug "$rev" "the git commit message" done done -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature