mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
ci: better labeler for issues and prs
This commit is contained in:
88
.github/labeler.yml
vendored
88
.github/labeler.yml
vendored
@@ -1,23 +1,75 @@
|
|||||||
'packages:builders':
|
version: v1
|
||||||
- packages/builders/*
|
|
||||||
- packages/builders/**/*
|
|
||||||
|
|
||||||
'packages:collection':
|
labels:
|
||||||
- packages/collection/*
|
- label: 'chore'
|
||||||
- packages/collection/**/*
|
sync: true
|
||||||
|
matcher:
|
||||||
|
files:
|
||||||
|
any:
|
||||||
|
- '*'
|
||||||
|
all:
|
||||||
|
- '!packages/*'
|
||||||
|
- '!packages/**/*'
|
||||||
|
|
||||||
'packages:discord.js':
|
- label: 'semver:major'
|
||||||
- packages/discord.js/*
|
sync: true
|
||||||
- packages/discord.js/**/*
|
matcher:
|
||||||
|
title: '^.*(\(?.*\)?)!:'
|
||||||
|
|
||||||
'packages:rest':
|
- label: 'semver:minor'
|
||||||
- packages/rest/*
|
sync: true
|
||||||
- packages/rest/**/*
|
matcher:
|
||||||
|
title: '^feat(\(?.*\))?:'
|
||||||
|
|
||||||
'packages:voice':
|
- label: 'semver:patch'
|
||||||
- packages/voice/*
|
sync: true
|
||||||
- packages/voice/**/*
|
matcher:
|
||||||
|
title: '^fix(\(?.*\))?:'
|
||||||
|
|
||||||
'packages:ws':
|
- label: 'packages:builders'
|
||||||
- packages/ws/*
|
sync: true
|
||||||
- packages/ws/**/*
|
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/**/*'
|
||||||
|
|||||||
13
.github/workflows/auto-labeler.yml
vendored
13
.github/workflows/auto-labeler.yml
vendored
@@ -1,12 +1,13 @@
|
|||||||
name: 'PR Labeler'
|
name: 'Issue/PR Labeler'
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Automatically label PR
|
- name: Automatically label Issues/PRs
|
||||||
uses: actions/labeler@v3
|
uses: fuxingloh/multi-labeler@v1
|
||||||
with:
|
|
||||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
|
||||||
sync-labels: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user