You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de0de10
Browse filesBrowse the repository at this point in the historyBrowse files
ci: stop crediting the maintainer, and stop overwriting edited release notes
Two problems with the release PR, both found on ha-swiss-post 0.13.1.
The maintainer was credited for reporting their own tester-request issue. The
filter checks `author_association`, which only reads MEMBER for a viewer that
can see the org membership — and this org's memberships are private, so the
release token saw an owner as NONE. Repo permission is visible to that token
and settles it: admin, maintain or write is never credited. If the permission
check itself is refused, the login is still credited, but with a warning in
the run log rather than in silence.
An edited PR body was thrown away by the next feat:/fix: push. The house style
asks a maintainer to edit the body before merging, so regenerating over it
destroyed exactly the work it asks for. The generator now stamps what it wrote
with a fingerprint, and on a later run a body that no longer matches is left
alone, with the regenerated notes posted as a PR comment instead. The
fingerprint is taken over a normalised body, because GitHub returns CRLF and
its own trailing whitespace, and the marker is stripped from the published
release notes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
body: `This PR's body was edited by hand, so it was left alone. Here are the regenerated notes, including the change that just landed — fold in whatever is worth keeping.\n\n---\n\n${notes}`,
217
+
});
218
+
core.notice(`Release PR #${existing.number} was edited by hand; kept it and posted the regenerated notes as a comment.`);
219
+
}catch(error){
220
+
core.warning(`Could not post the regenerated notes as a comment (${error.message}); the PR body was still left as edited.`);
0 commit comments