aevea / commitsar

Tool to check that commits comply with conventional commit standard
https://commitsar.aevea.ee
MIT License
134 stars 19 forks source link

commitsar not working on main branch as ref #499

Open israelshenkar opened 1 year ago

israelshenkar commented 1 year ago

Starting analysis of commits on branch reference not found

when added master branch to my new repo it started working again

fallion commented 1 year ago

Hi @israelshenkar

Which version are you using? Just so I can debug from there.

t3hmrman commented 7 months ago

Hey for anyone that runs into this, it was a case of RTFM (in particular the note about fetch-depth). Copy pastable workflow:

name: Lint

on:
  pull_request:

jobs:
  ensure-conventional-commits:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Ensure conventional commits
        uses: aevea/commitsar@916c7b483225a30d3a17f407fa25f5b25888ea69 # v0.20.2