Skip to content

Commit 402b656

Browse files
committed
[feat](check specified issue labels from an issue):
1 parent 91a754d commit 402b656

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
for i in data.json():
1818
issue = Issue(i)
1919
print(f'founded labels are: {issue.labels}, saving data') if config.DEBUG else ...
20-
with open(f'{config.PUBLISH_DIR}/{issue.title}.md', 'w') as fli:
21-
fli.write(issue.body)
22-
print(f'data saved') if config.DEBUG else ...
20+
if config.ISSUES_LABEL in issue.labels:
21+
with open(f'{config.PUBLISH_DIR}/{issue.title}.md', 'w') as fli:
22+
fli.write(issue.body)
23+
print(f'data saved') if config.DEBUG else ...

0 commit comments

Comments
 (0)