-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
42 lines (34 loc) · 1.46 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
from report.report_generator import ReportGenerator
if __name__ == '__main__':
if not os.environ.get("GITHUB_TOKEN"):
raise PermissionError("GITHUB_TOKEN environment variable isn't set.")
github_organization: str = 'padaiyal'
report_generator = ReportGenerator('https://api.github.com', github_organization)
report_generator.generate_report(
'repositories_active',
["Name", "Latest version", "License", "Description", "Language", "Exposure", "Supported?", "Last Updated",
"Open Issues"],
True)
report_generator.generate_report(
'repositories_archived',
["Name", "Latest version", "License", "Description", "Language", "Exposure", "Supported?", "Last Updated",
"Open Issues"],
False)
report_generator.generate_report(
'repositories_documentation',
["Name", "Description", "Health %", "Content reports enabled", "Code of Conduct", "Contributing Guide",
"Issue template", "Pull request template", 'License', "README", "Stars"],
True)
report_generator.generate_report(
'repositories_health',
["Name", "Exposure", "Supported?", "Last Updated", "Health %", "Open Issues"],
True)
report_generator.generate_report(
'repositories_activity',
["Name", "Latest version", "Last Updated"],
True)
report_generator.generate_report(
'repositories_traction',
["Name", "Stars"],
True)