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

ToggleLockBranch: Disable Auto-Merge on existing PRs #75

Open
pavel-mikula-sonarsource opened this issue Apr 23, 2024 · 0 comments
Open
Labels
Improvement Change of existing functionality

Comments

@pavel-mikula-sonarsource
Copy link
Contributor

When a branch is locked/unlocked, the action should:

  • iterate all PRs targeting that branch
  • disable AutoMerge, if it is enabled. For locking AND unlocking.

https://docs.github.com/en/graphql/reference/mutations#disablepullrequestautomerge

For testing: Validate what will happen if the repo doesn't have Auto-Merge enabled.

In case master is frozen (for example due to release), we don't want any PR to accidentally be merged faster than a version bump.

The disabling should happen

  • when locking the branch, to clearly indicate that PRs will not be merged after
  • when unlocking the branch, to prevent unexpected auto-merge for PRs that were configured for auto-merge in the meantime
@pavel-mikula-sonarsource pavel-mikula-sonarsource added the Improvement Change of existing functionality label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Change of existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant