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

Support for "reviewers" as well as "assignees"? #82

Closed
stig opened this issue Jan 19, 2019 · 7 comments
Closed

Support for "reviewers" as well as "assignees"? #82

stig opened this issue Jan 19, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@stig
Copy link

stig commented Jan 19, 2019

Could we please have support for setting "reviewers" as well as assignees? The company I work for do not use assignees at all (it's implicit that the PR creator owns it, and is thus assigned) but we use reviewers extensively to request reviews from specific people.

@tarsius
Copy link
Member

tarsius commented Jun 26, 2019

So I thought "lets quickly tackle this", expecting to be able to pretty much copy-paste the assignee implementation. It seems I was wrong. "Reviewers" appear to be more complex and less intuitive than assignees, and also not sufficiently documented.

I'll need to reverse engineer this. Could you please point me to a few fairly active but preferably small repositories making extensive use of review requests?

@glittershark
Copy link

glittershark commented Jun 26, 2019

@tarsius Do you mean via Github's API? The following GQL query works for me:

repository(owner: "magit", name: "forge") {
    pullRequests(first:5) {
      nodes {
        reviewRequests(first:5) {
          nodes {
            requestedReviewer {
              ...on User {
                name
              }
            }
          }
        }
      }
    }
  }

@tarsius
Copy link
Member

tarsius commented Jun 26, 2019

No I mean a repository that actually uses review requests so that I can test whether the code that I have written actually works. (And yes, I have figured out too that I have to use inline fragments (and implement support for that in gsexp.el).)

@tarsius
Copy link
Member

tarsius commented Jun 26, 2019

Question that I have are:

  • What happens if the requested review is performed?
  • Does the respective requestedReviewer disappear?
  • If not, then why is there no status field on requestedReviewer?
  • Does it matter if the pr is approved or "needs work IMO"?

@tarsius tarsius added the awaiting Further information is requested label Jun 28, 2019
@stig
Copy link
Author

stig commented Jun 30, 2019

Here is a few modestly-sized public repos that uses review requests:

(I've no affiliation -- though I have contributed to at least one.)

@tarsius
Copy link
Member

tarsius commented Jul 11, 2019

I have added basic support for review requests. Only Github is supported because Gitlab doesn't have that feature. You can request a review, see who was asked to perform a review while looking at it in a dedicated buffer, and revoke a request. Basically you can do what you can do when assigning an issue except that the feature is called "review requests" instead of "assignees". In other words what has been requested here.

There is no support for actually performing a review (~ #75) or listing prs you have been asked to review (~ #79). At least the latter I plan to tackle soonish.

@dcaixinha

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants