feat: default number support issue-comment (#90)

* feat: default number support issue-comment

* add log
This commit is contained in:
xrkffgg
2021-09-13 17:11:13 +08:00
committed by GitHub
parent 2751b8e755
commit 5c1fab1ef7
4 changed files with 13 additions and 3 deletions

4
dist/index.js vendored
View File

@@ -11621,7 +11621,9 @@ async function main() {
}
let defaultNo;
if (ctx.eventName === 'issues') defaultNo = ctx.payload.issue.number;
if (ctx.eventName === 'issues' || ctx.eventName === 'issue_comment') {
defaultNo = ctx.payload.issue.number;
}
const issueNumber = core.getInput('issue-number') || defaultNo;
const commentId = core.getInput('comment-id');