From 27e67d5341222bcae1bd0c951feee6c9f1ed345e Mon Sep 17 00:00:00 2001 From: Andrew Gillis Date: Fri, 25 Oct 2024 09:55:50 -0400 Subject: [PATCH] Update accessors to match new ID type --- github/github-accessors.go | 2 +- github/github-accessors_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index f7a2518440..3a56ecd4dc 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -1087,7 +1087,7 @@ func (a *Attestation) GetBundle() json.RawMessage { } // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. -func (a *Attestation) GetRepositoryID() int { +func (a *Attestation) GetRepositoryID() int64 { if a == nil || a.RepositoryID == nil { return 0 } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 64bc2a9541..088355714b 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -1413,7 +1413,7 @@ func TestAttestation_GetBundle(tt *testing.T) { func TestAttestation_GetRepositoryID(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 a := &Attestation{RepositoryID: &zeroValue} a.GetRepositoryID() a = &Attestation{}