Make updates on reactions opt-in
This commit is contained in:
parent
1f507bdb42
commit
d8ee8ced61
@ -751,7 +751,9 @@ export class IssuesProcessor {
|
||||
shouldRemoveStaleWhenUpdated &&
|
||||
(issueHasUpdateSinceStale ||
|
||||
issueHasCommentsSinceStale ||
|
||||
issueHasReactionsSinceStale) &&
|
||||
(this.options.ignoreReactions === false
|
||||
? issueHasReactionsSinceStale
|
||||
: false)) &&
|
||||
!issue.markedStaleThisRun
|
||||
) {
|
||||
issueLogger.info(
|
||||
@ -790,7 +792,9 @@ export class IssuesProcessor {
|
||||
if (
|
||||
!issueHasCommentsSinceStale &&
|
||||
!issueHasUpdateInCloseWindow &&
|
||||
!issueHasReactionsSinceStale
|
||||
(this.options.ignoreReactions === false
|
||||
? !issueHasReactionsSinceStale
|
||||
: true)
|
||||
) {
|
||||
issueLogger.info(
|
||||
`Closing $$type because it was last updated on: ${LoggerService.cyan(
|
||||
|
||||
@ -51,6 +51,7 @@ export interface IIssuesProcessorOptions {
|
||||
ignoreUpdates: boolean;
|
||||
ignoreIssueUpdates: boolean | undefined;
|
||||
ignorePrUpdates: boolean | undefined;
|
||||
ignoreReactions: boolean | undefined;
|
||||
exemptDraftPr: boolean;
|
||||
closeIssueReason: string;
|
||||
includeOnlyAssigned: boolean;
|
||||
|
||||
@ -88,6 +88,7 @@ function _getAndValidateArgs(): IIssuesProcessorOptions {
|
||||
ignoreUpdates: core.getInput('ignore-updates') === 'true',
|
||||
ignoreIssueUpdates: _toOptionalBoolean('ignore-issue-updates'),
|
||||
ignorePrUpdates: _toOptionalBoolean('ignore-pr-updates'),
|
||||
ignoreReactions: _toOptionalBoolean('ignore-reactions'),
|
||||
exemptDraftPr: core.getInput('exempt-draft-pr') === 'true',
|
||||
closeIssueReason: core.getInput('close-issue-reason'),
|
||||
includeOnlyAssigned: core.getInput('include-only-assigned') === 'true'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user