Browse Source

add alias to api struct

tags/v1.22.1.3
chenyifan01 3 years ago
parent
commit
3fb2ed884b
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      models/repo.go
  2. +1
    -0
      modules/structs/repo.go

+ 1
- 0
models/repo.go View File

@@ -401,6 +401,7 @@ func (repo *Repository) innerAPIFormat(e Engine, mode AccessMode, isParent bool)
ID: repo.ID,
Owner: repo.Owner.APIFormat(),
Name: repo.Name,
Alias: repo.Alias,
FullName: repo.FullName(),
FullDisplayName: repo.FullDisplayName(),
Description: repo.Description,


+ 1
- 0
modules/structs/repo.go View File

@@ -49,6 +49,7 @@ type Repository struct {
ID int64 `json:"id"`
Owner *User `json:"owner"`
Name string `json:"name"`
Alias string `json:"alias"`
FullName string `json:"full_name"`
FullDisplayName string `json:"full_display_name"`
Description string `json:"description"`


Loading…
Cancel
Save