Skip to content

Limit CI workflows to supported branches #3411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 17, 2025

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Jun 17, 2025

This PR adds branch restrictions to the push and pull_request triggers for workflows. CI used to run on all branches pushed, whereas we now only run it for supported branches. This avoids failing runs for the static-analysis workflow but makes sense for all workflows.

Note: I changed indentation in the build-ci workflow files to two spaces for consistency with other workflow files. I recommend viewing changes ignoring whitespace to cut through the noise. The actual changes are contained in the second commit.

@alcaeus alcaeus requested a review from GromNaN June 17, 2025 13:55
@alcaeus alcaeus requested a review from a team as a code owner June 17, 2025 13:55
Comment on lines +7 to +9
pull_request:
branches:
- "[0-9]+.[0-9x]+"
Copy link
Member

Choose a reason for hiding this comment

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

If we create a feature/* branch, the CI will not run on the PR targeting this feature branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a commit to add this to all workflows.

@alcaeus alcaeus enabled auto-merge (squash) June 17, 2025 15:18
@alcaeus alcaeus requested a review from GromNaN June 17, 2025 15:47
@alcaeus alcaeus merged commit aad17bb into mongodb:5.x Jun 17, 2025
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants