Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 }}
```