Skip to content

Add workflow to restrict merges to main from develop only#36

Merged
gafnts merged 2 commits into
mainfrom
develop
Jun 7, 2026
Merged

Add workflow to restrict merges to main from develop only#36
gafnts merged 2 commits into
mainfrom
develop

Conversation

@gafnts

@gafnts gafnts commented Jun 7, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a new GitHub Actions workflow to enforce branch management policies. The workflow ensures that pull requests targeting the main branch can only be merged if they originate from the develop branch.

Branch protection workflow:

  • Added a .github/workflows/restrict-main-merges.yml file that blocks pull requests into main from any branch other than develop by failing the workflow with an error message if the source branch is not develop.

@gafnts gafnts merged commit 37e1cd5 into main Jun 7, 2026
3 checks passed
@gafnts gafnts deleted the develop branch June 7, 2026 18:22
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