Skip to content

Fix CI on pushes to main: scope asks for a pull request that is not there - #42

Merged
m96-chan merged 1 commit into
mainfrom
fix-scope-on-push
Sep 15, 2026
Merged

m96-chan merged 1 commit into
mainfrom
fix-scope-on-push

Conversation

@m96-chan

Copy link
Copy Markdown
Owner

main has been red on every push since #38.

gh api "repos/m96-chan/iOSSH/pulls//files"
gh: Not Found (HTTP 404)

The scope job reads the changed files from the pull request. On a push event github.event.pull_request.number is empty, so the request goes to /pulls//files and 404s. scope fails, packages/build/test are all skipped as a consequence, and ios reports the failure.

#37 added scope for pull requests. #38 added the push trigger. Each was green on its own; the combination was never run before it was on main#38 branched from main before #37 landed, so the two never met until the merge.

A push has nothing to skip in any case: what reached main is worth building, and that run is now the only thing reporting on it.

🤖 Generated with Claude Code

… not there

main has been red on every push since #38. The `scope` job reads the changed
files from `repos/OWNER/REPO/pulls/NUMBER/files`, and on a push event
`github.event.pull_request.number` is empty, so the request goes to `/pulls//files`
and comes back 404. `scope` fails, every job that needs it is skipped, and the
`ios` check reports the failure.

#37 added `scope` for pull requests and #38 added the push trigger. Each was
green on its own; the combination was never run before it was on main.

A push has nothing to skip anyway. What reached main is worth building, and that
run is the only thing that reports on it now that the required check cannot.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@m96-chan
m96-chan merged commit cb79856 into main Sep 15, 2026
6 checks passed
@m96-chan
m96-chan deleted the fix-scope-on-push branch September 15, 2026 01:29
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