Initial commit
This commit is contained in:
37
pr/types.go
Normal file
37
pr/types.go
Normal file
@@ -0,0 +1,37 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user