Skip to content

Instantly share code, notes, and snippets.

@ningenMe
Last active September 13, 2021 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ningenMe/3380446f230ad2919e4f5d759961a106 to your computer and use it in GitHub Desktop.
Save ningenMe/3380446f230ad2919e4f5d759961a106 to your computer and use it in GitHub Desktop.
actions yaml for auto assingee
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