Skip to content

ci: enforce Conventional Commits on PR titles#884

Open
tonyandrewmeyer wants to merge 1 commit into
canonical:masterfrom
tonyandrewmeyer:chore/validate-pr-title
Open

ci: enforce Conventional Commits on PR titles#884
tonyandrewmeyer wants to merge 1 commit into
canonical:masterfrom
tonyandrewmeyer:chore/validate-pr-title

Conversation

@tonyandrewmeyer

Copy link
Copy Markdown
Contributor

This PR ports canonical/operator's validate-pr-title.yaml workflow, which validates that pull request titles follow the Conventional Commits specification.

The workflow uses actions/checkout@v6.0.2 (the only action) and runs the local .github/check-conventional-pr-title.py script. There is no third-party action. The script's type list and optional component scopes are adapted to match the local convention from HACKING.md rather than operator's stricter no-scopes set.

This is a stdlib only script, run with plain python3 from the runner image, but if it's too Python for here, I could probably make a bash (or Go) version. Or, if pebble doesn't need to align with the rest of Charm Tech, we could leave this as only enforced by reviewers manually.

Port canonical/operator's validate-pr-title.yaml workflow, which validates
that pull request titles follow the Conventional Commits specification. PR
titles become the squash-merge commit subject, so this keeps the merged
history Conventional-Commits clean. The workflow uses actions/checkout@v6.0.2
(the only action) and runs the local .github/check-conventional-pr-title.py
script -- no third-party action. The script's type list and optional
component scopes are adapted to match this repo's documented convention in
HACKING.md rather than operator's stricter no-scopes set.
@tonyandrewmeyer tonyandrewmeyer requested a review from benhoyt June 12, 2026 07:51
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