Skip to content

Document Ruleset learnings and best practices#42

Merged
rafecolton merged 3 commits intomainfrom
Rory-DocumentRulesetsBestPractices
Oct 21, 2025
Merged

Document Ruleset learnings and best practices#42
rafecolton merged 3 commits intomainfrom
Rory-DocumentRulesetsBestPractices

Conversation

@roryabraham
Copy link
Contributor

Details

Just documenting some learnings for next time.

Related Issues

https://github.com/Expensify/Expensify/issues/484931

Manual Tests

None.

Linked PRs

None.

@roryabraham roryabraham self-assigned this Oct 17, 2025
rafecolton
rafecolton previously approved these changes Oct 17, 2025
Copy link
Member

@rafecolton rafecolton left a comment

Choose a reason for hiding this comment

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

NAB "ruleset" is not a proper noun so can be lowercased everywhere

README.md Outdated
## Rulesets
GitHub [org-level Rulesets](https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#require-workflows-to-pass-before-merging) can be configured to run a workflow check against pull requests in all repos in the org. This is a very powerful feature, but there are some caveats and best practices to be aware of when enabling a Ruleset.

- Supported Event Triggers are documented [here](https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#supported-event-triggers). However, when a workflow runs in response to a Ruleset, some configs such as `branches`, `paths`, `paths-ignore`, that would normally be valid in a workflow are ignored. If you need to target or exclude specific branches, that can be configured in the Ruleset settings. If you need to target or exclude specific paths, that must be implemented manually in the workflow itself.
Copy link
Member

Choose a reason for hiding this comment

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

Probably worth mentioning that selected actions are ignored and only the default actions for the given type are used. NAB consider breaking into sub-bullets for readability

@roryabraham
Copy link
Contributor Author

updated!

Copy link
Member

@rafecolton rafecolton left a comment

Choose a reason for hiding this comment

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

Thanks!

@rafecolton rafecolton merged commit 2087636 into main Oct 21, 2025
4 checks passed
@rafecolton rafecolton deleted the Rory-DocumentRulesetsBestPractices branch October 21, 2025 00:17
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