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

Should fixup! commits be valid? #326

Closed
johnallen3d opened this issue Jan 26, 2022 · 1 comment
Closed

Should fixup! commits be valid? #326

johnallen3d opened this issue Jan 26, 2022 · 1 comment

Comments

@johnallen3d
Copy link

I'm just diving into (and falling in love with) the world of conventional commits! I've implemented this action and was surprised when it didn't fail after a particular push. I'm in the habit of making small "fixup" commits after opening a PR to clean up anything noticed in the review. I expected those to cause commitlint to fail with the idea that I'd do an interactive rebase when ready for re-review/merge. However, I noticed that the commitlint action passed when I pushed a fixup commit.

image

Here's my action configuration:

name: Lint Commit Messages

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  commitlint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: wagoid/commitlint-github-action@v4
@johnallen3d
Copy link
Author

Pardon the noise, I've found that fixup is ignored by default by commitlint. I'll investigate how to change that behaviour. Thanks for the great action!

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

No branches or pull requests

1 participant