Skip to content

Commit 1c2897a

Browse files
authored
Keep the DCO sign-off in the trailer block (#8783)
1 parent 641babf commit 1c2897a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ relevant guidance from each.
6868
### Commit Standards
6969

7070
- Use DCO sign-off: `Signed-Off-By: Your Name <email>`
71+
- Put the sign-off in the final paragraph of the message, next to any other
72+
trailers such as `Co-Authored-By:`, with no blank line between them. Git only
73+
parses the last paragraph as trailers, so a sign-off separated by a blank
74+
line doesn't count. Check with
75+
`git log -1 --format=%B | git interpret-trailers --parse`.
7176
- Include appropriate tests with all changes
7277
- Build must pass before committing
7378

0 commit comments

Comments
 (0)