Skip to content

Commit

Permalink
bot labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
nishinji committed Dec 17, 2023
1 parent 62a72bd commit d7a5825
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 0 deletions.
156 changes: 156 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Documentation - https://github.com/actions/labeler

# General Labels
audio:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/audio/*'
- 'vita3k/audio/**/*'
- '**aac.cpp'
- '**atrac9.cpp'
- '**mp3.cpp'
- not:
- 'external/*'
- 'external/**/*'
build:
- changed-files:
- any-glob-to-any-file:
- '.github/*'
- '.github/**/*'
- '*.sln'
- '**/*.sln'
- '*.vcxproj*'
- '**/*.vcxproj*'
- 'cmake/*'
- 'CMakeLists.txt'
- 'build.sh'
- not:
- 'external/*'
- 'external/**/*'
cpu:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/cpu/*'
- 'vita3k/cpu/**/*'
debug:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/gdbstub/*'
- 'vita3k/gdbstub/**/*'
- 'tracy.cpp'
document:
- changed-files:
- any-glob-to-any-file:
- '*.md'
- '**/*.md'
- '*.png'
- '**/*.png'
- '*.pdf'
- '**/*.pdf'
- not:
- 'external/*'
- 'external/**/*'
external:
- changed-files:
- any-glob-to-any-file:
- 'external/*'
- 'external/**/*'
gxm:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/gxm/*'
- 'vita3k/gxm/**/*'
input:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/input/*'
- 'vita3k/input/**/*'
io:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/io/*'
- 'vita3k/io/**/*'
kernel:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/kernel/*'
- 'vita3k/kernel/**/*'
lle:
- changed-files:
- any-glob-to-any-file:
# - 'vita3k/lle/*'
# - 'vita3k/lle/**/*'
memory:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/mem/*'
- 'vita3k/mem/**/*'
modules:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/module/*'
- 'vita3k/module/**/*'
- 'vita3k/modules/*'
- 'vita3k/modules/**/*'
net:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/net/*'
- 'vita3k/net/**/*'
- 'vita3k/http/*'
- 'vita3k/http/**/*'
opengl:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/renderer/**/opengl/*'
- 'vita3k/renderer/**/opengl/**/*'
renderer:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/renderer/*'
- 'vita3k/renderer/**/*'
shaders:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/shaders/*'
- 'vita3k/shaders/**/*'
- 'vita3k/shaders-builtin/*'
- 'vita3k/shaders-builtin/**/*'
threads:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/threads/*'
- 'vita3k/threads/**/*'
vulkan:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/renderer/**/vulkan/*'
- 'vita3k/renderer/**/vulkan/**/*'
- 'vita3k/vkutil/*'
- 'vita3k/vkutil/**/*'

# OS labels
windows:
- changed-files:
- any-glob-to-any-file:
- 'gen-windows.bat'
mac:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/script/update-macos.sh'
linux:
- changed-files:
- any-glob-to-any-file:
- 'appimage/*'

# GUI labels
gui:
- changed-files:
- any-glob-to-any-file:
- 'vita3k/gui/*'
- 'vita3k/gui/**/*'
lang:
- changed-files:
- any-glob-to-any-file:
- 'lang/*'
- 'lang/**/*'
17 changes: 17 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Pull Request Labeler"

on:
- pull_request_target

jobs:
labeler:
# if: github.repository == 'Vita3K/Vita3K'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit d7a5825

Please sign in to comment.