Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/deps/octokit-types.ts>PushEvent

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
interface PushEvent
import { type PushEvent } from "https://deno.land/x/actionify@0.3.0/src/deps/octokit-types.ts";

Properties

ref: string

The full git ref that was pushed. Example: refs/heads/main or refs/tags/v3.14.1.

before: string

The SHA of the most recent commit on ref before the push.

after: string

The SHA of the most recent commit on ref after the push.

created: boolean

Whether this push created the ref.

deleted: boolean

Whether this push deleted the ref.

forced: boolean

Whether this push was a force push of the ref.

base_ref: string | null
compare: string

URL that shows the changes in this ref update, from the before commit to the after commit. For a newly created ref that is directly based on the default branch, this is the comparison between the head of the default branch and the after commit. Otherwise, this shows all commits until the after commit.

commits: Commit[]

An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare between the before commit and the after commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.

head_commit: Commit | null

For pushes where after is or points to a commit object, an expanded representation of that commit. For pushes where after refers to an annotated tag object, an expanded representation of the commit pointed to by the annotated tag.

repository: Repository
pusher: Committer
sender: User
optional
installation: InstallationLite
optional
organization: Organization