Labeler for pull_requests based on commitlint. Adds type/...
and component/...
labels by PR title
- The action loads config.json and gets info about type and component labels
- After gets labels section from PR title and compares with available labels from config.json
- Adds comparable labels and also removes redundant labels from PR
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
labeler:
name: Add labels
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: datalens-tech/add-labels-action@v1
Name | Description | Default |
---|---|---|
github_owner |
Owner of the repository. | ${{ github.repository_owner }} |
github_repo |
Repository name | ${{ github.event.repository.name }} |
github_pr_number |
GitHub PR number. | ${{ github.event.pull_request.number }} |
github_pr_title |
GitHub PR title. | ${{ github.event.pull_request.title }} |
github_token |
GitHub token. | ${{ github.token }} |
None
For all commands see Taskfile or task --list-all
.