Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Responding to GitHub's review events #173

Open
pwaller opened this issue Oct 10, 2018 · 11 comments
Open

Responding to GitHub's review events #173

pwaller opened this issue Oct 10, 2018 · 11 comments

Comments

@pwaller
Copy link

pwaller commented Oct 10, 2018

Could we have Homu respond to GitHub's review feature, as well as r+? The event is called PullRequestReviewEvent.

@Manishearth
Copy link
Member

Manishearth commented Oct 10, 2018 via email

@pwaller
Copy link
Author

pwaller commented Oct 10, 2018

Ah, that is a fair point, I guess you can't self-review on github. Hmm.

@pwaller
Copy link
Author

pwaller commented Oct 10, 2018

On the other hand, you can always use the r+ feature in conjunction with this, rather than instead-of.

@Manishearth
Copy link
Member

Manishearth commented Oct 10, 2018 via email

@pwaller
Copy link
Author

pwaller commented Oct 10, 2018

I'd like to have a setting that does so. If a reviewer wants to give feedback and 'passively approve' (i.e, allow the submitter to self-r+), they can always leave a 'comment review' rather than 'approve/disapprove'.

@kennytm
Copy link

kennytm commented Oct 10, 2018

Often folks use the GitHub review thing to say "approved, but here are some minor changes you should make and then self-r+"

The r+ command is only interpreted you mention @bors on the same exact line, so I think this cause of misapproval would be rare.

@Manishearth
Copy link
Member

You misunderstand, the proposal is (in part) to make an approved review itself count as an r+

@pwaller
Copy link
Author

pwaller commented Oct 10, 2018

The r+ command is only interpreted you mention @bors on the same exact line, so I think this cause of misapproval would be rare.

My interpretation of @Manishearth's comment was that pressing "Approve" in github should not translate to the equivalent of r+, because people currently use "Approve Review" in github and tell a user to self-r+ to cause a merge.

@kennytm
Copy link

kennytm commented Oct 10, 2018

Okay my understanding was that homu should respond to review comments (which are currently ignored).

I agree that pressing "Approve" should not be equivalent to r+, without mentioning @bors the intention is not clear enough.

@pwaller
Copy link
Author

pwaller commented Oct 10, 2018

I would like to try and encourage my team to use the "Approve" feature, to give it an equivalence to r+. Using r+ (e.g, self-r+) would also be allowed. So it would be nice if this were an option that could be enabled.

My motivation is to get people to use the github review feature, for example to request reviews, and also to give them a nudge UI nudge towards leaving comments using the review feature (which is only seen on the 'diff' section).

@Manishearth
Copy link
Member

Yeah, there are two separate features here:

  • GH approval comments should definitely be parsed for homu commands
  • GH approvals should themselves count as an approval, provided an option is set

I don't really have time to implement this but willing to accept a patch for either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants