-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(config): automatically label PRs based on modifications to save…
… eng time #1720 ISSUE: #1720 CHANGELOG: - [ ] Configure the following files to set up the labeler action: - [ ] `.github/workflows/labeler.yml` - [ ] `.github.com/labeler.yml`
- Loading branch information
Showing
2 changed files
with
119 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,106 @@ | ||
# Add 'root' label to any root file changes | ||
# Quotation marks are required for the leading asterisk | ||
root: | ||
- changed-files: | ||
- any-glob-to-any-file: '*' | ||
|
||
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders | ||
docs: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.md' | ||
- '**/*.rst' | ||
- 'LICENSE' | ||
- 'docs-go/**' | ||
- 'docs/**' | ||
- 'py/engdocs/**' | ||
|
||
go: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.go' | ||
- '**/go.mod' | ||
- '**/go.sum' | ||
- 'go/**' | ||
|
||
python: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.py' | ||
- '**/pyproject.toml' | ||
- 'py/**' | ||
|
||
js: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.js' | ||
- '**/*.jsx' | ||
- '**/*.ts' | ||
- '**/*.tsx' | ||
- '**/package.json' | ||
- 'js/**' | ||
|
||
tooling: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- 'genkit-tools/**' | ||
|
||
config: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/*.toml' | ||
- '**/*.yaml' | ||
- '**/*.yml' | ||
- '**/.editorconfig' | ||
- '**/.github/**' | ||
- '**/.gitignore' | ||
- '**/.npmignore' | ||
- '**/.npmrc' | ||
- '**/.prettierignore' | ||
- '**/package.json' | ||
- '**/tsconfig.*.json' | ||
- '**/tsconfig.json' | ||
- '**/typedoc.json' | ||
|
||
sample: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- 'samples/**' | ||
|
||
dotprompt: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/dotprompt/**' | ||
|
||
handlebarz: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- '**/handlebarz/**' | ||
|
||
# Automatically add labels to any PR also based on branch naming conventions. | ||
build: | ||
- head-branch: [^.*/build/.*, build] | ||
|
||
chore: | ||
- head-branch: [^.*/chore/.*, chore] | ||
|
||
ci: | ||
- head-branch: [^.*/ci/.*, ci] | ||
|
||
feature: | ||
- head-branch: [^.*/feat/.*, feature] | ||
|
||
fix: | ||
- head-branch: [^.*/fix/.*, fix] | ||
|
||
perf: | ||
- head-branch: [^.*/perf/.*, perf] | ||
|
||
refactor: | ||
- head-branch: [^.*/refactor/.*, refactor] | ||
|
||
style: | ||
- head-branch: [^.*/style/.*, style] | ||
|
||
test: | ||
- head-branch: [^.*/test/.*, test] |
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,13 @@ | ||
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 |