Skip to content

Commit

Permalink
Add welcome workflow to greet new contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Apr 5, 2024
1 parent 147f842 commit 36a545a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/welcome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Welcome New Contributors

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Post welcome message 📨
uses: actions/github-script@v5
with:
script: |
const issue_number = context.issue.number;
const repo = context.repo.repo;
const owner = context.repo.owner;
const body = ':tada: :sparkles: Hello, thanks for opening this issue! We will review it soon. :rocket:';
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body
});
github-token: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 36a545a

Please sign in to comment.