Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iam-medvedev/action-conventional-commit
Conventional commit parser
https://github.com/iam-medvedev/action-conventional-commit
Last synced: 25 days ago
JSON representation
Conventional commit parser
- Host: GitHub
- URL: https://github.com/iam-medvedev/action-conventional-commit
- Owner: iam-medvedev
- Created: 2022-06-08T07:13:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-16T16:43:37.000Z (over 2 years ago)
- Last Synced: 2024-09-16T00:31:11.094Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/conventional-commit-parser
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conventional commit parser
## Inputs
| Field | Description | Required | Default |
| ----- | ------------------------ | -------- | ---------- |
| token | Github token | ✔ | |
| major | Labels for major version | | '[]' |
| minor | Labels for minor version | | '["feat"]' |
| patch | Labels for patch version | | '[]' |## Outputs
| Field | Description |
| ----- | ------------------------------- |
| label | Parsed commit label |
| type | Commit type (major/minor/patch) |## Example usage
```yml
- name: Parse commit
uses: iam-medvedev/action-conventional-commit@v1
id: get-label
with:
token: ${{ secrets.GITHUB_TOKEN }}- name: Get latest version
uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
with:
semver_only: true
with_initial_version: true
initial_version: v1.0.0- name: Update version
uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
label: ${{ steps.get-label.outputs.type }}
```