Skip to content

Add helper script to help review pull request titles#11281

Open
PerfectSlayer wants to merge 1 commit intomasterfrom
bbujon/ci
Open

Add helper script to help review pull request titles#11281
PerfectSlayer wants to merge 1 commit intomasterfrom
bbujon/ci

Conversation

@PerfectSlayer
Copy link
Copy Markdown
Contributor

What Does This Do

This PR adds my helper script to review the PR titles before making a PR.
It is not bullet proof but help saving time. It is not automatic on purpose and the goal is to highlight issues faster, come up with suggestion to fix them, and apply the fix without having to rely and the GitHub PR or milestone page which struggle with pagination.

Motivation

I used to do it manually but the increase count of PR by milestone makes it tedious.
Additionally, AI review (or worse, AI fix) is usually pretty bad and not helping to capture meaningful changelog.

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@PerfectSlayer PerfectSlayer requested a review from a team as a code owner May 5, 2026 11:58
@PerfectSlayer PerfectSlayer requested a review from mhlidd May 5, 2026 11:58
@PerfectSlayer PerfectSlayer added tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels May 5, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d972a9d6c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

local t="$1"
local reasons=()
if [[ "$t" =~ $CONVENTIONAL_COMMIT_PREFIX_RE ]]; then
reasons+=("conventional-commit prefix")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject titles that start with non-letter prefixes

When a PR title starts with an emoji or numeric prefix, such as the repository's mirror/cherry-pick style 🪞 10020 - ... or 🍒 9935 - ..., strip_prefixes leaves the prefix in place and this check does not fire because the first character is not lowercase. The script then counts those titles as OK even though the CONTRIBUTING title format requires a sentence starting with an infinitive verb, so an obvious release-note title violation can be missed instead of being presented for correction.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm good with those ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant