Add Repo Create subcomand & enhancements #173
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#173
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/tea:repos-create"
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?
add
tea repos create
add repo detail view
tea repos tea
/tea repos gitea/tea
impruve repo related comand descriptions
cloe #170
@ -57,6 +142,8 @@ func runReposList(ctx *cli.Context) error {
var rps []*gitea.Repository
var err error
// ToDo: on sdk v0.13.0 release, switch to SearchRepos()
TODO:
is usually better detected by IDEs2d41ba2cb8
tod63a9e0ff7
Nice, but some remarks :)
The issue with
initCommandLoginOnly()
is a bug to me, but we might want to solve it across the whole codebase in a separate PR@ -16,3 +19,3 @@
var CmdRepos = cli.Command{
Name: "repos",
Usage: "Operate with repositories",
Usage: "show repositories details",
"Show repository details"
Please change
Description
field as well@ -37,0 +44,4 @@
},
&cli.StringFlag{
Name: "user",
Aliases: []string{"u"},
lets use
owner
/-O
everywhere, and avoid two terms for the same conceptAnd why are there two flags
org
anduser
? Can't they be merged into--owner
?It will add a request ...
but It's user convinient So why not ...
Hm, I consider two flags for the same field is more confusing than convenient, but idk.
Let's leave it as is, but please change the description to say "Filter by user" then
changed :)
@ -49,3 +142,4 @@
// runReposList list repositories
func runReposList(ctx *cli.Context) error {
login := initCommandLoginOnly()
By using
initCommandLoginOnly()
, the login is not read from the current repo!This came up in #189 as well, where I wrote a workaround.
But we need a proper solution for cases where the command is meaningful when executed outside of a repo, but we still want it to consider repo context where available.
If we use
login, _, _ := initCommand()
outside of a repo we will get this:Error: repository does not exist
So yes we somehow have to unify both commands but in a way it will work for all commands
... witch is no mouch for this pull
@noerw done