Skip to content

Commit

Permalink
fetch all milestones
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Dec 18, 2023
1 parent cf843b5 commit ce8ee3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch_milestone.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
args = parser.parse_args()
milestone_title: str = args.milestone_title

milestones = requests.get(f'{BASE_URL}/milestones', timeout=5).json()
milestones = requests.get(f'{BASE_URL}/milestones?state=all&per_page=100', timeout=5).json()
matching_milestones = [milestone for milestone in milestones if milestone['title'] == milestone_title]
if not matching_milestones:
print(f'Milestone "{milestone_title}" not found!')
Expand Down

0 comments on commit ce8ee3c

Please sign in to comment.