GitHub Issue Comment Event

GitHub issue_comment webhook payload with comment body, author association, and edit tracking.

Report an issue
github

Install

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

Dependencies

Source

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

export type GitHubIssueCommentAction = "created" | "deleted" | "edited";

export interface GitHubIssueComment {
  id: number;
  node_id: string;
  user: GitHubUser;
  created_at: string;
  updated_at: string;
  body: string | null;
  html_url: string;
  url: string;
  author_association: GitHubAuthorAssociation;
}

export interface GitHubIssueCommentChanges {
  body?: { from: string };
}

export interface GitHubIssueCommentEvent {
  action: GitHubIssueCommentAction;
  issue: GitHubIssue;
  comment: GitHubIssueComment;
  repository: GitHubRepository;
  sender: GitHubUser;
  organization?: GitHubOrganization;
  changes?: GitHubIssueCommentChanges;
}
import type {
  GitHubUser,
  GitHubRepository,
  GitHubOrganization,
  GitHubAuthorAssociation,
} from "./github-shared";
import type { GitHubIssue } from "./github-issues-event";

export type GitHubIssueCommentAction = "created" | "deleted" | "edited";

export interface GitHubIssueComment {
  id: number;
  node_id: string;
  user: GitHubUser;
  created_at: string;
  updated_at: string;
  body: string | null;
  html_url: string;
  url: string;
  author_association: GitHubAuthorAssociation;
}

export interface GitHubIssueCommentChanges {
  body?: { from: string };
}

export interface GitHubIssueCommentEvent {
  action: GitHubIssueCommentAction;
  issue: GitHubIssue;
  comment: GitHubIssueComment;
  repository: GitHubRepository;
  sender: GitHubUser;
  organization?: GitHubOrganization;
  changes?: GitHubIssueCommentChanges;
}