38 lines
744 B
Go
38 lines
744 B
Go
package pr
|
|
|
|
type pr struct {
|
|
ID int16 `json:"id"`
|
|
URL string `json:"url"`
|
|
Number int16 `json:"number"`
|
|
Title string `json:"title"`
|
|
Base struct {
|
|
Ref string `json:"ref"`
|
|
}
|
|
Head struct {
|
|
Ref string `json:"ref"`
|
|
}
|
|
Created string `json:"created_at"`
|
|
User struct {
|
|
Username string `json:"username,omitempty"`
|
|
FullName string `json:"full_name,omitempty"`
|
|
}
|
|
}
|
|
|
|
type metadata struct {
|
|
Number string `json:"number"`
|
|
Title string `json:"title"`
|
|
Base string `json:"base"`
|
|
Head string `json:"head"`
|
|
CreatedAt string `json:"createdAt"`
|
|
CreatedBy string `json:"createdBy"`
|
|
}
|
|
|
|
type getStdout struct {
|
|
Version stdoutVersion
|
|
Metadata metadata
|
|
}
|
|
|
|
type stdoutVersion struct {
|
|
Ref string `json:"ref"`
|
|
}
|