From 0dd307b94c3229f36633284d5452b2d735bf9cab Mon Sep 17 00:00:00 2001 From: Tom Kerkhove Date: Mon, 11 Dec 2023 07:40:30 +0100 Subject: [PATCH] feat: Introduce issue bot --- .github/workflows/issue-bot.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/issue-bot.yml diff --git a/.github/workflows/issue-bot.yml b/.github/workflows/issue-bot.yml new file mode 100644 index 000000000..fbb060e88 --- /dev/null +++ b/.github/workflows/issue-bot.yml @@ -0,0 +1,22 @@ +name: Issue Bot + +on: + issues: + types: [opened, reopened] + +jobs: + pr_bot: + name: Issue Bot + runs-on: ubuntu-latest + steps: + - name: 'Comment on PR' + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: ${{ github.event.number }}, + body: 'Thank you for opening an issue! We rely on the community to maintain Promitor. ([Learn more](https://github.com/tomkerkhove/promitor/issues/2425)) Is this something you want to contribute?' + });