diff --git a/.github/labeler.yml b/.github/labeler.yml index 9d560411f..ea9e84ede 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,23 +1,75 @@ -'packages:builders': - - packages/builders/* - - packages/builders/**/* +version: v1 -'packages:collection': - - packages/collection/* - - packages/collection/**/* +labels: + - label: 'chore' + sync: true + matcher: + files: + any: + - '*' + all: + - '!packages/*' + - '!packages/**/*' -'packages:discord.js': - - packages/discord.js/* - - packages/discord.js/**/* + - label: 'semver:major' + sync: true + matcher: + title: '^.*(\(?.*\)?)!:' -'packages:rest': - - packages/rest/* - - packages/rest/**/* + - label: 'semver:minor' + sync: true + matcher: + title: '^feat(\(?.*\))?:' -'packages:voice': - - packages/voice/* - - packages/voice/**/* + - label: 'semver:patch' + sync: true + matcher: + title: '^fix(\(?.*\))?:' -'packages:ws': - - packages/ws/* - - packages/ws/**/* + - label: 'packages:builders' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*builders' + files: + - 'packages/builders/*' + - 'packages/builders/**/*' + + - label: 'packages:collection' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*collection' + files: + - 'packages/collection/*' + - 'packages/collection/**/*' + + - label: 'packages:discord.js' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*discord\.js' + files: + - 'packages/discord.js/*' + - 'packages/discord.js/**/*' + + - label: 'packages:rest' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*rest' + files: + - 'packages/rest/*' + - 'packages/rest/**/*' + + - label: 'packages:voice' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*voice' + files: + - 'packages/voice/*' + - 'packages/voice/**/*' + + - label: 'packages:ws' + sync: true + matcher: + body: '(\s|.)*### Which package is this bug report for\?(\s|.)*ws' + files: + - 'packages/ws/*' + - 'packages/ws/**/*' diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index f4ae002b1..502da6d0f 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -1,12 +1,13 @@ -name: 'PR Labeler' +name: 'Issue/PR Labeler' on: pull_request_target: + issues: + types: + - opened + - edited jobs: triage: runs-on: ubuntu-latest steps: - - name: Automatically label PR - uses: actions/labeler@v3 - with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' - sync-labels: true + - name: Automatically label Issues/PRs + uses: fuxingloh/multi-labeler@v1