From 3ef02cbe575138684a9c1c964df53fa657bd4c1d Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Fri, 12 Mar 2021 10:07:39 +0800 Subject: [PATCH] fix --- README.md | 4 +++- dist/index.js | 2 +- src/main.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbdc408..3b10244 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,14 @@ ## How to use? +> Please pay attention to the trigger timing + ```yml name: PR Extract Issues on: pull_request: - types: [opened, edited, synchronize] + types: [opened, edited, synchronize, closed] jobs: extract: diff --git a/dist/index.js b/dist/index.js index cc271bb..825e647 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6055,7 +6055,7 @@ async function run() { owner, repo, issue_number: issue, - comment, + body: comment, }); core.info(`Actions: [create-comment][${issue}][${comment}] success!`); } diff --git a/src/main.js b/src/main.js index 4507390..32063a6 100644 --- a/src/main.js +++ b/src/main.js @@ -82,7 +82,7 @@ async function run() { owner, repo, issue_number: issue, - comment, + body: comment, }); core.info(`Actions: [create-comment][${issue}][${comment}] success!`); }