Skip to content

Commit ffd4d1f

Browse files
authored
Add PR labeler (#2031)
## Description It's nice to be able to filter PRs by what components they've modified. The 5 labels that have been selected are `frontend`, `backend`, `documentation`, `photonlib`, and `website`, since those are the primary components in the monorepo. ## Meta Merge checklist: - [x] Pull Request title is [short, imperative summary](https://cbea.ms/git-commit/) of proposed changes - [x] The description documents the _what_ and _why_ - [ ] If this PR changes behavior or adds a feature, user documentation is updated - [ ] If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly - [ ] If this PR touches configuration, this is backwards compatible with settings back to v2024.3.1 - [ ] If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated - [ ] If this PR addresses a bug, a regression test for it is added
1 parent 1310640 commit ffd4d1f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"backend":
2+
- changed-files:
3+
- any-glob-to-any-file: [photon-core/**, photon-server/**]
4+
- all-globs-to-all-files: "!photon-server/src/main/resources/web/index.html"
5+
"documentation":
6+
- changed-files:
7+
- any-glob-to-any-file: [docs/**, photon-docs/**]
8+
"frontend":
9+
- changed-files:
10+
- any-glob-to-any-file: photon-client/**
11+
"photonlib":
12+
- changed-files:
13+
- any-glob-to-any-file: photon-lib*/**
14+
"website":
15+
- changed-files:
16+
- any-glob-to-any-file: website/**

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5
13+
with:
14+
sync-labels: true

0 commit comments

Comments
 (0)