From 51288ae282dacac7c03d42c550c62874223a8c0c Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 19 Mar 2021 15:41:14 +0900 Subject: [PATCH] Add issue comment action --- .github/workflows/issue-comment.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/issue-comment.yml diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml new file mode 100644 index 00000000..f6363b4f --- /dev/null +++ b/.github/workflows/issue-comment.yml @@ -0,0 +1,18 @@ +on: + issues: + types: [opened] + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v3 + if: contains(github.event.issue.body, 'Environment') == false + with: + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Would you write your environment? Thank you!' + })