GitHub
githubEvents exports the readonly native event/action list for the installed package. GitHub deliveries must be JSON. Common issue/pull-request fields (title, body, state, author and refs) have curated optional types; other fields remain unknown. These types do not perform runtime business validation. Provider coverage lists the corresponding package version and format.
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.
