Automate GitHub with TypeScript
Manage repositories, files, issues, pull requests, Actions workflows, releases, deployments, and commit statuses. Trigger work from repository and ref changes, issue relationships, reviews, merge groups, checks, workflows, deployments, releases, and statuses.
import { automation } from "automate.ax"
import { github } from "automate.ax/github"
export default automation("Open workflow failure issue", () => {
const run = github.onWorkflowRunFailed()
github.createIssue({
owner: run.repository.owner.login,
repository: run.repository.name,
title: "GitHub Actions workflow failed",
body: run.workflow_run.html_url,
labels: ["bug"],
})
})What you can do
Actions
- Dispatch Actions workflows and repository events
- Manage repositories, branches, files, releases, and deployments
- Create, update, review, and merge issues and pull requests
- Inspect runs and jobs, rerun failures, and publish commit statuses
Triggers
- Ref, push, release, and repository dispatch activity
- Issue, comment, pull request, and review changes
- Check, workflow run, and workflow job lifecycle outcomes
- Deployment and commit status changes