You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose integrating the GitHub Labeler Action into our topgrade project. This action can automatically label issues and pull requests based on predefined rules.
Benefits:
Improved Organization: Automatically categorizes issues and PRs, making it easier to manage and track them.
Consistency: Ensures that all issues and PRs are labeled uniformly, reducing the manual work required.
Increased Efficiency: Saves time for maintainers and contributors, allowing them to focus on more critical tasks.
How It Works:
The action uses a configuration file to define labeling rules.
It can match titles, descriptions, and file paths to apply labels.
Example Config:
# Add 'root' label to any root file changes# Quotation marks are required for the leading asteriskroot:
- changed-files:
- any-glob-to-any-file: '*'# Add 'AnyChange' label to any changes within the entire repositoryAnyChange:
- changed-files:
- any-glob-to-any-file: '**'# Add 'Documentation' label to any changes within 'docs' folder or any subfoldersDocumentation:
- changed-files:
- any-glob-to-any-file: docs/**# Add 'Documentation' label to any file changes within 'docs' folderDocumentation:
- changed-files:
- any-glob-to-any-file: docs/*# Add 'Documentation' label to any file changes within 'docs' or 'guides' foldersDocumentation:
- changed-files:
- any-glob-to-any-file:
- docs/*
- guides/*## Equivalent of the above mentioned configuration using another syntaxDocumentation:
- changed-files:
- any-glob-to-any-file: ['docs/*', 'guides/*']# Add 'Documentation' label to any change to .md files within the entire repository Documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-foldersource:
- all:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- all-globs-to-all-files: '!src/docs/*'# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the namefeature:
- head-branch: ['^feature', 'feature']# Add 'release' label to any PR that is opened against the `main` branchrelease:
- base-branch: 'main'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to propose integrating the GitHub Labeler Action into our topgrade project. This action can automatically label issues and pull requests based on predefined rules.
Benefits:
How It Works:
Example Config:
Beta Was this translation helpful? Give feedback.
All reactions