mirror of
https://github.com/actions/stale.git
synced 2025-12-29 21:27:25 +08:00
Add close-issue-reason option (#764)
* Add close-as-not-planned option * update readme * add to Option enum * improve wording * npm run pack * updates from review * fix tests and improve error message * fix readme order
This commit is contained in:
committed by
GitHub
parent
29e800e1c8
commit
06d2a3904b
@@ -61,7 +61,8 @@ describe('Issue', (): void => {
|
||||
ignoreUpdates: false,
|
||||
ignoreIssueUpdates: undefined,
|
||||
ignorePrUpdates: undefined,
|
||||
exemptDraftPr: false
|
||||
exemptDraftPr: false,
|
||||
closeIssueReason: ''
|
||||
};
|
||||
issueInterface = {
|
||||
title: 'dummy-title',
|
||||
|
||||
@@ -865,7 +865,8 @@ export class IssuesProcessor {
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: issue.number,
|
||||
state: 'closed'
|
||||
state: 'closed',
|
||||
state_reason: this.options.closeIssueReason || undefined
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user