Skip to content

Commit 13eb4d9

Browse files
committed
Setting global variables in other file
1 parent 2d04770 commit 13eb4d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/release_notes_generator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@
3131
'maintenance',
3232
]
3333
NEW_LINE = '\n'
34+
GITHUB_ORG = 'sdv-dev'
35+
REPO = 'sdv'
3436

3537

3638
def _get_milestone_number(client, milestone_title):
3739
query_params = {'milestone': milestone_title, 'state': 'all', 'per_page': 100}
3840
response = client.get(
39-
github_org='sdv-dev', repo='sdv', endpoint='milestones', query_params=query_params
41+
github_org=GITHUB_ORG, repo=REPO, endpoint='milestones', query_params=query_params
4042
)
4143
body = response.json()
4244
if response.status_code != 200:
@@ -60,8 +62,8 @@ def _get_issues_by_milestone(milestone):
6062
while True:
6163
query_params['page'] = page
6264
response = client.get(
63-
github_org='sdv-dev',
64-
repo='sdv',
65+
github_org=GITHUB_ORG,
66+
repo=REPO,
6567
endpoint='issues',
6668
query_params=query_params,
6769
timeout=10,

0 commit comments

Comments
 (0)