Skip to content

Commit

Permalink
build: correct defaults and types for `octokit.repos.uploadReleaseAss…
Browse files Browse the repository at this point in the history
…et()`
  • Loading branch information
gr2m committed Jan 31, 2020
1 parent d3bd732 commit 6eb4063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/generated/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,8 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
],
uploadReleaseAsset: [
"POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}"
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
{ baseUrl: "https://uploads.github.com" }
]
},
search: {
Expand Down
8 changes: 4 additions & 4 deletions src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30194,10 +30194,7 @@ export type ReposUploadReleaseAssetParams = {
* An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter.
*/
label?: string;
/**
* The file name of the asset. This should be set in a URI query parameter.
*/
name: string;
name?: string;
owner: string;
release_id: number;
repo: string;
Expand Down Expand Up @@ -32170,6 +32167,9 @@ export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissa
*/
users?: string[];
};
export type ReposUploadReleaseAssetParamsHeaders = {
"content-type": string;
};

export type RestEndpointMethods = {
actions: {
Expand Down

0 comments on commit 6eb4063

Please sign in to comment.