build: update distribution

This commit is contained in:
peter-evans 2020-09-17 01:38:44 +00:00 committed by GitHub
parent a1ecc20658
commit eb13e17e17

105
dist/index.js vendored
View file

@ -3483,7 +3483,7 @@ exports.withCustomRequest = withCustomRequest;
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const VERSION = "2.3.1"; const VERSION = "2.4.0";
/** /**
* Some list response that can be paginated have a different response structure * Some list response that can be paginated have a different response structure
@ -3705,11 +3705,7 @@ const Endpoints = {
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"] unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
}, },
apps: { apps: {
addRepoToInstallation: ["PUT /user/installations/{installation_id}/repositories/{repository_id}", { addRepoToInstallation: ["PUT /user/installations/{installation_id}/repositories/{repository_id}"],
mediaType: {
previews: ["machine-man"]
}
}],
checkToken: ["POST /applications/{client_id}/token"], checkToken: ["POST /applications/{client_id}/token"],
createContentAttachment: ["POST /content_references/{content_reference_id}/attachments", { createContentAttachment: ["POST /content_references/{content_reference_id}/attachments", {
mediaType: { mediaType: {
@ -3717,81 +3713,29 @@ const Endpoints = {
} }
}], }],
createFromManifest: ["POST /app-manifests/{code}/conversions"], createFromManifest: ["POST /app-manifests/{code}/conversions"],
createInstallationAccessToken: ["POST /app/installations/{installation_id}/access_tokens", { createInstallationAccessToken: ["POST /app/installations/{installation_id}/access_tokens"],
mediaType: {
previews: ["machine-man"]
}
}],
deleteAuthorization: ["DELETE /applications/{client_id}/grant"], deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
deleteInstallation: ["DELETE /app/installations/{installation_id}", { deleteInstallation: ["DELETE /app/installations/{installation_id}"],
mediaType: {
previews: ["machine-man"]
}
}],
deleteToken: ["DELETE /applications/{client_id}/token"], deleteToken: ["DELETE /applications/{client_id}/token"],
getAuthenticated: ["GET /app", { getAuthenticated: ["GET /app"],
mediaType: { getBySlug: ["GET /apps/{app_slug}"],
previews: ["machine-man"] getInstallation: ["GET /app/installations/{installation_id}"],
} getOrgInstallation: ["GET /orgs/{org}/installation"],
}], getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
getBySlug: ["GET /apps/{app_slug}", {
mediaType: {
previews: ["machine-man"]
}
}],
getInstallation: ["GET /app/installations/{installation_id}", {
mediaType: {
previews: ["machine-man"]
}
}],
getOrgInstallation: ["GET /orgs/{org}/installation", {
mediaType: {
previews: ["machine-man"]
}
}],
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation", {
mediaType: {
previews: ["machine-man"]
}
}],
getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"], getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"],
getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"], getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"],
getUserInstallation: ["GET /users/{username}/installation", { getUserInstallation: ["GET /users/{username}/installation"],
mediaType: {
previews: ["machine-man"]
}
}],
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"], listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"], listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],
listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories", { listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories"],
mediaType: { listInstallations: ["GET /app/installations"],
previews: ["machine-man"] listInstallationsForAuthenticatedUser: ["GET /user/installations"],
}
}],
listInstallations: ["GET /app/installations", {
mediaType: {
previews: ["machine-man"]
}
}],
listInstallationsForAuthenticatedUser: ["GET /user/installations", {
mediaType: {
previews: ["machine-man"]
}
}],
listPlans: ["GET /marketplace_listing/plans"], listPlans: ["GET /marketplace_listing/plans"],
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"], listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
listReposAccessibleToInstallation: ["GET /installation/repositories", { listReposAccessibleToInstallation: ["GET /installation/repositories"],
mediaType: {
previews: ["machine-man"]
}
}],
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"], listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"], listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"],
removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}", { removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],
mediaType: {
previews: ["machine-man"]
}
}],
resetToken: ["PATCH /applications/{client_id}/token"], resetToken: ["PATCH /applications/{client_id}/token"],
revokeInstallationAccessToken: ["DELETE /installation/token"], revokeInstallationAccessToken: ["DELETE /installation/token"],
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"], suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
@ -3863,8 +3807,15 @@ const Endpoints = {
}] }]
}, },
codeScanning: { codeScanning: {
getAlert: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}"], getAlert: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", {}, {
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"] renamedParameters: {
alert_id: "alert_number"
}
}],
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
updateAlert: ["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
}, },
codesOfConduct: { codesOfConduct: {
getAllCodesOfConduct: ["GET /codes_of_conduct", { getAllCodesOfConduct: ["GET /codes_of_conduct", {
@ -4106,11 +4057,7 @@ const Endpoints = {
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
list: ["GET /organizations"], list: ["GET /organizations"],
listAppInstallations: ["GET /orgs/{org}/installations", { listAppInstallations: ["GET /orgs/{org}/installations"],
mediaType: {
previews: ["machine-man"]
}
}],
listBlockedUsers: ["GET /orgs/{org}/blocks"], listBlockedUsers: ["GET /orgs/{org}/blocks"],
listForAuthenticatedUser: ["GET /user/orgs"], listForAuthenticatedUser: ["GET /user/orgs"],
listForUser: ["GET /users/{username}/orgs"], listForUser: ["GET /users/{username}/orgs"],
@ -4723,7 +4670,7 @@ const Endpoints = {
} }
}; };
const VERSION = "4.1.3"; const VERSION = "4.2.0";
function endpointsToMethods(octokit, endpointsMap) { function endpointsToMethods(octokit, endpointsMap) {
const newMethods = {}; const newMethods = {};