Improve PullReview docs (#469)
document some PullReview fields code review Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/469 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
parent
e34d140607
commit
97e61e5a8a
1 changed files with 11 additions and 9 deletions
|
@ -38,7 +38,9 @@ type PullReview struct {
|
||||||
State ReviewStateType `json:"state"`
|
State ReviewStateType `json:"state"`
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
CommitID string `json:"commit_id"`
|
CommitID string `json:"commit_id"`
|
||||||
|
// Stale indicates if the pull has changed since the review
|
||||||
Stale bool `json:"stale"`
|
Stale bool `json:"stale"`
|
||||||
|
// Official indicates if the review counts towards the required approval limit, if PR base is a protected branch
|
||||||
Official bool `json:"official"`
|
Official bool `json:"official"`
|
||||||
CodeCommentsCount int `json:"comments_count"`
|
CodeCommentsCount int `json:"comments_count"`
|
||||||
Submitted time.Time `json:"submitted_at"`
|
Submitted time.Time `json:"submitted_at"`
|
||||||
|
|
Loading…
Reference in a new issue