Warn about auto-merge being enabled when approving a PR #4257
karfau posted onGitHub
<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. 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 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.
- 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