Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(GHA): adding conventional commit linting #133

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sledigabel
Copy link
Contributor

Using a PR to kick off a conversation about conventional commit styles
and whether we should use it for turbolift.

I've been using it and seen it used here and there on many open source
repositories and seems to be wide spread.

Change

Adding a new github action step as linting for commit messages.

What will the commit message look like?

From the documentation, they will follow this convention:

<type>[optional scope]: <description>

Where type can be:

  • fix (typically a bug fix)
  • feat (a new feature)
  • chore (for engineering health)
  • refactor and many more.

A typical commit message would look like:

feat(api): send an email to the customer when a product is shipped

Why?

Lots of OS repositories seem to have adopted the [conventional commit
style] (https://www.conventionalcommits.org/en/v1.0.0/#summary).

This PR is a simple check on the commit message, giving the commiter
feedback on the commit message style.

This could be complemented by a precommit check if we revisit it.

Adding a new github action step as linting for commit messages.
Lots of OS repositories seem to have adopted the [conventional commit
style] (https://www.conventionalcommits.org/en/v1.0.0/#summary).

This PR is a simple check on the commit message, giving the commiter
feedback on the commit message style.

This could be complemented by a precommit check if we revisit it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant