weekly-digest icon indicating copy to clipboard operation
weekly-digest copied to clipboard

Pull requests in Issues section

Open Glennmen opened this issue 6 years ago • 2 comments

I noticed in the DEV.to repo that pull requests are also being shown in the issues section: https://github.com/thepracticaldev/dev.to/issues/1816

While looking at the Github API docs I noticed that it mentions that pull requests are also being returned in the issues endpoint: https://developer.github.com/v3/issues/

Note: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the pull_request key.

Be aware that the id of a pull request returned from "Issues" endpoints will be an issue id. To find out the pull request id, use the "List pull requests" endpoint.

I wasn't sure if this was a bug or maybe for some reason intended behaviour. Anyways if it is a bug this can easily be fixed by adjusting the filter in markdownIssues.js. I can make a PR with the fix once this gets approved as a bug.

Glennmen avatar Feb 18 '19 08:02 Glennmen

Is this intended behaviour or indeed a bug? I can make a PR for it but would like to know if this is an approved bug.

Glennmen avatar Feb 26 '19 08:02 Glennmen

Well, initially, it was an intended behavior or I can say I was forced to do it because I could not find a way at that time to make a difference. I will check this PR out and will review it soon.

abhijeetps avatar May 07 '20 21:05 abhijeetps