abcxyz / github-metrics-aggregator

Apache License 2.0
11 stars 3 forks source link

Restrict returned pull requests to default branch #146

Closed lock14 closed 9 months ago

lock14 commented 9 months ago

Previously, GetPullRequests() returned any pull requests for the given commit. However we are only interested in pull requests that are targeting the repository's default branch. This change filters out any pull requests that target branches other than a repositories default branch. GitPullRequests() has been renamed to GetPullRequestsTargetingDefaultBranch() in order to reflect this change.