Fixed #49: Added GitHub Workflow for Automatic Greetings #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: Greetings | |
on: | |
issues: | |
types: [opened] | |
pull_request: | |
types: [opened] | |
jobs: | |
greet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Greet the user | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const issue = context.issue; | |
const message = "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible."; | |
await github.issues.createComment({ | |
...issue, | |
body: message | |
}); |