[ENHANCEMENT] Automated Greeting Workflow #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: Issue Assigned Comment | |
on: | |
issues: | |
types: [assigned] | |
jobs: | |
comment-on-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment on the assigned issue | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const issue_number = context.issue.number; | |
const issue_assignee = context.payload.assignee.login; | |
const contributing_guidelines_url = 'https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md'; | |
github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: issue_number, | |
body: `Hey @${issue_assignee}, Kindly refer to our [contributing guidelines](${contributing_guidelines_url}) before getting started, so that we are in the same page 😉` | |
}); |