Skip to content

Commit

Permalink
解决里程碑关闭导致检索不到
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Mar 21, 2024
1 parent 6c91443 commit 7a9f059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/parse-changelog-sillot.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def find_milestone(repo, title, lastestRelease):
---
''')
for milestone in repo.get_milestones():
for milestone in repo.get_milestones(state=all):
# REF https://docs.github.com/en/rest/issues/milestones?apiVersion=2022-11-28#list-milestones
if version in milestone.title:
return milestone

Expand Down
3 changes: 1 addition & 2 deletions scripts/parse-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ def find_milestone(repo, title, lastestRelease):
# ---

# ''')
for milestone in repo.get_milestones():
for milestone in repo.get_milestones(state=all):
if version in milestone.title:
return milestone
return version


def get_issue_first_label(issue):
Expand Down

0 comments on commit 7a9f059

Please sign in to comment.