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:
Jacob Bandes-Storch
2022-06-23 14:43:36 -07:00
committed by GitHub
parent 29e800e1c8
commit 06d2a3904b
8 changed files with 38 additions and 7 deletions

View File

@@ -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) {