diff --git a/package.json b/package.json index 87d7f4e..1244378 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@chakra-ui/theme-tools": "^2.0.18", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", - "@octokit/app": "14", + "@octokit/app": "^14.0.0", "@octokit/types": "^11.1.0", "@octokit/webhooks": "^12.0.3", "@octokit/webhooks-methods": "^4.0.0", diff --git a/pages/api/program/push.ts b/pages/api/program/push.ts index f054960..cf9f290 100644 --- a/pages/api/program/push.ts +++ b/pages/api/program/push.ts @@ -32,14 +32,8 @@ const repo_name = "test-bschocolatine"; // This adds an event handler that your code will call later. When this event handler is called, it will log the event to the console. Then, it will use GitHub's REST API to add a comment to the pull request that triggered the event. async function handlePush({octokit, payload}) { - console.log(`Received a push event for #${payload.push.number}`); - try { - // await octokit.request(`POST /repos/${owner_repo}/${repo_name}/hooks/${appId}/tests`, { - // owner: owner_repo, - // repo: repo_name, - // hook_id: appId - // }) + console.log("Received a push event") } catch (error) { if (error.response) { console.error(`Error! Status: ${error.response.status}. Message: ${error.response.data.message}`)