diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..ea3e61d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,20 @@ +version: v1 +labels: + - label: '๐Ÿ“’ Documentation' + matcher: + title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b' + - label: 'โ˜ข๏ธ Bug' + matcher: + title: '\b(fix|race|bug|missing|correct)\b' + - label: '๐Ÿงน Updates' + matcher: + title: '\b(improve|update|refactor|deprecated|remove|unused|test)\b' + - label: '๐Ÿค– Dependencies' + matcher: + title: '\b(bumb|bdependencies)\b' + - label: 'โœ๏ธ Feature' + matcher: + title: '\b(feature|feat|create|implement|add)\b' + - label: '๐Ÿค” Question' + matcher: + title: '\b(question|how)\b' diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 6df7489..134447d 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -32,61 +32,6 @@ version-resolver: - '๐Ÿค– Dependencies' - '๐Ÿงน Updates' default: patch -autolabeler: - - label: '๐Ÿ“’ Documentation' - title: - - '/docs/i' - - '/doc:/i' - - '/\[doc\]/i' - - '/README/i' - - '/typos/i' - - '/comment/i' - - '/๐Ÿ“š/i' - - '/๐Ÿ“’/i' - - '/๐Ÿ“/i' - - '/documentation/i' - - label: 'โ˜ข๏ธ Bug' - title: - - '/fix/i' - - '/race/i' - - '/bug/i' - - '/missing/i' - - '/correct/i' - - '/๐Ÿ›/i' - - '/โ˜ข/i' - - '/๐Ÿฉน/i' - - '/๐Ÿšจ/i' - - label: '๐Ÿงน Updates' - title: - - '/improve/i' - - '/update/i' - - '/refactor/i' - - '/deprecated/i' - - '/remove/i' - - '/unused/i' - - '/test/i' - - '/โšก/i' - - '/๐Ÿ‘ท/i' - - '/๐Ÿšง/i' - - '/โ™ป๏ธ/i' - - '/๐ŸŽจ/i' - - '/๐Ÿงช/i' - - '/๐Ÿงน/i' - - label: '๐Ÿค– Dependencies' - title: - - '/bumb/i' - - '/dependencies/i' - - '/๐Ÿ“ฆ/i' - - '/๐Ÿค–/i' - - label: 'โœ๏ธ Feature' - title: - - '/feature/i' - - '/create/i' - - '/implement/i' - - '/add/i' - - '/๐Ÿš€/i' - - '/โœจ/i' - - '/๐Ÿ”ฅ/i' template: | $CHANGES diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml new file mode 100644 index 0000000..ef72991 --- /dev/null +++ b/.github/workflows/auto-labeler.yml @@ -0,0 +1,21 @@ +name: Auto labeler +on: + issues: + types: [ opened, edited, milestoned ] + pull_request_target: + types: [ opened ] +permissions: + contents: read + issues: write + pull-requests: write + statuses: write + checks: write +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - name: Check Labels + id: labeler + uses: fuxingloh/multi-labeler@v2 + with: + github-token: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1669279..f4a5cea 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -5,10 +5,7 @@ on: # branches to consider in the event; optional, defaults to all branches: - master - # pull_request event is required only for autolabeler - pull_request: - # Only following types are handled by the action, but one can default to all as well - types: [opened, reopened, synchronize] + - main jobs: update_release_draft: