show github pr number in branches list

This commit is contained in:
mjarkk 2021-07-28 22:01:35 +02:00
parent de5133ff90
commit c295deaa81
23 changed files with 360 additions and 101 deletions

View file

@ -0,0 +1,15 @@
package models
type GithubPullRequest struct {
HeadRefName string `json:"headRefName"`
Number int `json:"number"`
State string `json:"state"` // "MERGED", "OPEN", "CLOSED"
Url string `json:"url"`
HeadRepositoryOwner GithubRepositoryOwner `json:"headRepositoryOwner"`
}
type GithubRepositoryOwner struct {
ID string `json:"id"`
Name string `json:"name"`
Login string `json:"login"`
}