forked from immich-app/immich
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: automatically apply PR labels (immich-app#10064)
Motivation ---------- For me as a new contributor it is frustrating to submit a PR and it will always fail. Even worse: I have to wait for another contributor with more power to assign the label for me. This will improve developer experience, as some of the labels can be assigned automatically based on changed files. How to test ----------- 1. Merge this PR 2. Submit a couple of PRs with changes in the respective directories 3. Labels should be automatically applied 4. "Enforce PR labels" github workflow will re-run when "Pull Request Labeler" completes
- Loading branch information
1 parent
4d86252
commit 9c33722
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cli: | ||
- changed-files: | ||
- any-glob-to-any-file: cli/** | ||
|
||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: docs/** | ||
|
||
🖥️web: | ||
- changed-files: | ||
- any-glob-to-any-file: web/** | ||
|
||
📱mobile: | ||
- changed-files: | ||
- any-glob-to-any-file: mobile/** | ||
|
||
🗄️server: | ||
- changed-files: | ||
- any-glob-to-any-file: server/** | ||
|
||
🧠machine-learning: | ||
- changed-files: | ||
- any-glob-to-any-file: machine-learning/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters