This is a multi-part message in MIME format.
On marted� 25 gennaio 2022 18:00:30 CET Michael Orlitzky wrote:
Can I request that Bug: and Closes: tags in our commits automatically
CC the committer on the bug that is modified?
Use case: I often fix (sci-*) bugs that I'm not CCed on, and a user
will leave a comment like "it still crashes on x86" that I never see.
Of course, I could manually CC myself on every bug. But that will send everyone an extra email, and is forgettable. Plus, avoiding the manual
step is kind of the point of the automation, right?
One potential downside is that the commit author could wind up CCed
twice via an alias, but that could be solved with a sufficiently clever implementation. Or disregarded if it's not too much of a problem in
practice; the bugs will usually be closed, after all.
While it does not hurt implement an hook I'd say that:
- CI already cc'es the author of the commit when he breaks a package or introduces a QA
issue.
This is related to a new bugs and, obviously, does not cover your use-case.
- If you are CC'ed by the hook and you are part of the alias that is the assignee of the bug,
you will receive two emails unless the hook integrates the alias.
- Based on the previous point, I'd suggest to use a wrapper if you want to be cc'ed on the
bug you are resolving:
#!/bin/bash
BUG="${1}"
COMMIT_MESSAGE="${2}"
repoman commit -c "${BUG}" -m "${COMMIT_MESSAGE}" && bugz --key "${APIKEY}" modify --add-cc
[email protected] "${BUG}"
Agostino
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On marted� 25 gennaio 2022 18:00:30 CET Michael Orlitzky wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Can I request that Bug: and Closes: tags in our commits automatically</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> CC the committer on the bug that is modified?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Use case: I often fix (sci-*) bugs that I'm not CCed on, and a user</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> will leave a comment like "it still crashes on x86" that I never see.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Of course, I could manually CC myself on every bug. But that will send</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> everyone an extra email, and is forgettable. Plus, avoiding the manual</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> step is kind of the point of the automation, right?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> One potential downside is that the commit author could wind up CCed</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> twice via an alias, but that could be solved with a sufficiently clever</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> implementation. Or disregarded if it's not too much of a problem in</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> practice; the bugs will usually be closed, after all.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">While it does not hurt implement an hook I'd say that:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">- CI already cc'es the author of the commit when he breaks a package or introduces a QA issue.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This is related to a new bugs and, obviously, does not cover your use-case.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">- If you are CC'ed by the hook and you are part of the alias that is the assignee of the bug, you will receive two emails unless the hook integrates the alias.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">- Based on the previous point, I'd suggest to use a wrapper if you want to be cc'ed on the bug you are resolving:</p>
<p> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">#!/bin/bash</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">BUG="${1}"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">COMMIT_MESSAGE="${2}"</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">repoman commit -c "${BUG}" -m "${COMMIT_MESSAGE}" && bugz --key "${APIKEY}" modify --add-cc
[email protected] "${BUG}"</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Agostino</p>
<br /></body>
</html>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)