@@ -22,13 +22,11 @@ class EnvVars:
22
22
Environment variables
23
23
24
24
Attributes:
25
- enable_mentor_count (bool): If set to TRUE, compute number of mentors
26
25
gh_app_id (int | None): The GitHub App ID to use for authentication
27
26
gh_app_installation_id (int | None): The GitHub App Installation ID to use for authentication
28
27
gh_app_private_key_bytes (bytes): The GitHub App Private Key as bytes to use for authentication
29
28
gh_token (str | None): GitHub personal access token (PAT) for API authentication
30
29
ghe (str): The GitHub Enterprise URL to use for authentication
31
- heavily_involved_cutoff (str): If set, defines the cutoff after which heavily involved commentors in
32
30
hide_author (bool): If true, the author's information is hidden in the output
33
31
hide_items_closed_count (bool): If true, the number of items closed metric is hidden in the output
34
32
hide_label_metrics (bool): If true, the label metrics are hidden in the output
@@ -37,25 +35,23 @@ class EnvVars:
37
35
hide_time_to_first_response (bool): If true, the time to first response metric is hidden in the output
38
36
ignore_users (List[str]): List of usernames to ignore when calculating metrics
39
37
labels_to_measure (List[str]): List of labels to measure how much time the lable is applied
40
- max_comments_eval (str ): If set, defines the maximum number of comments to look at for mentor evaluation
38
+ enable_mentor_count (bool ): If set to TRUE, compute number of mentors
41
39
min_mentor_comments (str): If set, defines the minimum number of comments for mentors
40
+ max_comments_eval (str): If set, defines the maximum number of comments to look at for mentor evaluation
41
+ heavily_involved_cutoff (str): If set, defines the cutoff after which heavily involved commentors in
42
+ search_query (str): Search query used to filter issues/prs/discussions on GitHub
42
43
non_mentioning_links (bool): If set to TRUE, links do not cause a notification in the desitnation repository
43
- output_file (str): The name of the file to write the report to
44
44
report_title (str): The title of the report
45
- search_query (str): Search query used to filter issues/prs/discussions on GitHub
46
- sort_by_author (bool): If true, the report will be sorted by author
47
- sort_by_time_to_close (bool): If true, the report will be sorted by time to close
45
+ output_file (str): The name of the file to write the report to
48
46
"""
49
47
50
48
def __init__ (
51
49
self ,
52
- enable_mentor_count : bool ,
53
50
gh_app_id : int | None ,
54
51
gh_app_installation_id : int | None ,
55
52
gh_app_private_key_bytes : bytes ,
56
53
gh_token : str | None ,
57
54
ghe : str | None ,
58
- heavily_involved_cutoff : str ,
59
55
hide_author : bool ,
60
56
hide_items_closed_count : bool ,
61
57
hide_label_metrics : bool ,
@@ -64,14 +60,14 @@ def __init__(
64
60
hide_time_to_first_response : bool ,
65
61
ignore_user : List [str ],
66
62
labels_to_measure : List [str ],
67
- max_comments_eval : str ,
63
+ enable_mentor_count : bool ,
68
64
min_mentor_comments : str ,
65
+ max_comments_eval : str ,
66
+ heavily_involved_cutoff : str ,
67
+ search_query : str ,
69
68
non_mentioning_links : bool ,
70
- output_file : str ,
71
69
report_title : str ,
72
- search_query : str ,
73
- sort_by_author : bool ,
74
- sort_by_time_to_close : bool ,
70
+ output_file : str ,
75
71
):
76
72
self .gh_app_id = gh_app_id
77
73
self .gh_app_installation_id = gh_app_installation_id
@@ -239,3 +235,4 @@ def get_env_vars(test: bool = False) -> EnvVars:
239
235
report_title ,
240
236
output_file ,
241
237
)
238
+
0 commit comments