From dd19eb1e9bdc7321422cf1d41f181d7d8d861a7f Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Tue, 14 Jul 2020 14:28:18 -0700 Subject: [PATCH] fix: set required previews by default for `octokit.repos.getCommunityProfileMetrics()` and `octokit.repos.topics()` --- src/generated/endpoints.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/generated/endpoints.ts b/src/generated/endpoints.ts index 9eb6bd1da..e51f0cc7a 100644 --- a/src/generated/endpoints.ts +++ b/src/generated/endpoints.ts @@ -956,7 +956,10 @@ const Endpoints: EndpointsDefaultsAndDecorations = { "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", { mediaType: { previews: ["zzzax"] } }, ], - getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"], + getCommunityProfileMetrics: [ + "GET /repos/{owner}/{repo}/community/profile", + { mediaType: { previews: ["black-panther"] } }, + ], getContent: ["GET /repos/{owner}/{repo}/contents/{path}"], getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"], getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"], @@ -1119,7 +1122,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = { issuesAndPullRequests: ["GET /search/issues"], labels: ["GET /search/labels"], repos: ["GET /search/repositories"], - topics: ["GET /search/topics"], + topics: ["GET /search/topics", { mediaType: { previews: ["mercy"] } }], users: ["GET /search/users"], }, teams: {