vedant-jain03 want to work on the issue #16
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: Assign issue to contributor | |
run-name: "${{ github.actor }} want to work on the issue" | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
assign: | |
runs-on: ubuntu-latest | |
if: github.event.comment.user.login == github.actor && github.event.comment.body == '/assign' | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Install node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: setup octokit | |
run: npm i @octokit/rest -f | |
- name: run the script | |
run: node ./.github/workflows/scripts/assign-issue-to-contributor.js | |
env: | |
OWNER: "${{ github.repository_owner }}" | |
REPO_NAME: code-board | |
ISSUE_NUMBER: "${{ github.event.issue.number }}" | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GITHUB_ACTOR: "${{ github.actor }}" |