nguyengiabk / auto-assign-issue

GitHub action that auto-assigns issues to a user or users

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub action that auto-assigns issues to users

Inputs

Parameter Required Description
assignees true Comma separated list of user names. Issue will be assigned to those users.
numOfAssignee false Number of required assignee. Assign all users if not set.

Example usage

Here's an example flow that auto-assigns all new issues to the octocat user:

name: Issue assignment

on:
    issues:
        types: [opened]

jobs:
    auto-assign:
        runs-on: ubuntu-latest
        steps:
            - name: 'Auto-assign issue'
              uses: pozil/auto-assign-issue@v1
              with:
                  assignees: octocat,cat,dog
                  numOfAssignee: 1

Specifying a dynamic user

Instead of hardcoding the user name in the workflow, you can use a secret:

  • create a GitHub secret named DEFAULT_ISSUE_ASSIGNEE with the name of the user
  • use this value ${{ secrets.DEFAULT_ISSUE_ASSIGNEE }} instead of the username in the workflow.

About

GitHub action that auto-assigns issues to a user or users

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 100.0%