Adding more reactions when slash commands are run (#1949)

This commit is contained in:
Aaron Powell
2026-06-08 22:55:12 -07:00
committed by GitHub
parent 7d65425eeb
commit 27bc67adbb
3 changed files with 32 additions and 0 deletions
@@ -98,6 +98,18 @@ jobs:
return;
}
const reactionByCommand = {
approve: 'rocket',
reject: '-1'
};
await github.rest.reactions.createForIssueComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: context.payload.comment.id,
content: reactionByCommand[parsedCommand.command] ?? 'eyes'
});
core.setOutput('should-run', 'true');
core.setOutput('command', parsedCommand.command);
core.setOutput('reason', parsedCommand.reason ?? '');