We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61ca49a commit 13f3bfaCopy full SHA for 13f3bfa
src/index.ts
@@ -441,8 +441,10 @@ function buildIssueComment(json: any, env: BoundEnv): string | null {
441
function buildIssueClose(json: any): string {
442
const { issue, repository, sender } = json;
443
444
+ const reason = issue.state_reason;
445
+
446
return buildEmbedBody(
- `[${repository["full_name"]}] Issue closed: #${issue.number} ${issue.title}`,
447
+ `[${repository["full_name"]}] Issue closed ${reason ? `as ${reason.replaceAll('_', ' ')}` : ''}: #${issue.number} ${issue.title}`,
448
issue["html_url"],
449
sender,
450
16730159
0 commit comments