chore: add auto-labeler

This commit is contained in:
iCrawl 2022-01-07 20:42:43 +01:00
parent 1060dcdd4e
commit 4a80710e7a
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
2 changed files with 38 additions and 0 deletions

26
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,26 @@
chore:
- '*'
'packages:builders':
- packages/builders/*
- packages/builders/**/*
'packages:collection':
- packages/collection/*
- packages/collection/**/*
'packages:discord.js':
- packages/discord.js/*
- packages/discord.js/**/*
'packages:rest':
- packages/rest/*
- packages/rest/**/*
'packages:voice':
- packages/voice/*
- packages/voice/**/*
'packages:ws':
- packages/ws/*
- packages/ws/**/*

12
.github/workflows/auto-labeler.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: "PR Labeler"
on:
pull_request_target:
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Automatically label PR
uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true