Giter Club home page Giter Club logo

Comments (5)

harssh avatar harssh commented on August 15, 2024 1

@Everduin94 Yes working now.

Awesome.

from better-commits.

Everduin94 avatar Everduin94 commented on August 15, 2024

I've never used overcommit, looking at the docs (I'm assuming this is a pre-commit hook), I believe it is anticipating git commit.

Can you try this as a test for me? -- Run git commit -m "message" -e. Does that fire the overcommit hook?

If so, I believe there is a change I can try. If not, I don't think it's going to work.

from better-commits.

Everduin94 avatar Everduin94 commented on August 15, 2024

Edit: I tried testing this with a pre-commit hook I use at work. I believe it's husky, not overcommit, should be similar though.

Are you sure the hook didn't work? -- I think better-commits might be throwing away the output but the hook may still have ran (at least it is in my case). Can you try to verify this as well? And if that's the case I have a few things I can try.

from better-commits.

harssh avatar harssh commented on August 15, 2024

Getting below output

git commit -m "message" -e
Running pre-commit hooks
Analyze with RailsBestPractices..................[RailsBestPractices] OK
Analyze with RuboCop........................................[RuboCop] FAILED
Unexpected output: unable to determine line number or type of error/warning for output:
Inspecting 1 file
C

But with better-commit it just silently fails to commit if there are offenses.

◇ Found global config
┌ better-commits

◇ Found global config

◇ Checking Git Status

◆ Changes to be committed:
│ lib/tasks/db/db.rake

◇ Select a commit type
│ refactor

◇ Select a commit scope
│ app

◇ Ticket / issue infered from branch (confirm / edit)
│ tik-5397

◇ Write a brief title describing the commit
│ test commit

◇ Write a detailed description of the changes (optional)


◇ Select optional footers ( to select)
│ custom

◇ Write a custom footer
│ test

◇ Commit Preview ──────────────────────╮
│ │
│ refactor(app): tik-5397 test commit │
│ │
│ test │
│ │
├───────────────────────────────────────╯

◇ Confirm Commit?
│ Yes

After pressing enter no output appears, and the commit won;t actually happen.

from better-commits.

Everduin94 avatar Everduin94 commented on August 15, 2024

@harssh -- I created 1.0.8-print-output. -- Its also the latest release so if you just update you should get the changes. Could you install and test it for me?

Edit: I tested at my work with our husky pre-commit hooks and it works for me

from better-commits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.