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!' + })