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

missing "closed_by" data in response for single issue request #1349

Closed
lbrader opened this issue Jun 7, 2016 · 1 comment
Closed

missing "closed_by" data in response for single issue request #1349

lbrader opened this issue Jun 7, 2016 · 1 comment

Comments

@lbrader
Copy link

lbrader commented Jun 7, 2016

https://github.com/octokit/octokit.net/blob/master/docs/issues.md

I'm retrieving a list of issues from a repository and if it's close I retrieve the single issue. The issue value returned from the single issue response - does not contain "Close_by" fields.

var issue = await client.Issue.Get("octokit", "octokit.net",#_of_issue);

The "issue" response is incorrect.

Reference https://developer.github.com/v3/issues/#get-a-single-issue for the expected JSON response format. Inside the response the "closed_by" value is expected - doesn't exist.
{
// removed for clarity
"closed_by": {
"login": "octocat",
"id": 1,
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
}

@ryangribble
Copy link
Contributor

duplicate of #1350

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

No branches or pull requests

2 participants