Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Mar 1, 2025

No description provided.

jserv added 2 commits March 2, 2025 00:14
Change-Id: I585731a7b187785277627198aea814bf055529c7
Auto-generated trailers (e.g. 'Signed-off-by') should be excluded from
validation. This commit builds proper regular expressions and removes
predefined 'Change-Id:' detection accordingly.

Change-Id: Ide1ac959fe41f0f019db92c7ae6e682fa1d17615
@jserv jserv merged commit eea1c6d into master Mar 1, 2025
4 checks passed
@jserv jserv deleted the refine-commit-hook branch March 1, 2025 18:08
# Predefined trailer keys.
trailers=(
'CC' 'Change-Id'
'Bug' 'Close' 'Closes'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having only one of Close and Closes seems better for consistency.

Besides, do colon-seperated key-value pairs work? The GitHub document doesn't mention this and the examples are all seperated by spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do colon-seperated key-value pairs work? The GitHub document doesn't mention this and the examples are all seperated by spaces.

Feel free to submit pull request(s) to refine git hooks.

Dennis40816 added a commit to Dennis40816/lab0-c that referenced this pull request Mar 3, 2025
PR sysprog21#209's functionality was broken due to changes introduced in PR sysprog21#214,
specifically in commit '4a8d8b5', where some occurrences of
'COMMIT_MSG_LINES' were replaced with 'commit_msg_lines' without
updating all relevant functions.

This commit fixes the issue by replacing all instances of
'COMMIT_MSG_LINES' with 'commit_msg_lines', ensuring consistency and
restoring the functionality introduced in PR sysprog21#209.

Change-Id: I0c93617be83c5f24b1e17678566883c0481ddc48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants