Apply pull request labels using a centralized labeler configuration.
- name: Label pull request
id: labeler
uses: athackst/ci/actions/pr-labeler@main
with:
github_token: $
| Name | Description | Default |
|---|---|---|
github_token |
(optional) GitHub token used to read pull requests and add labels. | $ |
configuration-path |
(optional) Path to the labeler configuration file. | Bundled labeler.yml |
| Name | Description |
|---|---|
new-labels |
Comma-separated labels added by the action. |
configuration-path is not set.configuration-path is missing, the action falls back to the bundled config.actions/labeler.Use a repository-specific labeler config:
- name: Label pull request
uses: athackst/ci/actions/pr-labeler@main
with:
github_token: $
configuration-path: .github/ci-config.yml