Repository navigation
Conversation
GitHub reads Co-authored-by trailers only from the last paragraph of the message. The validator rejected any line after the JIRA reference, so a commit could not have both a JIRA footer and a co-author that GitHub shows. A last paragraph of Co-authored-by lines can now follow the JIRA reference or the broken part. Other text there still fails.
Author
|
Not needed any more: dev-agent now names the requester as the commit author, so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHub reads
Co-authored-by:trailers only from the last paragraph of a commit message.The validator rejects any line after the JIRA reference, so a
featorfixcommit cannot have both its JIRA footer and a co-author that GitHub shows.This PR accepts a last paragraph of
Co-authored-by:lines after the JIRA reference or the broken part:Other text after the JIRA reference still fails, as before.
@masterget it at merge. Thev1tag points to a commit from 2025-09-02, so repos that use@v1need the tag moved, or a new tag.Test
Verified:
bats ./*.bats: 116 tests, 0 failures. The 2 new valid cases failed before the change.Not proven: the GitHub Action run on a real PR.
Evidence
not ok 95 structure: valid commit message with jira and co-author trailers,not ok 96 structure: valid commit message with jira, broken and co-author trailers.1..116, nonot okline.check_message.shend to end:Co-authored-byparagraph: exit 0.only Co-authored-by trailers could be in the paragraph after the JIRA reference or the broken part.Co-authored-byparagraph on afeat: exit 9 (JIRA missing), as before.