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

Add RequestedReviewers to PullRequestPayload #26

Merged
merged 1 commit into from
Mar 19, 2018

Conversation

kuiro5
Copy link
Contributor

@kuiro5 kuiro5 commented Mar 10, 2018

This PR adds support for the optional requested_reviewers attribute for the review_requested action as part of thepull_request event. This is useful for consuming which Github users have been added to a pull request.

request_reviewers:

{
  "requested_reviewers": [
      {
        "login": "foo",
        "id": 123,
        "avatar_url": "https://avatars2.githubusercontent.com/",
        "gravatar_id": "",
        "url": "https://api.github.com/users/foo",
        "html_url": "https://github.com/foo",
        "followers_url": "https://api.github.com/users/foo/followers",
        "following_url": "https://api.github.com/users/foo/following{/other_user}",
        "gists_url": "https://api.github.com/users/foo/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/foo/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/foo/subscriptions",
        "organizations_url": "https://api.github.com/users/foo/orgs",
        "repos_url": "https://api.github.com/users/foo/repos",
        "events_url": "https://api.github.com/users/foo/events{/privacy}",
        "received_events_url": "https://api.github.com/users/foo/received_events",
        "type": "User",
        "site_admin": false
      }
    ]
}

Thanks, let me know if you need anything else!

@kuiro5 kuiro5 force-pushed the add-requested-reviewers branch 2 times, most recently from 0b5b2ab to 134b5f7 Compare March 10, 2018 23:22
@kuiro5 kuiro5 force-pushed the add-requested-reviewers branch from 134b5f7 to ea44f69 Compare March 10, 2018 23:33
@deankarn
Copy link
Collaborator

@kuiro5 sorry for the delay will try to get this merged today

@deankarn deankarn self-assigned this Mar 16, 2018
@deankarn deankarn merged commit 1b6492c into go-playground:v3 Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants