Skip to content

Run CI on pull requests so fork PRs get checks - #239

Merged
merlerm merged 3 commits into
mainfrom
ci-run-on-pull-requests
Oct 7, 2026
Merged

merlerm merged 3 commits into
mainfrom
ci-run-on-pull-requests

Conversation

@merlerm

@merlerm merlerm commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

CI only triggers on push, and a push to a fork runs in the fork, so PRs from forks (e.g. #237) never get the required checks and stay blocked.

New triggers:

  • pull_request: every PR gets CI, whether its branch is in this repo or a fork. Checks run on the PR merged with main.
  • push to main only: main is checked after each merge, and a PR branch is not checked twice.
  • workflow_dispatch: a "Run workflow" button on the Actions tab runs CI on any branch, e.g. one without a PR yet.

Fork runs get a read-only token and no secrets, and ci.yml does not use any secrets.

@merlerm merlerm mentioned this pull request Oct 7, 2026
@merlerm

merlerm commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

needed to run CI to merge #237 and in general to handle future PRs from forks

@merlerm
merlerm enabled auto-merge (squash) October 7, 2026 13:08
@merlerm
merlerm requested a review from tomsilver October 7, 2026 16:16

@tomsilver tomsilver left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@merlerm
merlerm disabled auto-merge October 7, 2026 17:02
@merlerm
merlerm merged commit 1040c9c into main Oct 7, 2026
8 checks passed
@merlerm
merlerm deleted the ci-run-on-pull-requests branch October 7, 2026 17:02
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.

2 participants