mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
feat(release): show notes and assets, upload with --clobber, download like gh
release view printed "v0.1.0 v0.1.0" and a URL: the notes and assets were only in --json. It now shows the title and tag, a Latest, Pre-release or Draft badge, who released it when and the target, the assets with their sizes and the notes, rendered on a terminal. Without a tag it shows the latest release, and --web opens it. release asset upload silently attached a second asset with the same name; it now refuses unless --clobber replaces the existing one. release delete printed the deleted release as a live row; it reports "✓ Deleted release v2.0.0 ... (tag kept; use --delete-tag)". release list shows TITLE, TYPE, TAG and PUBLISHED. release create takes asset files after the tag, -t/-n/-F/-e/-d/-p (--body and --body-file still work) and the new alias. Downloads select assets by name or ID or with --pattern, default to every asset of the latest release, write to ./NAME, --dir or --output with --clobber/--skip-existing, and --archive fetches the source code. release upload and release download are shortcuts for the asset commands, asset edit and delete take names or IDs, and the release JSON gains author and assets. Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
11 files changed
+984
-357
No files matched your search
@@ -487,17 +487,6 @@ const (
|
||||
pr review view
|
||||
pr status
|
||||
pr view
|
||||
release asset delete
|
||||
release asset download
|
||||
release asset edit
|
||||
release asset list
|
||||
release asset upload
|
||||
release create
|
||||
release delete
|
||||
release edit
|
||||
release list
|
||||
release publish
|
||||
release view
|
||||
search issue
|
||||
search pr
|
||||
status
|
||||
@@ -522,8 +511,6 @@ const (
|
||||
pr
|
||||
pr attachment
|
||||
pr comment
|
||||
release
|
||||
release asset
|
||||
time
|
||||
wiki
|
||||
`
|
||||
|
||||
Reference in new issue
Block a user