mirror of
https://github.com/actions/stale.git
synced 2025-12-11 12:37:27 +00: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
@@ -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