Extract every pull request opened against a single GitHub repo, with the opener's handle and a contribution score: that handle's fractional share (0-1) of all commits ever landed on the repo's default branch, or 0 if the author isn't a contributor at all (see the note at the top of github-issues.R for why this is a coarser but far cheaper substitute for "was this author already a contributor at the time they opened the pull request"). Also carries each pull request's comment count, and the repo's own GitHub creation timestamp, used elsewhere as the start of a repo's exposure window.
Source: R/fetch-pr-authors.R
github_pr_authors.RdExtract every pull request opened against a single GitHub repo, with the
opener's handle and a contribution score: that handle's fractional share
(0-1) of all commits ever landed on the repo's default branch, or 0 if the
author isn't a contributor at all (see the note at the top of
github-issues.R for why this is a coarser but far cheaper substitute for
"was this author already a contributor at the time they opened the pull
request"). Also carries each pull request's comment count, and the repo's
own GitHub creation timestamp, used elsewhere as the start of a repo's
exposure window.
Arguments
- repo_url
A GitHub repo URL, e.g.
"https://github.com/owner/repo".- since
If not
NULL, an ISO-8601 timestamp string restricting the GraphQL fetch to pull requests updated (including new comments, not just newly opened) at or after that time - used to refresh previously-fetched data rather than re-fetching every pull request. ThecontributorsREST call has no equivalent filter and is always fetched in full.