diff --git a/github/checks.go b/github/checks.go index 0c88cbb58aa..84f8403401f 100644 --- a/github/checks.go +++ b/github/checks.go @@ -51,7 +51,6 @@ type CheckRunOutput struct { // CheckRunAnnotation represents an annotation object for a CheckRun output. type CheckRunAnnotation struct { Path *string `json:"path,omitempty"` - BlobHRef *string `json:"blob_href,omitempty"` StartLine *int `json:"start_line,omitempty"` EndLine *int `json:"end_line,omitempty"` StartColumn *int `json:"start_column,omitempty"` diff --git a/github/checks_test.go b/github/checks_test.go index 13f5a2ac9c7..848c7e7d389 100644 --- a/github/checks_test.go +++ b/github/checks_test.go @@ -148,7 +148,6 @@ func TestChecksService_ListCheckRunAnnotations(t *testing.T) { }) fmt.Fprint(w, `[{ "path": "README.md", - "blob_href": "https://github.com/octocat/Hello-World/blob/837db83be4137ca555d9a5598d0a1ea2987ecfee/README.md", "start_line": 2, "end_line": 2, "start_column": 1, @@ -167,7 +166,6 @@ func TestChecksService_ListCheckRunAnnotations(t *testing.T) { want := []*CheckRunAnnotation{{ Path: String("README.md"), - BlobHRef: String("https://github.com/octocat/Hello-World/blob/837db83be4137ca555d9a5598d0a1ea2987ecfee/README.md"), StartLine: Int(2), EndLine: Int(2), StartColumn: Int(1), @@ -506,7 +504,6 @@ func Test_CheckRunMarshal(t *testing.T) { Annotations: []*CheckRunAnnotation{ { AnnotationLevel: String("a"), - BlobHRef: String("b"), EndLine: Int(1), Message: String("m"), Path: String("p"), @@ -598,7 +595,6 @@ func Test_CheckRunMarshal(t *testing.T) { "annotations": [ { "path": "p", - "blob_href": "b", "start_line": 1, "end_line": 1, "annotation_level": "a", diff --git a/github/github-accessors.go b/github/github-accessors.go index 4873d98472f..96b12bb1fef 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -636,14 +636,6 @@ func (c *CheckRunAnnotation) GetAnnotationLevel() string { return *c.AnnotationLevel } -// GetBlobHRef returns the BlobHRef field if it's non-nil, zero value otherwise. -func (c *CheckRunAnnotation) GetBlobHRef() string { - if c == nil || c.BlobHRef == nil { - return "" - } - 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 {