question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warn about auto-merge being enabled when approving a PR

See original GitHub issue

I often already approve PRs even though I would prefer to get answers to some of my questions in the review. Maybe I should just comment in that case, but well… It regularly happens to me that the PR is landed right away (or some seconds/minutes later) because the PR has been configured to be merged/squashed/rebased automatically.

I think it would be helpful to see some indicator in the “Finish your review” dialog of the Files tab, that makes you aware that the PR will land as a result of your approval.

Since it might be more complex to check the current status and it might change to that state in a few seconds or minutes, in case auto merge is enabled for the PR, I think it makes more sense to just check for that toggle.

  1. Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo

I’m not sure what “REAL URL” I should add, the dialog that has the “Approve” button (with quick-review-buttons being active, otherwise option) is only visible for maintainers of a repo and only after a click.

According to the comment below the affected URL would be https://github.com/{org_or_user}/{repository}/pull/{id}/files

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
karfaucommented, Apr 20, 2021

Yes, everything you said us correct.

And the more I think about it, the less I think it is a valid way to think about it.

When I approve it, somebody else could still set it to auto-merge afterwards, potentially even without seeing my comments.

So I think it’s a better option to only put a comment review, when I don’t want the PR to be merged.

1reaction
fregantecommented, Apr 19, 2021

Being a new GitHub feature if you ping some producer or the CEO on Twitter you might have a good chance at seeing this natively.

Here I think the main issue is finding this piece of information. Perhaps if it’s available on the PR Conversation tab we can cache it preemptively. If someone clicks that automerge while you’re reviewing we can’t find out without polling continuously, which we can’t do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warn about auto-merge being enabled when approving a PR
I think it would be helpful to see some indicator in the "Finish your review" dialog of the Files tab, that makes you...
Read more >
Pull request auto-merge is now generally available
Then to enable auto-merge, navigate to the pull request on GitHub.com or GitHub Mobile and tap the button to enable. PR auto-merge in...
Read more >
Merge request approval settings - GitLab Docs
Merge request approval settings define how those rules are applied as a merge request ... This permission enables an electronic signature for approvals, ......
Read more >
Automatic branch merging | Bitbucket Data Center and Server ...
In order to use automatic branch merging, Bitbucket has to be able to ... The 'release' branch type must be enabled or a...
Read more >
Create a pull request to review and merge code - Azure Repos
Repos must be enabled on your project. ... You can create a new PR from the Azure DevOps project website, from Visual Studio, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found