Great_idea!!!! #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Welcome New Contributors | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
jobs: | |
welcome: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Mask GitHub Token | |
run: echo "::add-mask::${{ secrets.GITHUB_TOKEN }}" | |
- 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}} |