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

feat: enforce only dev can merge into main #844

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented May 30, 2024

Enforce that only dev can merge into main in a GitHub workflow. This will prevent accidental merges into main.

TODO: I'll add this as a required check before merging into main once this is merged into main.

Example accidental merge: #840

Source: https://stackoverflow.com/questions/71120146/allowing-only-certain-branches-to-pr-merge-to-mainmaster-branch

@ratankaliani ratankaliani enabled auto-merge (squash) May 30, 2024 19:01
@ratankaliani ratankaliani merged commit 1b9a0ae into dev May 30, 2024
8 checks passed
@ratankaliani ratankaliani deleted the ratan/check-branch-dev branch May 30, 2024 19:24
mattstam pushed a commit that referenced this pull request May 30, 2024
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