Skip to content

Commit

Permalink
fix: set required previews by default for `octokit.repos.getCommunity…
Browse files Browse the repository at this point in the history
…ProfileMetrics()` and `octokit.repos.topics()`
  • Loading branch information
gr2m committed Jul 15, 2020
1 parent c579c26 commit dd19eb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"],
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit dd19eb1

Please sign in to comment.