You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
conventional-release-labels
v1.3.0
Action that automatically adds labels to pull requests based on Conventional Commits. These labels can be used in conjunction GitHub's automatically generated release notes:
Create a .github/workflows/conventional-label.yaml
:
on:
pull_request:
types: [ opened, edited ]
name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
Create a .github/release.yaml
:
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- breaking
- title: Exciting New Features 🎉
labels:
- feature
- title: Fixes 🔧
labels:
- fix
- title: Other Changes
labels:
- "*"
input | description |
---|---|
token |
A GitHub secret token, the action defaults to using the special, default: secrets.GITHUB_TOKEN |
type_labels |
Mapping from Conventional Commit types to pull request labels, default: {"feat": "feature", "fix": "fix", "breaking": "breaking"} |
ignored_types |
Conventional commit types that should have ignore_label applied, default: ["chore"] |
ignore_label |
label to apply for ignored commits, default: ignore-for-release |
Enjoy 🎉
tool | description |
---|---|
release-please-action | Fully automated releases with Conventional Commits |
Apache Version 2.0