[CI/meta] Add automatic labeling of changed files. (#4674)

* Theoretically this should work!

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* Update .github/labeler.yml

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>

* *ughhh*

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Kowlin 2021-01-07 18:09:14 +01:00 committed by GitHub
parent ecf912bc4b
commit beedc6d2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 1 deletions

91
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,91 @@
"Category: Admin":
- redbot/cogs/admin/*
"Category: Alias":
- redbot/cogs/alias/*
"Category: Audio Cog":
- redbot/cogs/audio/**/*
- !redbot/cogs/audio/**/locales/*
"Category: Bank API":
- redbot/core/bank.py
"Category: Bank Cog":
- redbot/cogs/bank/*
"Category: Bot Core":
- redbot/*
- redbot/core/__init__.py
- redbot/core/_sharedlibdeprecation.py
- redbot/core/bot.py
- redbot/core/checks.py
- redbot/core/cli.py
- redbot/core/cog_manager.py
- redbot/core/core_commands.py
- redbot/core/data_manager.py
- redbot/core/errors.py
- redbot/core/events.py
- redbot/core/global_checks.py
- redbot/core/settings_caches.py
"Category: CI":
- .github/workflows/*
"Category: Cleanup Cog":
- redbot/cogs/cleanup/*
"Category: Command Module":
- redbot/core/commands/*
- !redbot/core/commands/help.py
"Category: Config":
- redbot/core/drivers/*
- redbot/core/config.py
"Category: CustomCom":
- redbot/cogs/customcom/*
"Category: Dev Cog":
- redbot/core/dev_commands.py
"Category: Docs":
- docs/**/*
"Category: Downloader":
- redbot/cogs/downloader/*
"Category: Economy Cog":
- redbot/cogs/economy/*
"Category: Filter":
- redbot/cogs/filter/*
"Category: General Cog":
- redbot/cogs/general/*
"Category: Help":
- redbot/core/commands/help.py
"Category: i18n":
- redbot/core/i18n.py
- redbot/**/locales/*
"Category: Image":
- redbot/cogs/image/*
"Category: Meta":
- ./*
- .github/*
- .github/ISSUE_TEMPLATE/*
- .github/PULL_REQUEST_TEMPLATE/*
- schema/*
- tools/*
"Category: Mod Cog":
- redbot/cogs/mod/*
"Category: Modlog API":
- redbot/core/generic_casetypes.py
- redbot/core/modlog.py
"Category: Modlog Cog":
- redbot/cogs/modlog/*
"Category: Mutes Cog":
- redbot/cogs/mutes/*
"Category: Permissions":
- redbot/cogs/permissions/*
"Category: Reports Cog":
- redbot/cogs/reports/*
"Category: RPC/ZMQ API":
- redbot/core/rpc.py
"Category: Streams":
- redbot/cogs/streams/*
"Category: Tests":
- redbot/pytest/*
- tests/**/*
"Category: Trivia Cog":
- redbot/cogs/trivia/*
"Category: Trivia Lists":
- redbot/cogs/trivia/data/lists/*
"Category: Utility Functions":
- redbot/core/utils/*
"Category: Warnings":
- redbot/cogs/warnings/*

View File

@ -1,4 +1,4 @@
name: Auto Labeler name: Auto Labeler - Issues
on: on:
issues: issues:
types: [opened] types: [opened]

12
.github/workflows/auto_labeler_pr.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Auto Labeler - PRs
on:
pull_request_target:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Apply Type Label
uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"