Skip to content

Commit 222835b

Browse files
committed
add repo activity score
1 parent b7fe0aa commit 222835b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crawler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from os.path import dirname, join
77

88
import github3
9+
import repo_activity.score
910
from dotenv import load_dotenv
1011

1112
if __name__ == "__main__":
@@ -69,6 +70,9 @@
6970
topics = repo.repository.topics()
7071
innersource_repo["_InnerSourceMetadata"]["topics"] = topics.names
7172

73+
# calculate score
74+
innersource_repo["score"] = repo_activity.score.calculate(innersource_repo)
75+
7276
repo_list.append(innersource_repo)
7377

7478
# Write each repository to a repos.json file

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
github3.py==3.0.0
22
python-dotenv==0.19.2
3+
repo-activity-score==0.0.4

0 commit comments

Comments
 (0)