gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/gitee/hook_pullrequesthook_accessors.go (about) 1 package gitee 2 3 func (ph *PullRequestHook) GetNumber() int32 { 4 if ph == nil { 5 return 0 6 } 7 8 return ph.Number 9 } 10 11 func (ph *PullRequestHook) GetNeedTest() bool { 12 if ph == nil { 13 return false 14 } 15 16 return ph.NeedTest 17 } 18 19 func (ph *PullRequestHook) GetNeedReview() bool { 20 if ph == nil { 21 return false 22 } 23 24 return ph.NeedReview 25 } 26 27 func (ph *PullRequestHook) GetMergeable() bool { 28 if ph == nil { 29 return false 30 } 31 32 return ph.Mergeable 33 } 34 35 func (ph *PullRequestHook) GetUser() *UserHook { 36 if ph == nil { 37 return nil 38 } 39 40 return ph.User 41 } 42 43 func (ph *PullRequestHook) GetAssignee() *UserHook { 44 if ph == nil { 45 return nil 46 } 47 48 return ph.Assignee 49 } 50 51 func (ph *PullRequestHook) GetMilestone() *MilestoneHook { 52 if ph == nil { 53 return nil 54 } 55 56 return ph.Milestone 57 } 58 59 func (ph *PullRequestHook) GetHead() *BranchHook { 60 if ph == nil { 61 return nil 62 } 63 64 return ph.Head 65 } 66 67 func (ph *PullRequestHook) GetBase() *BranchHook { 68 if ph == nil { 69 return nil 70 } 71 72 return ph.Base 73 } 74 75 func (ph *PullRequestHook) GetUpdatedBy() *UserHook { 76 if ph == nil { 77 return nil 78 } 79 80 return ph.UpdatedBy 81 }