<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Galen,<br>
<br>
I think it's a fine idea. At the very least, it couldn't hurt. I'll
start putting that line in my commit messages where appropriate.<br>
<br>
I appreciate the time and consideration on the issue.<br>
<pre class="moz-signature" cols="72">-Blake-
Conducting Magic
Will consume any data format
MOBIUS
</pre>
<div class="moz-cite-prefix">On 1/3/2024 10:27 AM, Galen Charlton
via Evergreen-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPLnt66KYay22w42DweR3oKoMEEQ70fcDQKGaaF_+vHsNSmdWg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>Inspired by recent discussion about improving the ease of
writing release notes - as well as some friction I'm already
running into dealing with merge conflicts on
miscellaneous.adoc when doing patch review - I'd like to
propose a convention for adding brief release notes entry to
the commit messages.</div>
<div><br>
</div>
<div>Specifically, I propose adding a new "Release-note:" tag to
the commit message that might look something like this:</div>
<div><br>
</div>
<div>-- BEGIN COMMIT MESSAGE --</div>
<div>LP#12356873: Quux the frobinator in the most techie fashion
possible</div>
<div><br>
</div>
<div>Commit message and test plan</div>
<div><br>
</div>
<div>Release-note: Fix patrons occasionally getting overcharged
by a penny when paying fines online<br>
</div>
<div><br>
</div>
<div>Signed-off-by: ...</div>
<div>-- END COMMIT MESSAGE --<br>
</div>
<div><br>
</div>
<div>The idea is that when rolling a release, one stage of
preparing the release notes would be running a script that
looks at the commit messages on the release branch since the
previous release in that series, grabs the bug number and the
commit message, then generates a list in AsciiDoc format
suitable for plopping into the Miscellaneous section of a set
of release notes.<br>
</div>
<div><br>
</div>
<div>Such a script should probably be forgiving about how it
parses the tag, including accepting the likes of
"Release-noTeS:". When there's no tag in the commit message,
falling back to the first line of the commit message after the
bug number might be a not-too-terrible fallback.<br>
</div>
<div><br>
</div>
<div>Some reasons to consider doing it this way:</div>
<div><br>
</div>
<div>- It avoids merge conflicts on miscellaenous.adoc during
patch review and committing<br>
</div>
<div>- Patch authors would not have to fiddle with formatting
the LP bug URL for misceallaneous.adoc<br>
</div>
<div>- It avoids some problems that might arise by an
alternative convention to include the release note entry
somewhere in LP, including LP's poor API and the fact that bug
reports tend to be, well, statements of problems, whereas
release notes usually should be statements of fixes or
changes.</div>
<div>- When a committer (or actually, anybody in the review
chain for a given patch) needs to supply a release note that
wasn't supplied by the patch author, a "git commit --amend" is
quicker than fiddling with miceallaneous.adoc.</div>
<div>- The existence of such a tag can help clarify the purpose
of the patch for anybody reading the commit, as my example
above implies<br>
</div>
<div><br>
</div>
<div>When to use this convention:</div>
<div><br>
</div>
<div>- For bug fixes and very minor enhancements that can be
adequately described in a single line</div>
<div><br>
</div>
<div>When not to use to this convention:</div>
<div><br>
</div>
<div>- For anything that cannot be described in a single line
due to scope, complexity, or because the patch or series adds
new permissions or library settings. In such cases, the
existing RELEASE_NOTES_NEXT convention should be followed.<br>
</div>
<div><br>
</div>
<div>Thoughts? If there is general agreement that this is worth
trying, I will put an example script together.<br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Galen<br>
</div>
<div><span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Galen Charlton<br>
Implementation and IT Manager<br>
Equinox Open Library Initiative<br>
<a href="mailto:gmc@equinoxOLI.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">gmc@equinoxOLI.org</a><br>
<a href="https://www.equinoxOLI.org" target="_blank"
moz-do-not-send="true">https://www.equinoxOLI.org</a> <br>
phone: 877-OPEN-ILS (673-6457)<br>
direct: 770-709-5581<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Evergreen-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Evergreen-dev@list.evergreen-ils.org">Evergreen-dev@list.evergreen-ils.org</a>
<a class="moz-txt-link-freetext" href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-dev">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>