Skip to content

Commit

Permalink
ci: add auto labels on PR (#6369)
Browse files Browse the repository at this point in the history
* ci: add auto labels

* ci(labeler): add glob for src/protocols

* ci: adapt to vaxerski request
  • Loading branch information
DrummyFloyd authored Jun 9, 2024
1 parent bf75723 commit 1f71d5f
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
assets:
- changed-files:
- any-glob-to-any-file: "assets/**"

docs:
- changed-files:
- any-glob-to-any-file: "docs/**"

hyprctl:
- changed-files:
- any-glob-to-any-file: "hyprctl/**"

hyprpm:
- changed-files:
- any-glob-to-any-file: "hyprpm/**"

nix:
- changed-files:
- any-glob-to-any-file: "nix/**"

protocols:
- changed-files:
- any-glob-to-any-file: ["protocols/**", "src/protocols/**"]

core:
- changed-files:
- any-glob-to-any-file: "src/**"

config:
- changed-files:
- any-glob-to-any-file: "src/config/**"

debug:
- changed-files:
- any-glob-to-any-file: "src/debug/**"

desktop:
- changed-files:
- any-glob-to-any-file: "src/desktop/**"

devices:
- changed-files:
- any-glob-to-any-file: "src/devices/**"

events:
- changed-files:
- any-glob-to-any-file: "src/events/**"

helpers:
- changed-files:
- any-glob-to-any-file: "src/helpers/**"

hyprerror:
- changed-files:
- any-glob-to-any-file: "src/hyprerror/**"

init:
- changed-files:
- any-glob-to-any-file: "src/init/**"

layout:
- changed-files:
- any-glob-to-any-file: "src/layout/**"

managers:
- changed-files:
- any-glob-to-any-file: "src/managers/**"

pch:
- changed-files:
- any-glob-to-any-file: "src/pch/**"

plugins:
- changed-files:
- any-glob-to-any-file: "src/plugins/**"

render:
- changed-files:
- any-glob-to-any-file: "src/render/**"

xwayland:
- changed-files:
- any-glob-to-any-file: "src/xwayland/**"
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit 1f71d5f

Please sign in to comment.