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

Merge PR when checks are ready #13

Merged
merged 3 commits into from
Sep 28, 2023
Merged

Merge PR when checks are ready #13

merged 3 commits into from
Sep 28, 2023

Conversation

Bullrich
Copy link
Collaborator

There is an issue that you can not enable auto-merge when a PR is ready to merge.

For this situation, I have added a try/catch block where it evaluates if the error contains the message Pull request is in clean status. If so, it will use the mergePullRequest mutation to merge the PR directly.

This fixes #12

@Bullrich Bullrich added this to the Version 1.0.0 milestone Sep 28, 2023
@Bullrich Bullrich requested a review from a team as a code owner September 28, 2023 14:14
@Bullrich Bullrich self-assigned this Sep 28, 2023
@Bullrich Bullrich linked an issue Sep 28, 2023 that may be closed by this pull request
Good in case the backup plan fails and we don't want to lose the first message
Copy link

@mordamax mordamax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Bullrich
Copy link
Collaborator Author

/merge

@github-actions
Copy link

There was a problem running the action.

❌😵❌

Please find more information in the logs.

@Bullrich Bullrich merged commit d7c5bf6 into main Sep 28, 2023
4 checks passed
@Bullrich Bullrich deleted the clean-status-fix branch September 28, 2023 14:35
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.

Error: Pull request is in clean status
3 participants