Refined-github: Add a button to quickly approve the PR

Created on 18 Dec 2017  路  12Comments  路  Source: sindresorhus/refined-github

Looking something like this:

image

When clicking that button it would mark the PR as approved with/without comment based on the textarea.

enhancement good first issue help wanted under discussion

Most helpful comment

@bfred-it I often times go back and forth between the files and conversation view so that I can look at the diffs as well as other people's reviews. In doing so, I find that about half the time, I've ended up at the bottom of the page on the conversation view trying to approve with no way to do so (maybe it's still a force of habit from before reviews were a thing). In that scenario, though, I would find this useful.

All 12 comments

Would be useful, but the "Comment" button should be to the far right, otherwise I'll press "Approve" accidentally all the time.

Good point 馃憤

I would have the approve the color Blue (or something like that)

I鈥檓 conflicted: approve without looking at the code?

No its instead of going to the Dropdown and selecting approve

But the dropdown appears in the files tab. This comment form appears on where there鈥檚 no code visible.

@bfred-it I often times go back and forth between the files and conversation view so that I can look at the diffs as well as other people's reviews. In doing so, I find that about half the time, I've ended up at the bottom of the page on the conversation view trying to approve with no way to do so (maybe it's still a force of habit from before reviews were a thing). In that scenario, though, I would find this useful.

One note: this enhancement requires a fetch of the Files tab to get the form with the token.

In alternative or in addition, I'd like to see this:

Accept + review or Accept + dropdown

And/or this: (Implemented in #885 馃帀 )

Review in two clicks

And perhaps that whole dialog can be also shown in the Conversation and Commits tabs. However in those tabs, the header bar is not position: fixed like in Files, so you'll have to scroll up.

Anything that can be done here? Or is https://github.com/sindresorhus/refined-github/issues/1069 preferrable?

A shortcut to open the reviews panel from the conversation view would work for me 馃憤

The link would be:

https://github.com/user/repo/pull/1/files#submit-review

But where would it make sense to show it?

I'd love this feature. I often review automated PRs for dependency upgrades, and approving them requires three clicks with loading time in between.

Could this button be placed in the top right so one doesn't have to scroll down the thread? E.g. below the notifications buttons, or next to the "edit" button for the title.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Arcanemagus picture Arcanemagus  路  3Comments

alexanderadam picture alexanderadam  路  3Comments

fregante picture fregante  路  3Comments

pawelad picture pawelad  路  3Comments

mareksuscak picture mareksuscak  路  3Comments