Run actions/labeler with configuration shared across repositories.
This action serves as a convenient wrapper for actions/labeler. Automatically assigning labels to new pull requests based on changed file paths or branch names, similar to actions/labeler.
To set up the action, you need to create a YAML file that defines your configurations. Refer to the detailed configuration syntax for the labeler in actions/labeler.
steps:
- name: Cross Labeler
uses: tmknom/cross-labeler-action@v0
with:
configuration-url: https://raw.githubusercontent.com/tmknom/configurations/main/labeler/conventional-commits.yml
steps:
- name: Cross Labeler
uses: tmknom/cross-labeler-action@v0
with:
configuration-path: .github/labeler.yml
Name | Description | Default | Required |
---|---|---|---|
configuration-path | The path for the label configurations. | n/a | no |
configuration-url | The url for the label configurations. | n/a | no |
pr-number | The pull request number(s). | n/a | no |
Name | Description |
---|---|
configuration-path | The path for the configuration file to passing actions/labeler. |
configuration-sha256 | SHA256 of the configuration file to passing actions/labeler. |
Scope | Access |
---|---|
contents | read |
pull-requests | write |
N/A
- label-workflows: Collection of label workflows.
- configurations: Collection of configurations.
See GitHub Releases.
Apache 2 Licensed. See LICENSE for full details.