Skip to content

ci: add dedicated PR lint workflow using pull_request_target - #258

Merged
richardthe3rd merged 4 commits into
mainfrom
claude/add-pr-lint-check-Gl8Ik
May 11, 2026
Merged

ci: add dedicated PR lint workflow using pull_request_target#258
richardthe3rd merged 4 commits into
mainfrom
claude/add-pr-lint-check-Gl8Ik

Conversation

@richardthe3rd

Copy link
Copy Markdown
Owner

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

claude added 3 commits May 11, 2026 21:19
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
Copilot AI review requested due to automatic review settings May 11, 2026 21:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 Lint GitHub Actions workflow to validate PR titles on PR open/edit/reopen events.
  • Remove the lint-pr job 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
@richardthe3rd
richardthe3rd merged commit 34f03d9 into main May 11, 2026
9 checks passed
@richardthe3rd
richardthe3rd deleted the claude/add-pr-lint-check-Gl8Ik branch May 11, 2026 21:42
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.

3 participants