Skip to content

CI: Add PR title check in CI and labels - #31

Merged
sungwy merged 2 commits into
apache:mainfrom
sungwy:pr-title-prefixes
Nov 19, 2026
Merged

sungwy merged 2 commits into
apache:mainfrom
sungwy:pr-title-prefixes

Conversation

@sungwy

@sungwy sungwy commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Add a PR title check to confirm one or more of the following prefixes are present:

  • Fixture
  • Tooling
  • CI
  • Docs
  • Policy
  • Infra

Add labeler CI to attach the corresponding label for the prefix as well.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 00:45
@sungwy sungwy changed the title Add PR title check in CI and labels CI: Add PR title check in CI and labels Nov 19, 2026

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.

🟡 Changes recommended

Overlapping labeler runs use stale title snapshots, allowing a delayed run to overwrite correct PR labels with outdated ones.

1 open issue
What changed in this PR

Adds title-prefix validation and automatic labeling to categorize pull requests and make squash-merged history easier to navigate.

Changes:

  • Validates titles against six supported prefixes, including comma-separated combinations.
  • Adds a fork-compatible workflow to apply matching labels and remove outdated prefix labels.
  • Documents prefix meanings, label mappings, and title conventions.
File Description
CONTRIBUTING.md Documents title prefixes and when to use each category.
.github/​workflows/​pr-title.yml Checks PR titles for supported prefixes and a summary.
.github/​workflows/​pr-labeler.yml Synchronizes category labels from PR title prefixes.

Review effort: Balanced

Comment thread .github/workflows/pr-labeler.yml Resolved

@laskoviymishka laskoviymishka 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.

LGTM

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sungwy

sungwy commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

thanks for the reviews @nssalian and @laskoviymishka

@sungwy
sungwy merged commit 583c0c1 into apache:main Nov 19, 2026
5 checks passed
@sungwy
sungwy deleted the pr-title-prefixes branch November 19, 2026 15:55
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.

4 participants