mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-01 23:18:43 +00:00
Play around with github app credentials
This commit is contained in:
committed by
Roberto Hidalgo
parent
25cd66daa5
commit
199cdfe192
2
vendor/github.com/google/go-github/v28/github/checks.go
generated
vendored
2
vendor/github.com/google/go-github/v28/github/checks.go
generated
vendored
@@ -54,6 +54,8 @@ type CheckRunAnnotation struct {
|
||||
BlobHRef *string `json:"blob_href,omitempty"`
|
||||
StartLine *int `json:"start_line,omitempty"`
|
||||
EndLine *int `json:"end_line,omitempty"`
|
||||
StartColumn *int `json:"start_column,omitempty"`
|
||||
EndColumn *int `json:"end_column,omitempty"`
|
||||
AnnotationLevel *string `json:"annotation_level,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
|
||||
2
vendor/github.com/google/go-github/v28/github/git_refs.go
generated
vendored
2
vendor/github.com/google/go-github/v28/github/git_refs.go
generated
vendored
@@ -69,7 +69,7 @@ func (s *GitService) GetRef(ctx context.Context, owner string, repo string, ref
|
||||
if _, ok := err.(*json.UnmarshalTypeError); ok {
|
||||
// Multiple refs, means there wasn't an exact match.
|
||||
return nil, resp, errors.New("multiple matches found for this ref")
|
||||
} else if resp.StatusCode == 404 {
|
||||
} else if _, ok := err.(*ErrorResponse); ok && resp.StatusCode == 404 {
|
||||
// No ref, there was no match for the ref
|
||||
return nil, resp, errors.New("no match found for this ref")
|
||||
} else if err != nil {
|
||||
|
||||
32
vendor/github.com/google/go-github/v28/github/github-accessors.go
generated
vendored
32
vendor/github.com/google/go-github/v28/github/github-accessors.go
generated
vendored
@@ -644,6 +644,14 @@ func (c *CheckRunAnnotation) GetBlobHRef() string {
|
||||
return *c.BlobHRef
|
||||
}
|
||||
|
||||
// GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise.
|
||||
func (c *CheckRunAnnotation) GetEndColumn() int {
|
||||
if c == nil || c.EndColumn == nil {
|
||||
return 0
|
||||
}
|
||||
return *c.EndColumn
|
||||
}
|
||||
|
||||
// GetEndLine returns the EndLine field if it's non-nil, zero value otherwise.
|
||||
func (c *CheckRunAnnotation) GetEndLine() int {
|
||||
if c == nil || c.EndLine == nil {
|
||||
@@ -676,6 +684,14 @@ func (c *CheckRunAnnotation) GetRawDetails() string {
|
||||
return *c.RawDetails
|
||||
}
|
||||
|
||||
// GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise.
|
||||
func (c *CheckRunAnnotation) GetStartColumn() int {
|
||||
if c == nil || c.StartColumn == nil {
|
||||
return 0
|
||||
}
|
||||
return *c.StartColumn
|
||||
}
|
||||
|
||||
// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise.
|
||||
func (c *CheckRunAnnotation) GetStartLine() int {
|
||||
if c == nil || c.StartLine == nil {
|
||||
@@ -7644,6 +7660,14 @@ func (p *PullRequest) GetLinks() *PRLinks {
|
||||
return p.Links
|
||||
}
|
||||
|
||||
// GetLocked returns the Locked field if it's non-nil, zero value otherwise.
|
||||
func (p *PullRequest) GetLocked() bool {
|
||||
if p == nil || p.Locked == nil {
|
||||
return false
|
||||
}
|
||||
return *p.Locked
|
||||
}
|
||||
|
||||
// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.
|
||||
func (p *PullRequest) GetMaintainerCanModify() bool {
|
||||
if p == nil || p.MaintainerCanModify == nil {
|
||||
@@ -7732,6 +7756,14 @@ func (p *PullRequest) GetPatchURL() string {
|
||||
return *p.PatchURL
|
||||
}
|
||||
|
||||
// GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise.
|
||||
func (p *PullRequest) GetRebaseable() bool {
|
||||
if p == nil || p.Rebaseable == nil {
|
||||
return false
|
||||
}
|
||||
return *p.Rebaseable
|
||||
}
|
||||
|
||||
// GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise.
|
||||
func (p *PullRequest) GetReviewComments() int {
|
||||
if p == nil || p.ReviewComments == nil {
|
||||
|
||||
2
vendor/github.com/google/go-github/v28/github/pulls.go
generated
vendored
2
vendor/github.com/google/go-github/v28/github/pulls.go
generated
vendored
@@ -24,6 +24,7 @@ type PullRequest struct {
|
||||
ID *int64 `json:"id,omitempty"`
|
||||
Number *int `json:"number,omitempty"`
|
||||
State *string `json:"state,omitempty"`
|
||||
Locked *bool `json:"locked,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Body *string `json:"body,omitempty"`
|
||||
CreatedAt *time.Time `json:"created_at,omitempty"`
|
||||
@@ -38,6 +39,7 @@ type PullRequest struct {
|
||||
MergeableState *string `json:"mergeable_state,omitempty"`
|
||||
MergedBy *User `json:"merged_by,omitempty"`
|
||||
MergeCommitSHA *string `json:"merge_commit_sha,omitempty"`
|
||||
Rebaseable *bool `json:"rebaseable,omitempty"`
|
||||
Comments *int `json:"comments,omitempty"`
|
||||
Commits *int `json:"commits,omitempty"`
|
||||
Additions *int `json:"additions,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user