Skip to content

Commit

Permalink
Create issue-welcome.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rakinplaban committed Jun 1, 2024
1 parent f6f5838 commit 89c045e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/issue-welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Welcome New Issues

on:
issues:
types: [opened]

jobs:
welcome:
runs-on: ubuntu-latest

steps:
- name: Send Welcome Message
uses: actions/github-script@v6
with:
github-token: ${{ secrets.SMIRK123_TOKEN }}
script: |
const issueNumber = context.issue.number;
const welcomeMessage = `
Hi @${{ github.actor }},
Thanks for opening this issue! We'll get back to you soon.
Best,
smirk123
`;
await github.issues.createComment({
...context.repo,
issue_number: issueNumber,
body: welcomeMessage
});

0 comments on commit 89c045e

Please sign in to comment.