* 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>
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,
PosterEmail string
Title string
Content string
+ Ref string
Milestone string
State string // closed, open
IsLocked bool
Index: issue.Number,
Title: issue.Title,
Content: issue.Content,
+ Ref: issue.Ref,
IsClosed: issue.State == "closed",
IsLocked: issue.IsLocked,
MilestoneID: milestoneID,
OriginalAuthorID int64 `json:"original_author_id"`
Title string `json:"title"`
Body string `json:"body"`
+ Ref string `json:"ref"`
Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"`
"pull_request": {
"$ref": "#/definitions/PullRequestMeta"
},
+ "ref": {
+ "type": "string",
+ "x-go-name": "Ref"
+ },
"repository": {
"$ref": "#/definitions/RepositoryMeta"
},