Skip to content

Commit

Permalink
Create issue-comment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MohanRamSridhar authored May 21, 2024
1 parent b1db468 commit fc31e7a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/issue-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Comment on New Issues

on:
issues:
types: [opened]

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Post a comment on the new issue
uses: actions/github-script@v6
with:
script: |
const issueNumber = context.issue.number;
const commentBody = `Thank you for creating a new issue! 🎉 Your issue is currently under review.
If you would like to assign this issue to yourself, please comment with the word **"self"** and the issue will be assigned to you.`;

await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
body: commentBody
});

0 comments on commit fc31e7a

Please sign in to comment.