Sha256: 63866aac64eb0a7f2fbfbea90ff62ff1499de727720036932a4496ecd9fe534f

Contents?: true

Size: 1.02 KB

Versions: 30

Compression:

Stored size: 1.02 KB

Contents

# Lefthook configuration. For more information, see:
# https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md

pre-push:
  parallel: true
  commands:
    # Run all tests (warn if there are any missing tools required for tests).
    rspec:
      run: bundle exec rspec -f progress
      glob: '*.rb'

    # Run ruby linting
    rubocop:
      run: bundle exec rubocop
      glob: '*.rb'

    # Changelog git trailer for the first commit of the branch
    changelog-on-first-commit:
      run: |
        git fetch origin main
        first_commit_message=$(git log --format=%B -n 1 $(git log origin/main..HEAD --pretty=format:"%h" | tail -1))
        if ! echo ${first_commit_message} | grep "Changelog:"; then
          echo Could not find a Changelog: git trailer on the first commit for this branch.
          echo
          echo Please add a trailer by amending the git commit message.
          echo
          echo See https://docs.gitlab.com/ee/development/changelog.html#overview for more info.
          exit 1
        fi

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-2.6.0 lefthook.yml
gitlab_quality-test_tooling-2.5.0 lefthook.yml
gitlab_quality-test_tooling-2.4.0 lefthook.yml
gitlab_quality-test_tooling-2.3.0 lefthook.yml
gitlab_quality-test_tooling-2.2.0 lefthook.yml
gitlab_quality-test_tooling-2.1.0 lefthook.yml
gitlab_quality-test_tooling-2.0.0 lefthook.yml
gitlab_quality-test_tooling-1.39.0 lefthook.yml
gitlab_quality-test_tooling-1.38.1 lefthook.yml
gitlab_quality-test_tooling-1.38.0 lefthook.yml
gitlab_quality-test_tooling-1.37.0 lefthook.yml
gitlab_quality-test_tooling-1.36.0 lefthook.yml
gitlab_quality-test_tooling-1.35.0 lefthook.yml
gitlab_quality-test_tooling-1.34.0 lefthook.yml
gitlab_quality-test_tooling-1.33.0 lefthook.yml
gitlab_quality-test_tooling-1.32.1 lefthook.yml
gitlab_quality-test_tooling-1.32.0 lefthook.yml
gitlab_quality-test_tooling-1.31.0 lefthook.yml
gitlab_quality-test_tooling-1.30.0 lefthook.yml
gitlab_quality-test_tooling-1.29.1 lefthook.yml