Skip to content

Commit 8674e4d

Browse files
committed
add suppor for multiple topics
1 parent 0e5e7ec commit 8674e4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crawler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
# Set the topic
2626
topic = os.getenv("TOPIC")
27+
# If multiple topics, split topics by comma
28+
topics = [t.strip() for t in topic.split(',')]
2729
organization = os.getenv("ORGANIZATION")
2830

2931
# Get all repos from organization

0 commit comments

Comments
 (0)