Skip to content

Commit

Permalink
Add support for overriding discovered PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbarth committed Sep 5, 2023
1 parent c09f024 commit f6086f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/Gren.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ class Gren {
return this._getMergedPullRequests(since, page + 1).then(prsResults => prsResults.concat(filterPrs));
}

if (typeof this.options.overridePrs === 'function') {
return this.options.overridePrs(prs);
}

return filterPrs;
}

Expand Down

0 comments on commit f6086f1

Please sign in to comment.