GitHub
ts
import { Hibiki } from "@hibiki-js/core"
import { github } from "@hibiki-js/github"
const app = new Hibiki().use(github({
secret: process.env.GITHUB_WEBHOOK_SECRET!,
}))Only application/json payloads are accepted. Other GitHub events return 200 by default (or 400 with strictEvents: true).
Supported events
pushpingcreatedeletepull_request.openedpull_request.closedpull_request.reopenedpull_request.synchronizepull_request.ready_for_reviewpull_request.labeledpull_request_review.submittedissues.openedissues.closedissues.reopenedissue_comment.createdrelease.publishedworkflow_run.completedworkflow_job.completedcheck_suite.completedcheck_run.completeddeployment.createddeployment_status.created
Handlers use the github. prefix:
ts
app.on("github.pull_request.opened", async ({ event }) => {
console.log(event.pull_request.number, event.repository.full_name)
})See the API reference for options and exported types.
