Skip to content

ci: accept any scope in PR titles - #2104

Merged
phernandez merged 1 commit into
mainfrom
pr-title-any-scope
Nov 12, 2026
Merged

phernandez merged 1 commit into
mainfrom
pr-title-any-scope

Conversation

@phernandez

Copy link
Copy Markdown
Member

Why

The title check failed #2102 because man wasn't on its fixed scope list. Nothing reads the scope: releases don't use it and CHANGELOG.md is written by hand. The list only blocked PRs for areas it didn't name yet.

What

  • Keep the type check (feat, fix, docs, ...). Squash merges make the title the commit subject, so the type keeps main's history readable.
  • Drop the scope list. Any scope, or none, passes.
  • Drop requireScopeForBreakingChange. The action warned it isn't a valid input, so it never did anything.

Testing

This PR's own title check runs the new config.

🤖 Generated with Claude Code

https://claude.ai/code/session_016N9c6ouiT4Wid3arGR41Dv

The title check rejected docs(man) because man was not on a fixed scope
list. Nothing reads the scope, so the list only blocked new areas. Keep
the type check, drop the list, and drop requireScopeForBreakingChange,
which the action does not accept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016N9c6ouiT4Wid3arGR41Dv
Signed-off-by: phernandez <paul@basicmachines.co>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T16:08:56.084303Z 2b30079 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit 7e380cf into main Nov 12, 2026
18 checks passed
@phernandez
phernandez deleted the pr-title-any-scope branch November 12, 2026 16:12
phernandez added a commit that referenced this pull request Nov 12, 2026
## Why
#2104 removed the scope list from the PR title check.
`tests/test_pr_title_workflow.py` still read it, so unit tests on main
fail with `KeyError: 'scopes'`. #2104's CI skipped the unit tests
because it only changed a workflow file.

## What
- The test now checks that there is no scope list and no scope is
required.
- A second test checks the type list is still enforced.

## Testing
`pytest tests/test_pr_title_workflow.py`: 2 passed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_016N9c6ouiT4Wid3arGR41Dv

Signed-off-by: phernandez <paul@basicmachines.co>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant