vivaxy / gacp Goto Github PK
View Code? Open in Web Editor NEW💬Git add, commit, push with Conventional Commits and Gitmoji.
Home Page: https://github.com/vivaxy/gacp
License: MIT License
💬Git add, commit, push with Conventional Commits and Gitmoji.
Home Page: https://github.com/vivaxy/gacp
License: MIT License
3.0.0 版本支持了 no-verify,我在使用的时候发现好像默认是开启 no-verify
的,当我在 配置中添加了 verify: true
后或者是在命令行里添加 --no-verify=true
,git 提交时才会触发 husky
配置的 hook 校验
代码里的逻辑是不是写反了,我理解 --no-verify=true
时代表的应该是不校验?
Is there a way to turn emoji off entirely?
当前流程下,每次提交前会生成histroy文件并写入提交内容,提交成功后删除histroy文件,造成多次无意义磁盘IO
建议改成提交失败时生成histroy文件,提交成功后删除
use mem-fs-editor
I just received this warning when installing GACP.
$ npm i -g gacp
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
While writing descriptions during the prompts, I noticed that although the cursor technically does move, there's no visual indicator when using the arrow keys (left and right)
I noticed that gacp
is asking me to write a short, imperative tense description
. I think the word to be used is terse
.
--follow-tags
should not be true by default, and configurable. I was just bitten by using gacp
and having a local tag pushed that i didn't want upstream.
localhost:~ kevin$ nvm use 6.5.0
Now using node v6.5.0 (npm v6.11.3)
localhost:~ kevin$ gacp
/Users/kevin/.nvm/versions/node/v6.5.0/lib/node_modules/gacp/lib/bin.js:19
async function configureYargs() {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
I've found it hard to follow along with what's happening in the gif
in the Readme, and when I show this tool to someone else, they say the same thing.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
Ouput original information when add commit and push
whenever I used GACP on a fork of a repository, and I have multiple remotes (origin & upstream), gacp fails to push with an error like:
2 files changed, 20 insertions(+)
fatal: 'origin
upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
as you can see, there's definitely something off with this message, and it appears it's getting a list of remotes, and using both (with a newline between them) in the command.
gacp should probably not assume which remote to push to. Simply using the tracking of the branch should be enough.
add an option to run git open
after pushing
It should be --follow-tags
$ git help push | grep "\-\-follow-tag"
git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
当前header-max-length
为100,@commitlint/config-conventional
为72,建议与@commitlint/config-conventional
保持一致保持一致
I often will get fatal: no upstream configured for branch 'feat/foo'
when running gacp
. This is easily solved locally as I have an alias and function to solve that:
alias gpsup='git push --set-upstream origin $(git_current_branch)'
git_current_branch () {
local ref
ref=$(__git_prompt_git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(__git_prompt_git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
}
It would be nice if I could tell gacp
to do that for me.
maybe something like --set-upstream origin
and in .gacprc
it would look like:
{
"setUpstream": "origin"
}
chooo
type
shows chooo
, but feat
is selected.本地文件无跟新时,应该增加提示,可以类似于 git status 的结果
Is it possible to support --no-verify
to GACP?
I found that the combination of commit type (fix, feat, etc) + scope + commit header can easily reach the < 50 character limit that's recommended not only when viewing a commit in Github, but also here:
https://chris.beams.io/posts/git-commit/
This is a request to prevent or warn the user when their commit title is > 50 characters.
I noticed that PR titles to Github look like feat: :rocket: stuff
instead of
feat: 🚀 stuff
How do I do a longer multi-line description when asked for a "Provide a longer description of the change" ?
Hi
Any change to get a config option to avoid committing all files? I'd like to split the commits but currently, all files get added & committed?
以前使用的时候以后有 history 的功能,即执行 gacp 的时候如果被中断了,下次执行的时候会默认选择上次执行时的选项和填充的文字内容,但是不知道从某个版本之后好像这个功能没有了,请问这个是什么原因呢?
set the upstream branch automatically when pushing
git push --set-upstream origin $(git_current_branch)
某些仓库可能并不支持emoji代码,建议增加选项可以选择使用实际的emoji符号
I noticed that I get an error Not a git repository
when running gacp
within a subdirectory of a git repository.
Current workaround is to navigate to the root of the git repo, but this is not ideal from a workflow standpoint.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.