Comments (1)
Hi, @ghostsquad . Thanks for your suggestions.
I think there are two ways:
1. Prevent it when git commit
.
gacp
has implemented the commitlint
rules about max-length
s since 2.6.1. If a user inputs a commit section (one of header
, body
, or footer
) longer than the commitlint
config requires, the commit message will be trimmed when performing git commit
.
You can try to add a commitlint
config to trim the commit message.
2. Prevent or warn when a user is typing.
I think this is better than 1.
Maybe we can look into the terminal prompt API to see whether it works that way.
from gacp.
Related Issues (20)
- How to turn emoji off? HOT 5
- Support for `--no-verify`
- Consider slowing down the `gif` on the readme
- Please do not push tags by default (`--follow-tags`) HOT 2
- no-verify 行为异常 HOT 1
- `terse` not `tense` HOT 6
- Multi-line longer description HOT 6
- New PRs don't have emoji in title HOT 5
- npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage HOT 2
- feat: git --set-upstream option HOT 2
- feat: git open
- feat: arbitrary post push hooks HOT 3
- error `Not a git repository` when in a subdirectory of a git repository HOT 2
- SyntaxError: Unexpected token function HOT 1
- Cursor doesn't move when using arrows when writing a description HOT 1
- history 功能没了? HOT 5
- [BUG]history在commit正确提交之后没有被清掉 HOT 1
- fatal 'origin\nupstream' does not appear to be a git repository HOT 5
- Action Required: Fix Renovate Configuration
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 gacp.