Skip to content

Commit fd15bc1

Browse files
authored
Update generate_pr_from_issue.py
1 parent 2db35bd commit fd15bc1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/generate_pr_from_issue.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def check_link_availability(test_url):
6363
title = issue['title'].replace('[Project Proposal]: ','')
6464
fname = title.replace(' ','_')
6565

66-
path = os.path.dirname('/projects/project-{}.md'.format(fname))
67-
os.makedirs(path, exist_ok=True)
68-
with open('{}/project-{}.md'.format(path,fname), "w") as f:
66+
with open(f'projects/project-{fname}.md', "w") as f:
6967
f.write('## '+title+'\n\n'+issue['body'])
70-
print('wrote {}/project-{}.md'.format(path,fname))
68+
print(f'wrote projects/project-{fname}.md')

0 commit comments

Comments
 (0)