Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/luketainton/conventional-commits-check-action

A GitHub Action / Gitea Action for enforcing adherance to Conventional Commits. Mirrored from Gitea.
https://github.com/luketainton/conventional-commits-check-action

action commit conventional gitea gitea-actions github github-actions mirrored-from-gitea

Last synced: 8 days ago
JSON representation

A GitHub Action / Gitea Action for enforcing adherance to Conventional Commits. Mirrored from Gitea.

Awesome Lists containing this project

README

        

# Conventional Commits Check Action

A [GitHub Action](https://github.com/features/actions) / [Gitea Action](https://docs.gitea.com/usage/actions/overview) for enforcing adherance to [Conventional Commits](https://pypi.org/project/conventional-pre-commit/).

You can use the Action as follows:

```yaml
name: Validate PR Title
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- labeled
- unlabeled
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: https://git.tainton.uk/actions/[email protected]
with:
commit-message: ${{ github.event.pull_request.title }}
```

```yaml
name: Validate Commit Message
on:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: https://git.tainton.uk/actions/[email protected]
with:
commit-message: ${{ github.event.head_commit.message }}
```

## Properties

The Conventional Commits Check Action has a property which is passed to the underlying script. These are passed to the action using `with`.

| Property | Description |
| -------------- | ---------------------------------------------- |
| commit-message | The commit message you would like to validate. |