ci: add dedicated PR lint workflow using pull_request_target - #258
Merged
Conversation
Moves semantic PR title check out of ci.yml into a standalone pr-lint.yml triggered on opened, edited, and reopened so the check re-runs when the PR title is changed. https://claude.ai/code/session_01LMQtXBZsnSAajpW7VW7j2y
The PR Lint CI check enforces this, so agents need to know PR titles follow the same format as commit messages. https://claude.ai/code/session_01LMQtXBZsnSAajpW7VW7j2y
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extracts the semantic PR title (conventional commits) validation from the main CI workflow into a dedicated workflow so the check re-runs when the PR title changes.
Changes:
- Add a standalone
PR LintGitHub Actions workflow to validate PR titles on PR open/edit/reopen events. - Remove the
lint-prjob from the main.github/workflows/ci.yml. - Document PR title conventional-commit requirements in
AGENTS.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| AGENTS.md | Documents conventional-commit formatting requirements for PR titles alongside existing commit message guidance. |
| .github/workflows/pr-lint.yml | Introduces a dedicated workflow to enforce semantic PR title rules. |
| .github/workflows/ci.yml | Removes the PR title lint job now handled by the dedicated workflow. |
Comment on lines
+3
to
+8
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - reopened |
pull_request_target runs in the base repo context with access to secrets, which is unnecessary for a title check and increases security exposure for forked PRs. https://claude.ai/code/session_01LMQtXBZsnSAajpW7VW7j2y
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.
Moves semantic PR title check out of ci.yml into a standalone
pr-lint.yml triggered on opened, edited, and reopened so the
check re-runs when the PR title is changed.
https://claude.ai/code/session_01LMQtXBZsnSAajpW7VW7j2y