diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..9d669a84 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +enable: + issues: false + prs: true + +labels: + "chore": + include: + - '\bchore\b' + "feat": + include: + - '\bfeat\b' + "docs": + include: + - '\bdocs\b' + "fix": + include: + - '\fix\b' + "test": + include: + - '\brefactor\b' + "test": + include: + - '\btest\b' diff --git a/.github/workflows/auto-assignee-label.yml b/.github/workflows/auto-assignee-label.yml new file mode 100644 index 00000000..d8220947 --- /dev/null +++ b/.github/workflows/auto-assignee-label.yml @@ -0,0 +1,23 @@ +name: Auto Assignee Label PR + +on: + pull_request: + types: [opened, synchronize] + +jobs: + assign: + runs-on: ubuntu-latest + steps: + - uses: hkusu/review-assign-action@v1 + with: + assignees: ${{ github.actor }} + labeler: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Check Labels + id: labeler + uses: jimschubert/labeler-action@v2 + with: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}