You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (state === _structures_js__WEBPACK_IMPORTED_MODULE_0__/* .PullState */ .lT.Open) {
81098
-
console.log(`Getting [${state}] pulls in org [${org}]...`);
81101
+
(0,_actions_core__WEBPACK_IMPORTED_MODULE_1__.debug)(`Getting [${state}] ${(0,_krauters_utils__WEBPACK_IMPORTED_MODULE_2__.plural)('pull', 2)} in org [${org}]...`);
81099
81102
}
81100
81103
else {
81101
-
console.log(`Getting [${state}] pulls in org [${org}] that are newer than [${oldest}...`);
81104
+
(0,_actions_core__WEBPACK_IMPORTED_MODULE_1__.debug)(`Getting [${state}] ${(0,_krauters_utils__WEBPACK_IMPORTED_MODULE_2__.plural)('pull', 2)} in org [${org}] that are newer than [${oldest}]...`);
81102
81105
}
81103
81106
const pullRequests = [];
81107
+
let apiRequestCount = 0;
81104
81108
for (const repo of repositories) {
81105
81109
(0,_actions_core__WEBPACK_IMPORTED_MODULE_1__.debug)(`Getting [${state}] pulls in repository [${repo.name}]...`);
(0,_actions_core__WEBPACK_IMPORTED_MODULE_1__.debug)(`Paginated response for repository [${repo.name}], status [${response.status}], items [${response.data.length}]`);
81112
81118
const found = response.data.find((pull) => new Date(pull.created_at) < oldest);
81113
81119
if (found && state !== _structures_js__WEBPACK_IMPORTED_MODULE_0__/* .PullState */ .lT.Open) {
@@ -81116,7 +81122,8 @@ class GitHubClient {
81116
81122
}
81117
81123
return response.data.filter((pull) => new Date(pull.created_at) > oldest);
81118
81124
});
81119
-
console.log(`Found [${pulls.length}] pull in repository [${repo.name}]`);
console.log(`Completed processing [${pullRequests.length}] pull requests in [${totalDuration.toFixed(2)}] seconds with [${apiRequestCount}] API calls`);
81158
81167
return pullRequests;
81159
81168
}
81160
81169
/**
@@ -81832,6 +81841,7 @@ class SlackClient {
81832
81841
this.client = new dist.WebClient(token);
81833
81842
this.channels = channels;
81834
81843
this.userMappings = userMappings;
81844
+
console.log(`Slack client initialized with [${channels.length}] channels and [${userMappings.length}] user mappings`);
81835
81845
}
81836
81846
/**
81837
81847
* Ensure app name pattern.
@@ -81848,6 +81858,7 @@ class SlackClient {
81848
81858
throw new Error(`Current app name [${name}] does not match the desired pattern [${pattern}]. Please update Slack app "Basic Information" > "Display Information" > "App name" to have the suffix "GitHub Notifier". Slack app url [${SlackAppUrl.Prefix}/${info?.bot?.app_id}/${SlackAppUrl.SuffixDisplayInfo}].`);
0 commit comments