ci: Automatically label pull requests

This commit is contained in:
Tyler Wilding 2021-03-27 20:53:13 -04:00 committed by lightningterror
parent 0235bec410
commit 6cc969a89c
2 changed files with 123 additions and 0 deletions

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

@ -0,0 +1,108 @@
# Documentation - https://github.com/actions/labeler
# General Labels
'Build | Project System':
- '.github/*'
- '.github/**/*'
- '*.sln'
- '**/*.sln'
- '*.vcxproj*'
- '**/*.vcxproj*'
- 'cmake/*'
- 'cmake/**/*'
- 'CMakeLists.txt'
- '**/CMakeLists.txt'
- 'buildbot.xml'
- 'build.sh'
'Dependencies':
- '3rdparty/*'
- '3rdparty/**/*'
- '**/3rdpartyDeps.props'
- '.gitmodules'
'Documentation':
- '*.md'
- '**/*.md'
- '*.pdf'
- '**/*.pdf'
'GUI/WX':
- 'pcsx2/gui/*'
- 'pcsx2/gui/**/*'
'GameDB':
- '**/GameIndex.*'
'Installer | Package':
- 'nsis/*'
- 'nsis/**/*'
- 'build.sh'
# Tools / Features
'Debugger':
- 'pcsx2/DebugTools/*'
- 'pcsx2/DebugTools/**/*'
- 'pcsx2/gui/Debugger/*'
- 'pcsx2/gui/Debugger/**/*'
'IPC':
- 'pcsx2/IPC*'
- 'pcsx2/**/IPC*'
'TAS Functionality':
- 'pcsx2/Recording/*'
- 'pcsx2/Recording/**/*'
# Emulation Components
'Counters':
- 'pcsx2/Counters.*'
'Vector Units':
- 'pcsx2/VU*'
- 'pcsx2/**/VU*'
- 'pcsx2/*VU*'
- 'pcsx2/**/*VU*'
'VIF':
- 'pcsx2/Vif*'
- 'pcsx2/**/Vif*'
- 'pcsx2/VIF*'
- 'pcsx2/**/VIF*'
# GS Related Labels
'Plugin: GS': # TODO - update after plugin merge
- '**/GSdx/*'
- '**/GSdx/**'
'GS: Direct3D':
- '**/GSdx/Renderers/DX11/*'
- '**/GSdx/Renderers/DX11/**/*'
'GS: Hardware':
- '**/GSdx/Renderers/HW/*'
- '**/GSdx/Renderers/HW/**/*'
'GS: OpenGL':
- '**/GSdx/Renderers/OpenGL/*'
- '**/GSdx/Renderers/OpenGL/**/*'
'GS: Texture Cache':
- '**/GSdx/Renderers/*TextureCache*.*'
- '**/GSdx/Renderers/**/*TextureCache*.*'
'GS: Software':
- '**/GSdx/Renderers/SW/*'
- '**/GSdx/Renderers/SW/**/*'
# Other Core Components
'CDVD':
- 'pcsx2/CDVD/*'
- 'pcsx2/CDVD/**/*'
'DEV9':
- 'pcsx2/DEV9/*'
- 'pcsx2/DEV9/**/*'
'IPU':
- 'pcsx2/IPU/*'
- 'pcsx2/IPU/**/*'
'Memory Card':
- 'pcsx2/gui/MemoryCard*'
- 'pcsx2/gui/**/MemoryCard*'
'PAD: Linux/Mac':
- 'pcsx2/PAD/Linux/*'
- 'pcsx2/PAD/Linux/**/*'
'PAD: Windows':
- 'pcsx2/PAD/Windows/*'
- 'pcsx2/PAD/Windows/**/*'
'SPU2':
- 'pcsx2/SPU2/*'
- 'pcsx2/SPU2/**/*'
'USB':
- 'pcsx2/USB/*'
- 'pcsx2/USB/**/*'

15
.github/workflows/pr-triage.yml vendored Normal file
View File

@ -0,0 +1,15 @@
# Runs steps to triage an incoming Pull Request, for example - applying labels.
name: "Pull Request Triage"
on:
pull_request_target:
branches:
- '*'
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"