Skip to content

Commit 98ed4cb

Browse files
C0ZENdependabot[bot]HonkingGooseromainr
authored
chore(logs): final overhaul of the logs (#433)
* feat(logs): add a new log when an issue consumed at least one operation (#386) * docs(only-labels): enhance the docs and fix duplicate (#341) * docs(only-labels): remove duplicated option and improve descriptions a bad rebase happend * docs(readme): use a multi-line array and remove the optional column the option column was not helpful since each value is optional the multi-line array will allow to have a better UI in small devices and basically in GitHub too due to the max-width * style(readme): break line for the statistics * docs(readme): add a better description for the ascending option * docs(action): add missing punctuation * build(deps-dev): bump @typescript-eslint/eslint-plugin (#342) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.15.2 to 4.16.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.16.1/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump @octokit/rest from 18.3.0 to 18.3.2 (#350) Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.3.0 to 18.3.2. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](octokit/rest.js@v18.3.0...v18.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#15) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#17) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#18) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs(operations-per-run): improve the doc for this option * feat(logs): add a new log when an issue consumed at least one operation the log will be visible as the last row of the processing of the given issue closes #348 * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * chore(readme): improve the operations per run Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * Typo in how to perform check for specific labels (#357) Not tests but feels like a typo. Or if we keep the title it `exempt` feels more approriate: exempt-issue-labels: 'roadmap' exempt-pr-labels: 'roadmap' * feat(any-of-labels): add 2 new options to customize for issues/PRs (#380) * docs(only-labels): enhance the docs and fix duplicate (#341) * docs(only-labels): remove duplicated option and improve descriptions a bad rebase happend * docs(readme): use a multi-line array and remove the optional column the option column was not helpful since each value is optional the multi-line array will allow to have a better UI in small devices and basically in GitHub too due to the max-width * style(readme): break line for the statistics * docs(readme): add a better description for the ascending option * docs(action): add missing punctuation * build(deps-dev): bump @typescript-eslint/eslint-plugin (#342) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.15.2 to 4.16.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.16.1/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump @octokit/rest from 18.3.0 to 18.3.2 (#350) Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.3.0 to 18.3.2. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](octokit/rest.js@v18.3.0...v18.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#15) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#17) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#18) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(any-of-labels): add 2 new options to customize for issues/PRs closes #371 change this option and only-labels to have tree-logs * chore(index): update it Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(logs): enhance the logs for assignees and milestones (#382) * docs(only-labels): enhance the docs and fix duplicate (#341) * docs(only-labels): remove duplicated option and improve descriptions a bad rebase happend * docs(readme): use a multi-line array and remove the optional column the option column was not helpful since each value is optional the multi-line array will allow to have a better UI in small devices and basically in GitHub too due to the max-width * style(readme): break line for the statistics * docs(readme): add a better description for the ascending option * docs(action): add missing punctuation * build(deps-dev): bump @typescript-eslint/eslint-plugin (#342) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.15.2 to 4.16.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.16.1/packages/eslint-plugin) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump @octokit/rest from 18.3.0 to 18.3.2 (#350) Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.3.0 to 18.3.2. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](octokit/rest.js@v18.3.0...v18.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#15) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#17) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: add more coverage for the stale label behaviour (#352) (#18) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(logs): enhance the logs for assignees and milestones closes #381 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * style(typo): fix typo plural issue * style(naming): rename two methods * chore(error): remove a potential useless throw of error * style(naming): rename one method * refactor(issue): change the way to count the operations * refactor(operations): create a method to reduce code duplication Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com> * chore(logs): final overhaul of the logs display more values in cyan display all the options the same way (with links pointing to the readme so that with anchors we could find them easily later make them a little more humanized add more logs especially for the stale conditions * style(logs): fix typos Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
1 parent 5230759 commit 98ed4cb

File tree

4 files changed

+198
-70
lines changed

4 files changed

+198
-70
lines changed

dist/index.js

Lines changed: 63 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Assignees {
3333
return false;
3434
}
3535
if (this._shouldExemptAllAssignees()) {
36-
this._issueLogger.info(chalk_1.default.white('└──'), 'Skipping $$type because it has an exempt assignee');
36+
this._issueLogger.info(chalk_1.default.white('└──'), 'Skipping this $$type because it has an exempt assignee');
3737
return true;
3838
}
3939
const exemptAssignees = this._getExemptAssignees();
@@ -280,6 +280,11 @@ class IssuesProcessor {
280280
issueLogger.info(chalk_1.default.cyan(consumedOperationsCount), `operation${consumedOperationsCount > 1 ? 's' : ''} consumed for this $$type`);
281281
}
282282
}
283+
static _getStaleMessageUsedOptionName(issue) {
284+
return issue.isPullRequest
285+
? option_1.Option.StalePrMessage
286+
: option_1.Option.StaleIssueMessage;
287+
}
283288
processIssues(page = 1) {
284289
var _a, _b;
285290
return __awaiter(this, void 0, void 0, function* () {
@@ -297,7 +302,7 @@ class IssuesProcessor {
297302
for (const issue of issues.values()) {
298303
const issueLogger = new issue_logger_1.IssueLogger(issue);
299304
(_b = this._statistics) === null || _b === void 0 ? void 0 : _b.incrementProcessedItemsCount(issue);
300-
issueLogger.info(`Found this $$type last updated ${issue.updated_at}`);
305+
issueLogger.info(`Found this $$type last updated at: ${chalk_1.default.cyan(issue.updated_at)}`);
301306
// calculate string based messages for this issue
302307
const staleMessage = issue.isPullRequest
303308
? this.options.stalePrMessage
@@ -319,7 +324,7 @@ class IssuesProcessor {
319324
: this._getDaysBeforeIssueStale();
320325
const onlyLabels = words_to_list_1.wordsToList(this._getOnlyLabels(issue));
321326
if (onlyLabels.length > 0) {
322-
issueLogger.info(`The option "onlyLabels" was specified to only processed the issues and pull requests with all those labels (${onlyLabels.length})`);
327+
issueLogger.info(`The option ${issueLogger.createOptionLink(option_1.Option.OnlyLabels)} was specified to only process issues and pull requests with all those labels (${chalk_1.default.cyan(onlyLabels.length)})`);
323328
const hasAllWhitelistedLabels = onlyLabels.every((label) => {
324329
return is_labeled_1.isLabeled(issue, label);
325330
});
@@ -334,23 +339,23 @@ class IssuesProcessor {
334339
}
335340
}
336341
else {
337-
issueLogger.info(`The option "onlyLabels" was not specified`);
342+
issueLogger.info(`The option ${issueLogger.createOptionLink(option_1.Option.OnlyLabels)} was not specified`);
338343
issueLogger.info(chalk_1.default.white('└──'), `Continuing the process for this $$type`);
339344
}
340-
issueLogger.info(`Days before $$type stale: ${daysBeforeStale}`);
345+
issueLogger.info(`Days before $$type stale: ${chalk_1.default.cyan(daysBeforeStale)}`);
341346
const shouldMarkAsStale = should_mark_when_stale_1.shouldMarkWhenStale(daysBeforeStale);
342347
if (!staleMessage && shouldMarkAsStale) {
343-
issueLogger.info(`Skipping $$type due to empty stale message`);
348+
issueLogger.info(`Skipping this $$type because it should be marked as stale based on the option ${issueLogger.createOptionLink(this._getDaysBeforeStaleUsedOptionName(issue))} (${chalk_1.default.cyan(daysBeforeStale)}) but the option ${issueLogger.createOptionLink(IssuesProcessor._getStaleMessageUsedOptionName(issue))} is not set`);
344349
IssuesProcessor._endIssueProcessing(issue);
345350
continue;
346351
}
347352
if (issue.state === 'closed') {
348-
issueLogger.info(`Skipping $$type because it is closed`);
353+
issueLogger.info(`Skipping this $$type because it is closed`);
349354
IssuesProcessor._endIssueProcessing(issue);
350355
continue; // Don't process closed issues
351356
}
352357
if (issue.locked) {
353-
issueLogger.info(`Skipping $$type because it is locked`);
358+
issueLogger.info(`Skipping this $$type because it is locked`);
354359
IssuesProcessor._endIssueProcessing(issue);
355360
continue; // Don't process locked issues
356361
}
@@ -359,16 +364,16 @@ class IssuesProcessor {
359364
if (this.options.startDate) {
360365
const startDate = new Date(this.options.startDate);
361366
const createdAt = new Date(issue.created_at);
362-
issueLogger.info(`A start date was specified for the ${get_humanized_date_1.getHumanizedDate(startDate)} (${this.options.startDate})`);
367+
issueLogger.info(`A start date was specified for the ${get_humanized_date_1.getHumanizedDate(startDate)} (${chalk_1.default.cyan(this.options.startDate)})`);
363368
// Expecting that GitHub will always set a creation date on the issues and PRs
364369
// But you never know!
365370
if (!is_valid_date_1.isValidDate(createdAt)) {
366371
IssuesProcessor._endIssueProcessing(issue);
367372
core.setFailed(new Error(`Invalid issue field: "created_at". Expected a valid date`));
368373
}
369-
issueLogger.info(`$$type created the ${get_humanized_date_1.getHumanizedDate(createdAt)} (${issue.created_at})`);
374+
issueLogger.info(`$$type created the ${get_humanized_date_1.getHumanizedDate(createdAt)} (${chalk_1.default.cyan(issue.created_at)})`);
370375
if (!is_date_more_recent_than_1.isDateMoreRecentThan(createdAt, startDate)) {
371-
issueLogger.info(`Skipping $$type because it was created before the specified start date`);
376+
issueLogger.info(`Skipping this $$type because it was created before the specified start date`);
372377
IssuesProcessor._endIssueProcessing(issue);
373378
continue; // Don't process issues which were created before the start date
374379
}
@@ -387,13 +392,13 @@ class IssuesProcessor {
387392
issueLogger.info(`An exempt label was added after the stale label.`);
388393
yield this._removeStaleLabel(issue, staleLabel);
389394
}
390-
issueLogger.info(`Skipping $$type because it has an exempt label`);
395+
issueLogger.info(`Skipping this $$type because it has an exempt label`);
391396
IssuesProcessor._endIssueProcessing(issue);
392397
continue; // Don't process exempt issues
393398
}
394399
const anyOfLabels = words_to_list_1.wordsToList(this._getAnyOfLabels(issue));
395400
if (anyOfLabels.length > 0) {
396-
issueLogger.info(`The option "anyOfLabels" was specified to only processed the issues and pull requests with one of those labels (${anyOfLabels.length})`);
401+
issueLogger.info(`The option ${issueLogger.createOptionLink(option_1.Option.AnyOfLabels)} was specified to only process the issues and pull requests with one of those labels (${chalk_1.default.cyan(anyOfLabels.length)})`);
397402
const hasOneOfWhitelistedLabels = anyOfLabels.some((label) => {
398403
return is_labeled_1.isLabeled(issue, label);
399404
});
@@ -408,7 +413,7 @@ class IssuesProcessor {
408413
}
409414
}
410415
else {
411-
issueLogger.info(`The option "anyOfLabels" was not specified`);
416+
issueLogger.info(`The option ${issueLogger.createOptionLink(option_1.Option.AnyOfLabels)} was not specified`);
412417
issueLogger.info(chalk_1.default.white('└──'), `Continuing the process for this $$type`);
413418
}
414419
const milestones = new milestones_1.Milestones(this.options, issue);
@@ -424,17 +429,28 @@ class IssuesProcessor {
424429
// Should this issue be marked stale?
425430
const shouldBeStale = !IssuesProcessor._updatedSince(issue.updated_at, daysBeforeStale);
426431
// Determine if this issue needs to be marked stale first
427-
if (!issue.isStale && shouldBeStale && shouldMarkAsStale) {
428-
issueLogger.info(`Marking $$type stale because it was last updated on ${issue.updated_at} and it does not have a stale label`);
429-
yield this._markStale(issue, staleMessage, staleLabel, skipMessage);
430-
issue.isStale = true; // This issue is now considered stale
431-
}
432-
else if (!issue.isStale) {
433-
issueLogger.info(`Not marking as stale: shouldBeStale=${shouldBeStale}, shouldMarkAsStale=${shouldMarkAsStale}`);
432+
if (!issue.isStale) {
433+
issueLogger.info(`This $$type is not stale`);
434+
const updatedAtDate = new Date(issue.updated_at);
435+
if (shouldBeStale) {
436+
issueLogger.info(`This $$type should be stale based on the last update date the ${get_humanized_date_1.getHumanizedDate(updatedAtDate)} (${chalk_1.default.cyan(issue.updated_at)})`);
437+
if (shouldMarkAsStale) {
438+
issueLogger.info(`This $$type should be marked as stale based on the option ${issueLogger.createOptionLink(this._getDaysBeforeStaleUsedOptionName(issue))} (${chalk_1.default.cyan(daysBeforeStale)})`);
439+
yield this._markStale(issue, staleMessage, staleLabel, skipMessage);
440+
issue.isStale = true; // This issue is now considered stale
441+
issueLogger.info(`This $$type is now stale`);
442+
}
443+
else {
444+
issueLogger.info(`This $$type should not be marked as stale based on the option ${issueLogger.createOptionLink(this._getDaysBeforeStaleUsedOptionName(issue))} (${chalk_1.default.cyan(daysBeforeStale)})`);
445+
}
446+
}
447+
else {
448+
issueLogger.info(`This $$type should not be stale based on the last update date the ${get_humanized_date_1.getHumanizedDate(updatedAtDate)} (${chalk_1.default.cyan(issue.updated_at)})`);
449+
}
434450
}
435451
// Process the issue if it was marked stale
436452
if (issue.isStale) {
437-
issueLogger.info(`Found a stale $$type`);
453+
issueLogger.info(`This $$type is already stale`);
438454
yield this._processStaleIssue(issue, staleLabel, actor, closeMessage, closeLabel);
439455
}
440456
IssuesProcessor._endIssueProcessing(issue);
@@ -516,7 +532,7 @@ class IssuesProcessor {
516532
var _a;
517533
return __awaiter(this, void 0, void 0, function* () {
518534
const issueLogger = new issue_logger_1.IssueLogger(issue);
519-
issueLogger.info(`Checking for label on $$type`);
535+
issueLogger.info(`Checking for label on this $$type`);
520536
this._consumeIssueOperation(issue);
521537
(_a = this._statistics) === null || _a === void 0 ? void 0 : _a.incrementFetchedItemsEventsCount();
522538
const options = this.client.issues.listEvents.endpoint.merge({
@@ -546,7 +562,7 @@ class IssuesProcessor {
546562
const daysBeforeClose = issue.isPullRequest
547563
? this._getDaysBeforePrClose()
548564
: this._getDaysBeforeIssueClose();
549-
issueLogger.info(`Days before $$type close: ${daysBeforeClose}`);
565+
issueLogger.info(`Days before $$type close: ${chalk_1.default.cyan(daysBeforeClose)}`);
550566
const issueHasUpdate = IssuesProcessor._updatedSince(issue.updated_at, daysBeforeClose);
551567
issueLogger.info(`$$type has been updated: ${chalk_1.default.cyan(issueHasUpdate)}`);
552568
// should we un-stale this issue?
@@ -560,10 +576,10 @@ class IssuesProcessor {
560576
return; // nothing to do because we aren't closing stale issues
561577
}
562578
if (!issueHasComments && !issueHasUpdate) {
563-
issueLogger.info(`Closing $$type because it was last updated on ${issue.updated_at}`);
579+
issueLogger.info(`Closing $$type because it was last updated on! ${chalk_1.default.cyan(issue.updated_at)}`);
564580
yield this._closeIssue(issue, closeMessage, closeLabel);
565581
if (this.options.deleteBranch && issue.pull_request) {
566-
issueLogger.info(`Deleting branch for as delete-branch option was specified`);
582+
issueLogger.info(`Deleting the branch the option ${issueLogger.createOptionLink(option_1.Option.DeleteBranch)} was specified`);
567583
yield this._deleteBranch(issue);
568584
this.deletedBranchIssues.push(issue);
569585
}
@@ -577,14 +593,14 @@ class IssuesProcessor {
577593
_hasCommentsSince(issue, sinceDate, actor) {
578594
return __awaiter(this, void 0, void 0, function* () {
579595
const issueLogger = new issue_logger_1.IssueLogger(issue);
580-
issueLogger.info(`Checking for comments on $$type since ${sinceDate}`);
596+
issueLogger.info(`Checking for comments on $$type since: ${chalk_1.default.cyan(sinceDate)}`);
581597
if (!sinceDate) {
582598
return true;
583599
}
584600
// find any comments since the date
585601
const comments = yield this.listIssueComments(issue.number, sinceDate);
586602
const filteredComments = comments.filter(comment => comment.user.type === 'User' && comment.user.login !== actor);
587-
issueLogger.info(`Comments not made by actor or another bot: ${filteredComments.length}`);
603+
issueLogger.info(`Comments not made by actor or another bot: ${chalk_1.default.cyan(filteredComments.length)}`);
588604
// if there are any user comments returned
589605
return filteredComments.length > 0;
590606
});
@@ -594,7 +610,7 @@ class IssuesProcessor {
594610
var _a, _b, _c;
595611
return __awaiter(this, void 0, void 0, function* () {
596612
const issueLogger = new issue_logger_1.IssueLogger(issue);
597-
issueLogger.info(`Marking $$type as stale`);
613+
issueLogger.info(`Marking this $$type as stale`);
598614
this.staleIssues.push(issue);
599615
// if the issue is being marked stale, the updated date should be changed to right now
600616
// so that close calculations work correctly
@@ -719,7 +735,7 @@ class IssuesProcessor {
719735
issueLogger.info(`Delete branch from closed $$type - ${issue.title}`);
720736
const pullRequest = yield this._getPullRequest(issue);
721737
if (!pullRequest) {
722-
issueLogger.info(`Not deleting branch as pull request not found for this $$type`);
738+
issueLogger.info(`Not deleting this branch as no pull request was found for this $$type`);
723739
return;
724740
}
725741
if (this.options.debugOnly) {
@@ -746,7 +762,7 @@ class IssuesProcessor {
746762
var _a;
747763
return __awaiter(this, void 0, void 0, function* () {
748764
const issueLogger = new issue_logger_1.IssueLogger(issue);
749-
issueLogger.info(`Removing the label "${chalk_1.default.cyan(label)}" from the $$type...`);
765+
issueLogger.info(`Removing the label "${chalk_1.default.cyan(label)}" from this $$type...`);
750766
this.removedLabelIssues.push(issue);
751767
if (this.options.debugOnly) {
752768
return;
@@ -854,6 +870,21 @@ class IssuesProcessor {
854870
this._operations.consumeOperation();
855871
issue.operations.consumeOperation();
856872
}
873+
_getDaysBeforeStaleUsedOptionName(issue) {
874+
return issue.isPullRequest
875+
? this._getDaysBeforePrStaleUsedOptionName()
876+
: this._getDaysBeforeIssueStaleUsedOptionName();
877+
}
878+
_getDaysBeforeIssueStaleUsedOptionName() {
879+
return isNaN(this.options.daysBeforeIssueStale)
880+
? option_1.Option.DaysBeforeStale
881+
: option_1.Option.DaysBeforeIssueStale;
882+
}
883+
_getDaysBeforePrStaleUsedOptionName() {
884+
return isNaN(this.options.daysBeforePrStale)
885+
? option_1.Option.DaysBeforeStale
886+
: option_1.Option.DaysBeforePrStale;
887+
}
857888
}
858889
exports.IssuesProcessor = IssuesProcessor;
859890

@@ -1018,7 +1049,7 @@ class Milestones {
10181049
return false;
10191050
}
10201051
if (this._shouldExemptAllMilestones()) {
1021-
this._issueLogger.info(chalk_1.default.white('└──'), 'Skipping $$type because it has a milestone');
1052+
this._issueLogger.info(chalk_1.default.white('└──'), 'Skipping this $$type because it has a milestone');
10221053
return true;
10231054
}
10241055
const exemptMilestones = this._getExemptMilestones();

src/classes/assignees.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class Assignees {
3535
if (this._shouldExemptAllAssignees()) {
3636
this._issueLogger.info(
3737
chalk.white('└──'),
38-
'Skipping $$type because it has an exempt assignee'
38+
'Skipping this $$type because it has an exempt assignee'
3939
);
4040

4141
return true;

0 commit comments

Comments
 (0)