mirror of
https://github.com/go-gitea/tea.git
synced 2026-07-21 03:05:31 -04:00
[GH-ISSUE #12] tea releases create gives error "You have to indicate a repo or execute the command in a repo" but no repo option allowed #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LittleColin on GitHub (Apr 15, 2019).
Original GitHub issue: https://github.com/go-gitea/tea/issues/12
I'm probably doing something stupid but I've successfully done a tea login and was then attempting to create a release with:
tea releases create --title "0.0.1-alpha" --target master --draft --asset myapp.zip
But how do I specify the repo? There is no -r/--repo flag on this command and the preceding login command didn't allow me to specify a repo at the end of the url.
I understandably get the error:
You have to indicate a repo or execute the command in a repoI'm not sure what "in a repo" means - I'm in the git folder containing my app. Eventually I'll want to do this from the CI.
Any examples of creating a release much appreciated.
FWIW Doing a tea -v gives Tea version 0.1.0-dev
@techknowlogick commented on GitHub (Apr 15, 2019):
There should be a
-rflag in use, per https://github.com/go-gitea/tea/blob/master/cmd/releases.go#L33Could you try:
tea releases create --title "0.0.1-alpha" --target master --draft --asset myapp.zip -r exampleuser/examplerepo(assuming your username isexampleuserand repo name isexamplerepo).Please respond with updates on success (or otherwise).
Edit: Just saw your edit re: CI, if you use Drone then you can use the following plugin http://plugins.drone.io/drone-plugins/drone-gitea-release/ to create releases and upload attachments
@LittleColin commented on GitHub (Apr 15, 2019):
-r gives:
Failed to run app with %s: %v[C:\Users\<me>\go\bin\tea.exe releases create --title 0.0.1-alpha --target master --draft --asset myapp.zip -r myorg/myrepo] flag provided but not defined: -r@lunny commented on GitHub (Apr 15, 2019):
@LittleColin just do that on your repo git directory.
@root360-AndreasUlm commented on GitHub (Apr 16, 2019):
@LittleColin currently --repo is an argument of 'release' thus you have to run
tea releases --repo exampleuser/examplerepo create --title "0.0.1-alpha" --target master --draft --asset myapp.zip@lunny this usage is kind of unintuitive I'll create a PR that adds --repo to the create subcommand
tea releases create gives error "You have to indicate a repo or execute the command in a repo" but no repo option allowedto [GH-ISSUE #12] tea releases create gives error "You have to indicate a repo or execute the command in a repo" but no repo option allowed