File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def get_github_app_installation_token(
59
59
) -> str | None :
60
60
"""
61
61
Get a GitHub App Installation token.
62
- API: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation
62
+ API: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation # noqa: E501
63
63
64
64
Args:
65
65
ghe (str): the GitHub Enterprise endpoint
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class IssueWithMetrics:
21
21
time_in_draft (timedelta, optional): The time the PR was in draft state.
22
22
label_metrics (dict, optional): A dictionary containing the label metrics
23
23
mentor_activity (dict, optional): A dictionary containing active mentors
24
-
24
+ created_at (datetime, optional): The time the issue was created.
25
25
"""
26
26
27
27
# pylint: disable=too-many-instance-attributes
Original file line number Diff line number Diff line change @@ -108,8 +108,6 @@ def get_per_issue_metrics(
108
108
)
109
109
else :
110
110
num_issues_open += 1
111
- if env_vars .hide_created_at is False :
112
- issue_with_metrics .created_at = issue .created_at
113
111
else :
114
112
if ignore_users and issue .user ["login" ] in ignore_users : # type: ignore
115
113
continue
@@ -161,10 +159,8 @@ def get_per_issue_metrics(
161
159
)
162
160
elif issue .state == "open" : # type: ignore
163
161
num_issues_open += 1
164
- if env_vars .hide_created_at is False :
165
- issue_with_metrics .created_at = issue .created_at
166
- if not env_vars .hide_created_at :
167
- issue_with_metrics .created_at = issue ["createdAt" ]
162
+ if not env_vars .hide_created_at :
163
+ issue_with_metrics .created_at = issue ["createdAt" ]
168
164
issues_with_metrics .append (issue_with_metrics )
169
165
170
166
return issues_with_metrics , num_issues_open , num_issues_closed
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def get_non_hidden_columns(labels) -> List[str]:
81
81
columns .append (f"Time spent in { label } " )
82
82
hide_created_at = env_vars .hide_created_at
83
83
if not hide_created_at :
84
- columns .append (f' Created At' )
84
+ columns .append (" Created At" )
85
85
86
86
return columns
87
87
You can’t perform that action at this time.
0 commit comments