Skip to content

Run CI on pull requests - #33

Merged
sunny merged 2 commits into
mainfrom
fix-ci-pull-request-trigger
Jul 27, 2026
Merged

Run CI on pull requests#33
sunny merged 2 commits into
mainfrom
fix-ci-pull-request-trigger

Conversation

@yukideluxe

Copy link
Copy Markdown
Member

@sunny I asked Claude about the CI problem because I don't know a lot about Github Actions 🙈 That said, I confirmed the changes with the official documentation and confirmed we have the same setup in other RubyMoney repos like, for example, money 😊

⬇️ Claude description

The Test workflow triggered on on: [push] only. For a pull request from a fork the push event fires on the contributor's repo, not on this one, so fork PRs never ran any checks at all#31 has been sitting with an empty status check list since it was opened.

This switches the trigger to push + pull_request scoped to main, which is the pattern already used by every other repo in the RubyMoney org (money, money-rails, monetize, eu_central_bank, money-collection, money-heuristics). It also adds the permissions: contents: read block those repos carry, and bumps actions/checkout from v3 to v7 to match them.

yukideluxe and others added 2 commits July 27, 2026 13:31
The Test workflow only triggered on `push`, so pull requests from forks
never ran any checks — the push event fires on the fork, not here. PR #31
sat with zero status checks for this reason.

Switch to the push+pull_request trigger already used by every other
RubyMoney repo, and add the matching read-only permissions block.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Was pinned at v3. v7.0.1 is the current release; the rest of the
RubyMoney repos are still on v6.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
pull_request:
branches: [main]

permissions:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@sunny claude recommended to restrict the needed permissions for this workflow in the file level instead of relying on the repo setting and I left it because it's how it's set up in the money repo ✌🏻

PS: it might be worth trying to consolidate the settings for all repos 😬

@sunny sunny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, worth a try! 🤷🏻

@sunny
sunny merged commit 273f4fe into main Jul 27, 2026
4 checks passed
@sunny
sunny deleted the fix-ci-pull-request-trigger branch July 27, 2026 13: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.

2 participants