Integration

APIs

curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/user/repo/dispatches \
-d '{ "event_type": "setup" }'

Program management

Or, with JavaScript (@octokit/core.js):

await octokit.request("POST /repos/{owner}/{repo}/dispatches", {
owner: "user",
repo: "repo",
event_type: "setup",
});

For more information, read this article on the GitHub website: Create a repository dispatch event.