GitHub Ping Event

GitHub ping webhook payload with zen message and hook configuration.

Report an issue
github

Install

$ npx shadcn@latest add @open-types/github-ping-event

Dependencies

Source

import type {
  GitHubUser,
  GitHubRepository,
  GitHubOrganization,
} from "./github-shared";

export interface GitHubHookConfig {
  content_type?: string;
  insecure_ssl?: string;
  url?: string;
}

export interface GitHubHook {
  type: string;
  id: number;
  name: string;
  active: boolean;
  events: string[];
  config: GitHubHookConfig;
  created_at: string;
  updated_at: string;
}

export interface GitHubPingEvent {
  zen: string;
  hook_id: number;
  hook: GitHubHook;
  repository?: GitHubRepository;
  sender: GitHubUser;
  organization?: GitHubOrganization;
}
import type {
  GitHubUser,
  GitHubRepository,
  GitHubOrganization,
} from "./github-shared";

export interface GitHubHookConfig {
  content_type?: string;
  insecure_ssl?: string;
  url?: string;
}

export interface GitHubHook {
  type: string;
  id: number;
  name: string;
  active: boolean;
  events: string[];
  config: GitHubHookConfig;
  created_at: string;
  updated_at: string;
}

export interface GitHubPingEvent {
  zen: string;
  hook_id: number;
  hook: GitHubHook;
  repository?: GitHubRepository;
  sender: GitHubUser;
  organization?: GitHubOrganization;
}