Skip to content

Commit

Permalink
chore: Add assign me reply bot script
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Jan 20, 2021
1 parent c1abd8d commit bc71e86
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/issue-scripts.yml
@@ -0,0 +1,22 @@
name: "Issue Scripts"

on:
issue_comment:
types: [created]

jobs:
assign-check:
runs-on: ubuntu-latest

if: contains(github.event.comment.body, 'please assign') || contains(github.event.comment.body, 'assign me')
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: "We don't assign issues to external contributors. Please comment that you're working on the issue after checking that no one else is, and then send a pull request for it. Thank You!"
})

0 comments on commit bc71e86

Please sign in to comment.