Comments (5)
@Everduin94 Yes working now.
Awesome.
from better-commits.
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.
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.
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.
@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)
- Default "max_items" value set to null HOT 2
- Options for a `bare` git repo? HOT 7
- How break a line in detailed description of the chages session HOT 4
- Renaming file without changes results in "no changes to commit" HOT 1
- Use js file for configuration instead of json HOT 3
- Want to add Alias for better-commits cmd. HOT 1
- Commit message with " doesn't work. HOT 3
- Title Template Property HOT 1
- Branch Template Property HOT 2
- Request for Feature to Customize Ticket Format in Commit Messages HOT 3
- Title count HOT 2
- How to add commit trailer based on commit type selected HOT 2
- How to use better-commits package locally within repository HOT 2
- How to remove Select optional footers list whilst keeping the default selected HOT 1
- append_hashtag option does not work when ticket cannot be inferred HOT 6
- Allow `$EDITOR` to display final confirmation HOT 3
- Missing description body HOT 13
- Reporting Security Vulnerability HOT 1
- Issue: Something went wrong when committing: Error: spawnSync /bin/sh ENOENT HOT 1
- Can you add co authored by the commit steps ?? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-commits.