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

Define merge strategy #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattiaverga
Copy link

@mattiaverga mattiaverga commented Jan 3, 2023

Add a strategy flag to decide how to auto-merge the PR:

  • approve-and-merge will mimic actual default, approve the PR and comment with the merge command
  • approve-only will only approve the PR, so that other automatic tools (such as mergify) can merge the PR when CI tests pass
  • merge-only will mimic actual approve: false behavior, only post comment with the merge command without approving the PR

The default approve-and-merge will ensure backward compatibility with existent config files, however unexpected behavior will arise when using strategy: approve-and-merge together with approve: false, therefore when updating the config file the use of approve parameter is deprecated.

Fixes #176

Signed-off-by: Mattia Verga mattia.verga@tiscali.it

Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
@eiskrenkov
Copy link

eiskrenkov commented Jan 20, 2023

@mattiaverga wow, exactly what we need, thank you!
@ahmadnassri great feature, will you consider to merge that?

@yeikel
Copy link

yeikel commented Feb 22, 2023

@ahmadnassri Sorry for the ping, but could you please review this?

@ahmadnassri
Copy link
Owner

apologies for the delay, been dealing with personal matters and have not looked at code in over a month...

confident I'll land this PR this week as part of a major rewrite

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.

approve-only switch
4 participants