-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Option for disabling automerge #74
Comments
@alfieyfc The documentation suggests that it is automatically disabled when the
|
There is a GraphQL mutation for disable, though. So if for some reason the automated disable outlined in the documentation doesn't work for your use case I think I can add it to the action. https://docs.github.com/en/graphql/reference/mutations#disablepullrequestautomerge |
I misread this bit of context! It's not acting as I was expecting because I am the repo owner. @peter-evans Thanks for the clarification! Though having a disable option could be handy, for now I'm accepting it as a limitation where maintainers have to manually disable automerge when they make changes themselves. To me this issue can be considered resolved then. But I'll leave it for you to close in case you wanna decide if mutation for disable is worth your time implementing. :) |
I'll close it for now then. It can always be reopened if there is a need for it in future. |
@peter-evans Hello there 👋 I'm back thinking of reopening this feature request since The scenario would be someone carelessly enabling auto-merge for a PR that has a I tried searching for other actions that can disable auto-merge but didn't find anything suitable. Any suggestions? |
After thinking a bit more about this, I'm not sure that adding it to this action makes sense since "enable" is in the title of the action. I would recommend using github-script to call the disable API. The query should look very similar to the code I have here to enable. |
@peter-evans Makes sense! I'll try to set it up for my workflow. Thanks for the reply! 🙏 |
This could be totally up to another action project, but still posting here for now just to raise the idea, though I don't know if it's implementable.
I'm proposing adding an input such as
mode
, which is default toenable
, and ignores themerge-method
input when set todisable
. The purpose is to allow this action to disable automerge in desired conditions. An example scenario would be something like below, triggered when the base of PR is edited (I bet there's a better way to trigger this).I'm struggling with finding another action that disables automerge in marketplace and thought it would be nice if this action has such addition.
The text was updated successfully, but these errors were encountered: