Skip to content
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

Tmi2 26/create main branch protection workflow #43

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

a-lor-cab
Copy link
Contributor

@a-lor-cab a-lor-cab commented Jun 13, 2023

Adds workflow, to force merges in main branch only from release branches.

adds "TMI2"(Team mercury tickets) in the feature.yml workflow's branch triggers

Next step:
to enforce it, we would need to go modify the main branch protection:
in GitHub settings-> Branches-> edit the main-> tick Require status checks to pass before merging -> tick Require branches to be up to date before merging -> search for protectMainBranch-> save
This would mean that whenever a pr is raised to merge into main, if it's not from release it will fail the workflow, and we won't be able to merge(the button will be disabled)

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