weekly-digest
weekly-digest copied to clipboard
Pull requests in Issues section
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.
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.
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.