optimize workflows
Some checks failed
Benchmark / changes (push) Has been cancelled
Golangci-Lint Check / changes (push) Has been cancelled
Release Drafter (All) / changes (push) Has been cancelled
Benchmark / compare (push) Has been cancelled
Golangci-Lint Check / lint (push) Has been cancelled
Release Drafter (All) / release-drafter (push) Has been cancelled

This commit is contained in:
René
2025-11-22 17:59:27 +01:00
parent 37028222de
commit d2085f7387
2 changed files with 12 additions and 53 deletions

30
.github/labeler.yml vendored
View File

@@ -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'

View File

@@ -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