Skip to content

// Octokit.js // https://github.com/octokit/core.js#readme const octokit = new Octokit({ auth: 'YOUR-TOKEN' }) await octokit.request('PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config', { owner: 'OWNER', repo: 'REPO', hook_id: 'HOOK_ID', content_type: 'json', url: 'https://example.com/webhook', headers: { 'X-GitHub-Api-Version': '2022-11-28' } }) #59

// Octokit.js // https://github.com/octokit/core.js#readme const octokit = new Octokit({ auth: 'YOUR-TOKEN' }) await octokit.request('PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config', { owner: 'OWNER', repo: 'REPO', hook_id: 'HOOK_ID', content_type: 'json', url: 'https://example.com/webhook', headers: { 'X-GitHub-Api-Version': '2022-11-28' } })

// Octokit.js // https://github.com/octokit/core.js#readme const octokit = new Octokit({ auth: 'YOUR-TOKEN' }) await octokit.request('PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config', { owner: 'OWNER', repo: 'REPO', hook_id: 'HOOK_ID', content_type: 'json', url: 'https://example.com/webhook', headers: { 'X-GitHub-Api-Version': '2022-11-28' } }) #59

Triggered via issue May 10, 2024 05:39
Status Success
Total duration 27s
Artifacts
check_for_first_interaction
20s
check_for_first_interaction
Fit to window
Zoom out
Zoom in

Annotations

1 warning
check_for_first_interaction
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.