alibaba / git-repo-go

git-repo is a command-line tool for centralized workflow, can work with Gerrit, AGit-Flow compatible servers. It is written in Golang, and it can be installed easily without further dependency. It provides an easy-to-use solution for multiple repositories which is introduced by Android repo first, and it can also work with a single repository.

Home Page:https://git-repo.info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to submit 'git pr' without opening an editor?

Ncerzzk opened this issue · comments

version info:
git-repo version 0.7.6
git version 2.19.1.6.gb485710b

I have some regression tests which would update the code, and it's a bit dangerous to git push directly.
Is there a way to submit 'git pr' without opening an editor?

I tried gir pr --no-edit -y, but still opened the editor.

version info: git-repo version 0.7.6 git version 2.19.1.6.gb485710b

I have some regression tests which would update the code, and it's a bit dangerous to git push directly. Is there a way to submit 'git pr' without opening an editor?

I tried gir pr --no-edit -y, but still opened the editor.

There is no such option -y:

$ git-repo upload --single --no-edit -y
Error: unknown shorthand flag: 'y' in -y

There is a hidden option --assume-yes, you can try:

$ git pr --no-edit --assume-yes

git pr is an alias command, show me the hidden options of git pr:

$ git config alias.pr  
repo upload --single

Thank you, this is what i want.