mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 11:27:06 +02:00
update FullName method to show group id if it's non-zero
This commit is contained in:
@@ -144,7 +144,7 @@ func repoAssignment() func(ctx *context.APIContext) {
|
||||
if group != "" {
|
||||
gid, _ = strconv.ParseInt(group, 10, 64)
|
||||
if gid == 0 {
|
||||
ctx.Redirect(strings.Replace(ctx.Req.URL.RequestURI(), "/0/", "/", 1))
|
||||
ctx.Redirect(strings.Replace(ctx.Req.URL.RequestURI(), "/0/", "/", 1), 307)
|
||||
return
|
||||
}
|
||||
group += "/"
|
||||
|
||||
@@ -1778,7 +1778,7 @@ func buildSignature(endp string, expires, artifactID int64) []byte {
|
||||
}
|
||||
|
||||
func buildDownloadRawEndpoint(repo *repo_model.Repository, artifactID int64) string {
|
||||
return fmt.Sprintf("api/v1/repos/%s/%s/actions/artifacts/%d/zip/raw", url.PathEscape(repo.OwnerName), url.PathEscape(repo.Name), artifactID)
|
||||
return fmt.Sprintf("api/v1/repos/%s/%d/%s/actions/artifacts/%d/zip/raw", url.PathEscape(repo.OwnerName), repo.GroupID, url.PathEscape(repo.Name), artifactID)
|
||||
}
|
||||
|
||||
func buildSigURL(ctx go_context.Context, endPoint string, artifactID int64) string {
|
||||
|
||||
Reference in New Issue
Block a user