Add Release Subcomands #195
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#195
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/tea:enhance-release"
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 Subcomands to list, edit and delete
@ -29,0 +38,4 @@
Usage: "List Releases",
Description: "List Releases",
Action: runReleases,
Flags: AllDefaultFlags,
While we're at it, it might be nice to add a 'prerelease
/
draftfilter flag for
tea releases ls`?Not supported by the sdk
.. and api
@ -149,0 +175,4 @@
Name: "delete",
Usage: "Delete a release",
Description: `Delete a release`,
ArgsUsage: "[<release tag>]",
[foo]
indicates thatfoo
is optional. release tag is not optional.@ -149,0 +221,4 @@
}
// CmdReleaseEdit represents a sub command of Release to edit releases
var CmdReleaseEdit = cli.Command{
please add
ArgsUsage: "<release tag>"
to options@ -149,0 +257,4 @@
},
&cli.BoolFlag{
Name: "release",
Usage: "Release Draft/Pre-Release",
what does this flag do? it's unclear to me, there already is a draft/prerelease flag.
releasea a "unreleased" release <- how should I describe it ?!?
Ah I get it now, after looking at the logic behind the flag.
I'd remove this flag, if you want to change the draft state, you can just use
--draft=false
flag.Imo the use case does not exist where you intentionally set both
--draft --prerelease
on creation, and lateron want to remove both flags. (i.e. why initially set the prerelease flag then?)@ -149,0 +268,4 @@
tag := ctx.Args().First()
if len(tag) == 0 {
fmt.Println("Release tag needed to delete")
should be
...to edit"