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

name: first-interaction
on:
issues:
types: [opened]
pull_request:
branches: [main]
types: [opened]
jobs:
check_for_first_interaction:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/first-interaction@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
pr-message: |
Hello! Thank you for your contribution.
If you are fixing a bug, please reference the issue number in the description.
If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.