Skip to content

Commit

Permalink
feat: Introduce issue bot
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Dec 11, 2023
1 parent aad346a commit 0dd307b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/issue-bot.yml
Original file line number Diff line number Diff line change
@@ -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?'
});

0 comments on commit 0dd307b

Please sign in to comment.