Skip to content

Commit 0fbe4d0

Browse files
committed
Increase recent pull request limit
1 parent 09da686 commit 0fbe4d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/make_release.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# TODO: Adjust number of recent pull requests to include likely number of
2525
# pull requests since the last release.
26-
RECENT_PULL_REQUEST_LIMIT = 10
26+
RECENT_PULL_REQUEST_LIMIT = 50
2727

2828

2929
def main():
@@ -44,8 +44,10 @@ def main():
4444
most_recent_tag_datetime = most_recent_tag.commit.committed_datetime
4545
print("most_recent_tag_datetime: {}".format(most_recent_tag_datetime))
4646

47+
g = Github(login_or_token=GITHUB_TOKEN)
48+
4749
# Find merged pull requests since the most recent tag.
48-
github_repo = Github(login_or_token=GITHUB_TOKEN).get_repo(GITHUB_REPOSITORY)
50+
github_repo = g.get_repo(GITHUB_REPOSITORY)
4951
recent_pulls = github_repo.get_pulls(
5052
state="closed",
5153
sort="updated",

0 commit comments

Comments
 (0)