[FEATURE] Creating smart contract for Arbitrage-Bot #19
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: Self-assign issue | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
self-assign: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Self-assign issue | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const issueNumber = context.payload.issue.number; | |
const assignees = [context.payload.issue.user.login]; | |
github.issues.addAssignees({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: issueNumber, | |
assignees: assignees | |
}); | |