File tree 3 files changed +13
-5
lines changed
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ func issueSearchHandler(c *fiber.Ctx) error {
36
36
37
37
searchResponse := struct {
38
38
Results []struct {
39
- Id int `json:"id"`
40
- Type string `json:"type"`
41
- Title string `json:"title"`
39
+ Id int `json:"id"`
40
+ Type string `json:"type"`
41
+ Title string `json:"title"`
42
+ Project Project `json:"project"`
42
43
} `json:"results"`
43
44
}{}
44
45
@@ -73,6 +74,7 @@ func issueSearchHandler(c *fiber.Ctx) error {
73
74
issue := Issue {
74
75
Id : issue .Id ,
75
76
Subject : issuesResponse .Issues [0 ].Subject ,
77
+ Project : issuesResponse .Issues [0 ].Project ,
76
78
}
77
79
foundIssues = append (foundIssues , issue )
78
80
}
Original file line number Diff line number Diff line change @@ -4,9 +4,14 @@ type user struct {
4
4
Login string `json:"login"`
5
5
}
6
6
7
+ type Project struct {
8
+ Id int `json:"id"`
9
+ }
10
+
7
11
type Issue struct {
8
- Id int `json:"id"`
9
- Subject string `json:"subject"`
12
+ Id int `json:"id"`
13
+ Subject string `json:"subject"`
14
+ Project Project `json:"project"`
10
15
}
11
16
12
17
type IssueWithTitle struct {
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export const QuickAdd = ({
126
126
messages : "0" ,
127
127
// projects: "0" produces weird results.
128
128
open_issues : "1" ,
129
+ projects : "1" ,
129
130
} ;
130
131
131
132
const foundIssues : { issues : Issue [ ] } = await fetch (
You can’t perform that action at this time.
0 commit comments