mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
[API] Add Ref to Issue (#13946)
* Add Ref to api.Issue This PR adds Ref to api.Issue and adds the backend parts to the migrator. Fix #13918 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
cf6f8b22ca
commit
825efa2605
5 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,7 @@ func ToAPIIssue(issue *models.Issue) *api.Issue {
|
|||
Poster: ToUser(issue.Poster, false, false),
|
||||
Title: issue.Title,
|
||||
Body: issue.Content,
|
||||
Ref: issue.Ref,
|
||||
Labels: ToLabelList(issue.Labels),
|
||||
State: issue.State(),
|
||||
IsLocked: issue.IsLocked,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue