ci: add PR title linting (Conventional Commits)#45
Open
hasansezertasan wants to merge 1 commit into
Open
Conversation
Contributor
Reviewer's GuideAdds a GitHub Actions workflow to lint pull request titles against Conventional Commits, using a pinned semantic pull request action with hardened permissions and safer triggers for zizmor compliance. Sequence diagram for PR title linting workflowsequenceDiagram
actor Developer
participant GitHub
participant workflow_pr_title
participant action_semantic_pull_request
Developer->>GitHub: create_or_update_pull_request
GitHub-->>workflow_pr_title: pull_request opened/edited/synchronize
workflow_pr_title->>action_semantic_pull_request: job validate uses amannn/action-semantic-pull-request
action_semantic_pull_request-->>GitHub: report status for PR title check
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Description
Adds
.github/workflows/pr-title.yml— validates PR titles as Conventional Commits viaamannn/action-semantic-pull-request, matching the repo's PR-title convention and enabling downstream label/changelog automation.Adapted from #16, with two deliberate changes:
pull_requestinstead ofpull_request_target. Title validation needs no write token, so the privileged trigger Litestarification #16 used is unnecessary — plainpull_requestis strictly safer and avoids zizmor'sdangerous-triggersfinding entirely (no suppression comment needed).@48f2562 # v6.1.1, bumped from Litestarification #16's v5), top-levelpermissions: {}, least-privilegepull-requests: read.Verified:
zizmor→ No findings to report.Closes
Summary by Sourcery
CI: