Last active
September 13, 2021 17:03
-
-
Save ningenMe/3380446f230ad2919e4f5d759961a106 to your computer and use it in GitHub Desktop.
actions yaml for auto assingee
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: assignees-sample | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
assignees: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/github-script@v4.1.0 | |
if: github.event_name == 'pull_request' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
github.issues.addAssignees({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
assignees: `${{ github.actor }}` | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment