Skip to content

Conversation

@dzarukin
Copy link
Contributor

@dzarukin dzarukin commented Jan 4, 2026

PR adds an extra message to remove confusion when there's a leading space but the scoping is correct and also applies black formatting.

@dzarukin dzarukin requested a review from a team as a code owner January 4, 2026 21:37
@github-actions github-actions bot added the devops Github automation label Jan 4, 2026
print(f"{status} FAILED: Commit message must follow the format "
"<scope>:[ <scope>:] <short description>")
if not re.match("^[a-z0-9_]+(, [a-z0-9_]+)*: ", msg):
if re.match("^[ ]+", msg):
Copy link
Contributor

Choose a reason for hiding this comment

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

"^\s+" is probably preferred to catch tabs or weird unicode issues.

# Fixup commits usually include the full name of the commit they are
# fixing, which adds 6 more symbols to the message. Let them in.
if re.match('^fixup: ', msg):
if re.match("^fixup: ", msg):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should revert: have the same accommodation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops Github automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants