diff --git a/github/issues.go b/github/issues.go index 47537544a42..1e0991ce4ff 100644 --- a/github/issues.go +++ b/github/issues.go @@ -228,7 +228,7 @@ func (s *IssuesService) ListByRepo(ctx context.Context, owner string, repo strin } // TODO: remove custom Accept headers when APIs fully launch. - acceptHeaders := []string{mediaTypeReactionsPreview, mediaTypeLabelDescriptionSearchPreview, mediaTypeLockReasonPreview} + acceptHeaders := []string{mediaTypeReactionsPreview, mediaTypeLabelDescriptionSearchPreview, mediaTypeIntegrationPreview} req.Header.Set("Accept", strings.Join(acceptHeaders, ", ")) var issues []*Issue diff --git a/github/issues_test.go b/github/issues_test.go index d6fe9f3f919..22190a028b1 100644 --- a/github/issues_test.go +++ b/github/issues_test.go @@ -109,7 +109,7 @@ func TestIssuesService_ListByRepo(t *testing.T) { client, mux, _, teardown := setup() defer teardown() - acceptHeaders := []string{mediaTypeReactionsPreview, mediaTypeLabelDescriptionSearchPreview, mediaTypeLockReasonPreview} + acceptHeaders := []string{mediaTypeReactionsPreview, mediaTypeLabelDescriptionSearchPreview, mediaTypeIntegrationPreview} mux.HandleFunc("/repos/o/r/issues", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") testHeader(t, r, "Accept", strings.Join(acceptHeaders, ", "))