diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 4a677c4e..00000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: v1 -labels: - - label: '๐Ÿ“’ Documentation' - matcher: - title: '/(docs|doc:|\[doc\]|README|typos|comment|documentation)/i' - - label: 'โ˜ข๏ธ Bug' - matcher: - title: '/(fix|bug)/i' - - label: '๐Ÿงน Updates' - matcher: - title: '/(improve|chore|improvements|missing|update|refactor|deprecated|remove|unused|test)/i' - - label: '๐Ÿค– Dependencies' - matcher: - title: '/(bump|dependencies)/i' - files: - - 'go.mod' - - 'go.sum' - - '**/go.mod' - - '**/go.sum' - - label: 'โœ๏ธ Feature' - matcher: - title: '/(feature|feat|create|implement|add|support)/i' - - label: '๐Ÿ“ Proposal' - matcher: - title: '/(proposal|idea|request|suggest)/i' - - label: '๐Ÿค” Question' - matcher: - title: '/(question|how)/i' - - diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index dc99a1ae..346aed68 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -1,28 +1,17 @@ -name: Auto labeler +name: auto-labeler on: - issues: - types: [opened, edited, milestoned] - pull_request_target: - types: [opened, edited, reopened, synchronize] - workflow_dispatch: -permissions: - # Setting up permissions in the workflow to limit the scope of what it can do. Optional! - contents: read # the config file - issues: write # for labeling issues (on: issues) - pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request) - statuses: write # to generate status - checks: write # to generate status + issues: + types: [opened, edited, milestoned] + pull_request_target: + types: [opened, edited, reopened, synchronize] + workflow_dispatch: jobs: - labeler: - runs-on: ubuntu-latest - steps: - - name: Check Labels - id: labeler - uses: fuxingloh/multi-labeler@b15a54460c38f54043fa75f7b08a0e2aa5b94b5b #v4.0.0 + auto-labeler: + uses: gofiber/.github/.github/workflows/auto-labeler.yml@main + secrets: + github-token: ${{ secrets.ISSUE_PR_TOKEN }} with: - # Use a PAT so that applying labels can trigger downstream workflows - # (GITHUB_TOKEN updates do not emit additional workflow events). - github-token: ${{ secrets.ISSUE_PR_TOKEN }} - + config-path: .github/labeler.yml + config-repository: gofiber/.github