gitea-tea leap-16.1 91324b6042
#2
7
_service
7
_service
@@ -3,10 +3,11 @@
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://gitea.com/gitea/tea.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">refs/tags/v0.10.1</param>
|
||||
<param name="revision">61d4e571a7e086f53f5f8a7713151839e1a32151</param>
|
||||
<param name="filename">gitea-tea</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)\+0</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
|
||||
64
fix-CVE-2025-47911.patch
Normal file
64
fix-CVE-2025-47911.patch
Normal file
@@ -0,0 +1,64 @@
|
||||
diff -rubN vendor/golang.org/x/net/html/escape.go vendor-patched/golang.org/x/net/html/escape.go
|
||||
--- a/vendor/golang.org/x/net/html/escape.go 2025-06-06 12:16:37.000000000 +0200
|
||||
+++ b/vendor-patched/golang.org/x/net/html/escape.go 2025-10-09 10:38:44.325052734 +0200
|
||||
@@ -299,7 +299,7 @@
|
||||
case '\r':
|
||||
esc = " "
|
||||
default:
|
||||
- panic("unrecognized escape character")
|
||||
+ panic("html: unrecognized escape character")
|
||||
}
|
||||
s = s[i+1:]
|
||||
if _, err := w.WriteString(esc); err != nil {
|
||||
diff -rubN vendor/golang.org/x/net/html/parse.go vendor-patched/golang.org/x/net/html/parse.go
|
||||
--- a/vendor/golang.org/x/net/html/parse.go 2025-10-09 10:39:56.705570069 +0200
|
||||
+++ b/vendor-patched/golang.org/x/net/html/parse.go 2025-10-09 10:38:59.062361676 +0200
|
||||
@@ -231,7 +231,14 @@
|
||||
}
|
||||
|
||||
if n.Type == ElementNode {
|
||||
+ p.insertOpenElement(n)
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+func (p *parser) insertOpenElement(n *Node) {
|
||||
p.oe = append(p.oe, n)
|
||||
+ if len(p.oe) > 512 {
|
||||
+ panic("html: open stack of elements exceeds 512 nodes")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -810,7 +817,7 @@
|
||||
p.im = inFramesetIM
|
||||
return true
|
||||
case a.Base, a.Basefont, a.Bgsound, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title:
|
||||
- p.oe = append(p.oe, p.head)
|
||||
+ p.insertOpenElement(p.head)
|
||||
defer p.oe.remove(p.head)
|
||||
return inHeadIM(p)
|
||||
case a.Head:
|
||||
@@ -2324,9 +2331,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
-func (p *parser) parse() error {
|
||||
+func (p *parser) parse() (err error) {
|
||||
+ defer func() {
|
||||
+ if panicErr := recover(); panicErr != nil {
|
||||
+ err = fmt.Errorf("%s", panicErr)
|
||||
+ }
|
||||
+ }()
|
||||
// Iterate until EOF. Any other error will cause an early return.
|
||||
- var err error
|
||||
for err != io.EOF {
|
||||
// CDATA sections are allowed only in foreign content.
|
||||
n := p.oe.top()
|
||||
@@ -2355,6 +2366,8 @@
|
||||
// <tag>s. Conversely, explicit <tag>s in r's data can be silently dropped,
|
||||
// with no corresponding node in the resulting tree.
|
||||
//
|
||||
+// Parse will reject HTML that is nested deeper than 512 elements.
|
||||
+//
|
||||
// The input is assumed to be UTF-8 encoded.
|
||||
func Parse(r io.Reader) (*Node, error) {
|
||||
return ParseWithOptions(r)
|
||||
99
fix-CVE-2025-58190.patch
Normal file
99
fix-CVE-2025-58190.patch
Normal file
@@ -0,0 +1,99 @@
|
||||
diff -rubN vendor/golang.org/x/net/html/parse.go vendor-patched/golang.org/x/net/html/parse.go
|
||||
--- a/vendor/golang.org/x/net/html/parse.go 2025-06-06 12:16:37.000000000 +0200
|
||||
+++ b/vendor-patched/golang.org/x/net/html/parse.go 2025-10-09 10:12:41.984298856 +0200
|
||||
@@ -136,7 +136,7 @@
|
||||
return -1
|
||||
}
|
||||
default:
|
||||
- panic("unreachable")
|
||||
+ panic(fmt.Sprintf("html: internal error: indexOfElementInScope unknown scope: %d", s))
|
||||
}
|
||||
}
|
||||
switch s {
|
||||
@@ -179,7 +179,7 @@
|
||||
return
|
||||
}
|
||||
default:
|
||||
- panic("unreachable")
|
||||
+ panic(fmt.Sprintf("html: internal error: clearStackToContext unknown scope: %d", s))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1678,7 +1678,7 @@
|
||||
return inTableIM(p)
|
||||
}
|
||||
|
||||
-// Section 12.2.6.4.14.
|
||||
+// Section 13.2.6.4.14.
|
||||
func inRowIM(p *parser) bool {
|
||||
switch p.tok.Type {
|
||||
case StartTagToken:
|
||||
@@ -1690,7 +1690,9 @@
|
||||
p.im = inCellIM
|
||||
return true
|
||||
case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Tfoot, a.Thead, a.Tr:
|
||||
- if p.popUntil(tableScope, a.Tr) {
|
||||
+ if p.elementInScope(tableScope, a.Tr) {
|
||||
+ p.clearStackToContext(tableRowScope)
|
||||
+ p.oe.pop()
|
||||
p.im = inTableBodyIM
|
||||
return false
|
||||
}
|
||||
@@ -1700,22 +1702,28 @@
|
||||
case EndTagToken:
|
||||
switch p.tok.DataAtom {
|
||||
case a.Tr:
|
||||
- if p.popUntil(tableScope, a.Tr) {
|
||||
+ if p.elementInScope(tableScope, a.Tr) {
|
||||
+ p.clearStackToContext(tableRowScope)
|
||||
+ p.oe.pop()
|
||||
p.im = inTableBodyIM
|
||||
return true
|
||||
}
|
||||
// Ignore the token.
|
||||
return true
|
||||
case a.Table:
|
||||
- if p.popUntil(tableScope, a.Tr) {
|
||||
+ if p.elementInScope(tableScope, a.Tr) {
|
||||
+ p.clearStackToContext(tableRowScope)
|
||||
+ p.oe.pop()
|
||||
p.im = inTableBodyIM
|
||||
return false
|
||||
}
|
||||
// Ignore the token.
|
||||
return true
|
||||
case a.Tbody, a.Tfoot, a.Thead:
|
||||
- if p.elementInScope(tableScope, p.tok.DataAtom) {
|
||||
- p.parseImpliedToken(EndTagToken, a.Tr, a.Tr.String())
|
||||
+ if p.elementInScope(tableScope, p.tok.DataAtom) && p.elementInScope(tableScope, a.Tr) {
|
||||
+ p.clearStackToContext(tableRowScope)
|
||||
+ p.oe.pop()
|
||||
+ p.im = inTableBodyIM
|
||||
return false
|
||||
}
|
||||
// Ignore the token.
|
||||
@@ -2222,16 +2230,20 @@
|
||||
p.acknowledgeSelfClosingTag()
|
||||
}
|
||||
case EndTagToken:
|
||||
- for i := len(p.oe) - 1; i >= 0; i-- {
|
||||
- if p.oe[i].Namespace == "" {
|
||||
- return p.im(p)
|
||||
+ if strings.EqualFold(p.oe[len(p.oe)-1].Data, p.tok.Data) {
|
||||
+ p.oe = p.oe[:len(p.oe)-1]
|
||||
+ return true
|
||||
}
|
||||
+ for i := len(p.oe) - 1; i >= 0; i-- {
|
||||
if strings.EqualFold(p.oe[i].Data, p.tok.Data) {
|
||||
p.oe = p.oe[:i]
|
||||
+ return true
|
||||
+ }
|
||||
+ if i > 0 && p.oe[i-1].Namespace == "" {
|
||||
break
|
||||
}
|
||||
}
|
||||
- return true
|
||||
+ return p.im(p)
|
||||
default:
|
||||
// Ignore the token.
|
||||
}
|
||||
@@ -1,521 +0,0 @@
|
||||
From 15052b4dcce1efca4747153d91dcb24ecead880a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Kirill=20M=C3=BCller?= <kirill@cynkra.com>
|
||||
Date: Mon, 14 Jul 2025 14:28:35 +0000
|
||||
Subject: [PATCH] fix: Reenable `-p` and `--limit` switches (#778)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Reduced version of #776, without the new tests.
|
||||
|
||||
Fixes #771.
|
||||
|
||||
Reviewed-on: https://gitea.com/gitea/tea/pulls/778
|
||||
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
|
||||
Co-authored-by: Kirill Müller <kirill@cynkra.com>
|
||||
Co-committed-by: Kirill Müller <kirill@cynkra.com>
|
||||
---
|
||||
cmd/flags/generic.go | 8 ++--
|
||||
docs/CLI.md | 112 +++++++++++++++++++++----------------------
|
||||
2 files changed, 61 insertions(+), 59 deletions(-)
|
||||
|
||||
diff --git a/cmd/flags/generic.go b/cmd/flags/generic.go
|
||||
index d59209e..6f9d2c9 100644
|
||||
--- a/cmd/flags/generic.go
|
||||
+++ b/cmd/flags/generic.go
|
||||
@@ -36,17 +36,19 @@ var OutputFlag = cli.StringFlag{
|
||||
}
|
||||
|
||||
// PaginationPageFlag provides flag for pagination options
|
||||
-var PaginationPageFlag = cli.StringFlag{
|
||||
+var PaginationPageFlag = cli.IntFlag{
|
||||
Name: "page",
|
||||
Aliases: []string{"p"},
|
||||
- Usage: "specify page, default is 1",
|
||||
+ Usage: "specify page",
|
||||
+ Value: 1,
|
||||
}
|
||||
|
||||
// PaginationLimitFlag provides flag for pagination options
|
||||
-var PaginationLimitFlag = cli.StringFlag{
|
||||
+var PaginationLimitFlag = cli.IntFlag{
|
||||
Name: "limit",
|
||||
Aliases: []string{"lm"},
|
||||
Usage: "specify limit of items per page",
|
||||
+ Value: 30,
|
||||
}
|
||||
|
||||
// LoginOutputFlags defines login and output flags that should
|
||||
diff --git a/docs/CLI.md b/docs/CLI.md
|
||||
index f060373..ec137f8 100644
|
||||
--- a/docs/CLI.md
|
||||
+++ b/docs/CLI.md
|
||||
@@ -129,7 +129,7 @@ List, create and update issues
|
||||
|
||||
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -143,7 +143,7 @@ List, create and update issues
|
||||
|
||||
**--owner, --org**="":
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -175,7 +175,7 @@ List issues of the repository
|
||||
|
||||
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -189,7 +189,7 @@ List issues of the repository
|
||||
|
||||
**--owner, --org**="":
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -283,13 +283,13 @@ Manage and checkout pull requests
|
||||
index,state,author,author-id,url,title,body,mergeable,base,base-commit,head,diff,patch,created,updated,deadline,assignees,milestone,labels,comments
|
||||
(default: index,title,state,author,milestone,updated,labels)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -305,13 +305,13 @@ List pull requests of the repository
|
||||
index,state,author,author-id,url,title,body,mergeable,base,base-commit,head,diff,patch,created,updated,deadline,assignees,milestone,labels,comments
|
||||
(default: index,title,state,author,milestone,updated,labels)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -459,13 +459,13 @@ Merge a pull request
|
||||
|
||||
Manage issue labels
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -477,13 +477,13 @@ Manage issue labels
|
||||
|
||||
List labels
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -553,13 +553,13 @@ List and create milestones
|
||||
title,state,items_open,items_closed,items,duedate,description,created,updated,closed,id
|
||||
(default: title,items,duedate)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -575,13 +575,13 @@ List milestones of the repository
|
||||
title,state,items_open,items_closed,items,duedate,description,created,updated,closed,id
|
||||
(default: title,items,duedate)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -657,13 +657,13 @@ manage issue/pull of an milestone
|
||||
|
||||
**--kind**="": Filter by kind (issue|pull)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -711,13 +711,13 @@ Manage releases
|
||||
|
||||
List Releases
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -807,13 +807,13 @@ Manage release assets
|
||||
|
||||
List Release Attachments
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -933,13 +933,13 @@ List tracked times on issues & pulls
|
||||
|
||||
List, create, delete organizations
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -949,13 +949,13 @@ List, create, delete organizations
|
||||
|
||||
List Organizations
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -995,13 +995,13 @@ Show repository details
|
||||
description,forks,id,name,owner,stars,ssh,updated,url,permission,type
|
||||
(default: owner,name,type,ssh)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--starred, -s**: List your starred repos instead
|
||||
|
||||
@@ -1017,13 +1017,13 @@ List repositories you have access to
|
||||
description,forks,id,name,owner,stars,ssh,updated,url,permission,type
|
||||
(default: owner,name,type,ssh)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--starred, -s**: List your starred repos instead
|
||||
|
||||
@@ -1041,7 +1041,7 @@ Find any repo on an Gitea instance
|
||||
description,forks,id,name,owner,stars,ssh,updated,url,permission,type
|
||||
(default: owner,name,type,ssh)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1049,7 +1049,7 @@ Find any repo on an Gitea instance
|
||||
|
||||
**--owner, -O**="": Filter by owner
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--private**="": Filter private repos (true|false)
|
||||
|
||||
@@ -1201,13 +1201,13 @@ Consult branches
|
||||
name,protected,user-can-merge,user-can-push,protection
|
||||
(default: name,protected,user-can-merge,user-can-push)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1221,13 +1221,13 @@ List branches of the repository
|
||||
name,protected,user-can-merge,user-can-push,protection
|
||||
(default: name,protected,user-can-merge,user-can-push)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1241,13 +1241,13 @@ Protect branches
|
||||
name,protected,user-can-merge,user-can-push,protection
|
||||
(default: name,protected,user-can-merge,user-can-push)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1261,13 +1261,13 @@ Unprotect branches
|
||||
name,protected,user-can-merge,user-can-push,protection
|
||||
(default: name,protected,user-can-merge,user-can-push)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1303,7 +1303,7 @@ Show notifications
|
||||
id,status,updated,index,type,state,title,repository
|
||||
(default: id,status,index,type,state,title)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1311,7 +1311,7 @@ Show notifications
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1333,7 +1333,7 @@ List notifications
|
||||
id,status,updated,index,type,state,title,repository
|
||||
(default: id,status,index,type,state,title)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1341,7 +1341,7 @@ List notifications
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1359,7 +1359,7 @@ List notifications
|
||||
|
||||
Mark all filtered or a specific notification as read
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1367,7 +1367,7 @@ Mark all filtered or a specific notification as read
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1381,7 +1381,7 @@ Mark all filtered or a specific notification as read
|
||||
|
||||
Mark all filtered or a specific notification as unread
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1389,7 +1389,7 @@ Mark all filtered or a specific notification as unread
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1403,7 +1403,7 @@ Mark all filtered or a specific notification as unread
|
||||
|
||||
Mark all filtered or a specific notification as pinned
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1411,7 +1411,7 @@ Mark all filtered or a specific notification as pinned
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1425,7 +1425,7 @@ Mark all filtered or a specific notification as pinned
|
||||
|
||||
Unpin all pinned or a specific notification
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
@@ -1433,7 +1433,7 @@ Unpin all pinned or a specific notification
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1463,13 +1463,13 @@ Manage registered users
|
||||
id,login,full_name,email,avatar_url,language,is_admin,restricted,prohibit_login,location,website,description,visibility,activated,lastlogin_at,created_at
|
||||
(default: id,login,full_name,email,activated)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
@@ -1483,13 +1483,13 @@ List Users
|
||||
id,login,full_name,email,avatar_url,language,is_admin,restricted,prohibit_login,location,website,description,visibility,activated,lastlogin_at,created_at
|
||||
(default: id,login,full_name,email,activated)
|
||||
|
||||
-**--limit, --lm**="": specify limit of items per page
|
||||
+**--limit, --lm**="": specify limit of items per page (default: 30)
|
||||
|
||||
**--login, -l**="": Use a different Gitea Login. Optional
|
||||
|
||||
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
|
||||
|
||||
-**--page, -p**="": specify page, default is 1
|
||||
+**--page, -p**="": specify page (default: 1)
|
||||
|
||||
**--remote, -R**="": Discover Gitea login from remote. Optional
|
||||
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5cdd109407bccc235a69f067b83915ba105b2b5d432620799e34c9f6fd33b24c
|
||||
size 741485
|
||||
3
gitea-tea-0.11.1.tar.gz
Normal file
3
gitea-tea-0.11.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cb173e6ad5d06372196c90cc08f7039f5925ea6a0854a19d40e77b4d3977f107
|
||||
size 745960
|
||||
@@ -1,3 +1,104 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 8 12:34:56 UTC 2025 - olaf@aepfle.de
|
||||
|
||||
- CLI.md is supposed to be a text file
|
||||
- Use fixed git revision to refer to version 0.11.1
|
||||
- Remove bogus part from package description
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 18 06:04:09 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- update to 0.11.1:
|
||||
* 61d4e57 Fix Pr Create crash (#823)
|
||||
* 4f33146 add test for matching logins (#820)
|
||||
* 08b8398 Update README.md (#819)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 9 10:16:45 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
|
||||
|
||||
- add fix-CVE-2025-58190.patch, fixing bsc#1251663
|
||||
- add fix-CVE-2025-47911.patch, fixing bsc#1251471
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 19 20:33:30 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
|
||||
|
||||
- fix version to something simpler
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 19 12:41:16 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- update to 0.11.0:
|
||||
* Fix yaml output single quote (#814)
|
||||
* generate man page (#811)
|
||||
* feat: add validation for object-format flag in repo create
|
||||
command (#741)
|
||||
* Fix release version (#815)
|
||||
* update gitea sdk to v0.22 (#813)
|
||||
* don't fallback login directly (#806)
|
||||
* Check duplicated login name in interact mode when creating new
|
||||
login (#803)
|
||||
* Fix bug when output json with special chars (#801)
|
||||
* add debug mode and update readme (#805)
|
||||
* update go.mod to retract the wrong tag v1.3.3 (#802)
|
||||
* revert completion scripts removal (#808)
|
||||
* Remove pagination from context (#807)
|
||||
* Continue auth when failed to open browser (#794)
|
||||
* Fix bug (#793)
|
||||
* Fix tea login add with ssh public key bug (#789)
|
||||
* Add temporary authentication via environment variables (#639)
|
||||
* Fix attachment size (#787)
|
||||
* deploy image when tagging (#792)
|
||||
* Add Zip URL for release list (#788)
|
||||
* Use bubbletea instead of survey for interacting with TUI (#786)
|
||||
* capitalize a few items
|
||||
* rm out of date comparison file
|
||||
* README: Document logging in to gitea (#790)
|
||||
* remove autocomplete command (#782)
|
||||
* chore(deps): update ghcr.io/devcontainers/features/git-lfs
|
||||
docker tag to v1.2.5 (#773)
|
||||
* replace arch package url (#783)
|
||||
* fix: Reenable -p and --limit switches (#778)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 16:22:12 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
|
||||
|
||||
- Install up-to-date autocompletion files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 12 20:27:00 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to 0.10.1+git.1757695903.cc20b52:
|
||||
- feat: add validation for object-format flag in repo create
|
||||
command (see gh#openSUSE/openSUSE-git#60)
|
||||
- Fix release version
|
||||
- update gitea sdk to v0.22
|
||||
- don't fallback login directly
|
||||
- Check duplicated login name in interact mode when creating
|
||||
new login
|
||||
- Fix bug when output json with special chars
|
||||
- add debug mode and update readme
|
||||
- update go.mod to retract the wrong tag v1.3.3
|
||||
- revert completion scripts removal
|
||||
- Remove pagination from context
|
||||
- Continue auth when failed to open browser
|
||||
- Fix bug
|
||||
- Fix tea login add with ssh public key bug
|
||||
- Add temporary authentication via environment variables
|
||||
- Fix attachment size
|
||||
- deploy image when tagging
|
||||
- Add Zip URL for release list
|
||||
- Use bubbletea instead of survey for interacting with TUI
|
||||
- capitalize a few items
|
||||
- rm out of date comparison file
|
||||
- README: Document logging in to gitea
|
||||
- remove autocomplete command
|
||||
- chore(deps): update ghcr.io/devcontainers/features/git-lfs
|
||||
docker tag to v1.2.5
|
||||
- replace arch package url
|
||||
- fix: Reenable `-p` and `--limit` switches
|
||||
- Remove upstreamed patch:
|
||||
- fix-Reenable-p-and-limit-switches-778.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 23 17:44:40 UTC 2025 - Michal Suchanek <msuchanek@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gitea-tea
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,14 +17,15 @@
|
||||
|
||||
|
||||
Name: gitea-tea
|
||||
Version: 0.10.1
|
||||
Version: 0.11.1
|
||||
Release: 0
|
||||
Summary: A command line tool to interact with Gitea servers
|
||||
License: MIT
|
||||
URL: https://gitea.com/gitea/tea
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Patch0: fix-Reenable-p-and-limit-switches-778.patch
|
||||
Patch0: fix-CVE-2025-58190.patch
|
||||
Patch1: fix-CVE-2025-47911.patch
|
||||
BuildRequires: golang(API) >= 1.24
|
||||
Conflicts: tea
|
||||
|
||||
@@ -38,9 +39,6 @@ local main branch tracks the upstream repo. It also assumes that
|
||||
local git state is published on the remote before doing operations.
|
||||
Configuration lives in $XDG_CONFIG_HOME/tea.
|
||||
|
||||
The binary name has been renamed to "gitea", as "tea" has been
|
||||
already taken.
|
||||
|
||||
%package bash-completion
|
||||
Summary: Bash Completion for Gitea's tea CLI
|
||||
BuildRequires: bash-completion
|
||||
@@ -74,7 +72,8 @@ go build \
|
||||
-ldflags "-X main.Version=%{version}"
|
||||
|
||||
# building docs
|
||||
go build \
|
||||
go run \
|
||||
docs/docs.go \
|
||||
-o docs/CLI.md \
|
||||
-mod=vendor \
|
||||
-buildmode=pie \
|
||||
@@ -83,9 +82,11 @@ go build \
|
||||
%install
|
||||
install -v -m 0755 -D -t %{buildroot}%{_bindir} tea
|
||||
|
||||
./tea completion bash > contrib/autocomplete.sh
|
||||
install -v -m 0644 -D contrib/autocomplete.sh \
|
||||
%{buildroot}%{_datadir}/bash-completion/completions/tea
|
||||
|
||||
./tea completion zsh > contrib/autocomplete.zsh
|
||||
install -v -m 0644 -D contrib/autocomplete.zsh \
|
||||
%{buildroot}%{_datadir}/zsh/site-functions/_tea
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:83f150d9d32ddfd519a0bf665e9b1cfd7ae47f463a254311100830572640ac08
|
||||
size 6026360
|
||||
oid sha256:479325be2a78e9e1064f73f5db26482a0d5e6e1bb9c399008e37f604bad11fa9
|
||||
size 6061961
|
||||
|
||||
Reference in New Issue
Block a user