22 lines · 502 B
/** Why a user shows up on an issue or pull request in their cross-repo lists. */
export type InvolvementRole = "author" | "assignee" | "reviewer";

export type InvolvementEntry = {
  issueId: string;
  repoId: string;
  number: number;
  isPull: boolean;
  state: string;
  title: string;
  updatedAt: number;
  roles?: InvolvementRole[];
};

export type InvolvementQuery = {
  roles?: InvolvementRole[];
  state?: "open" | "closed";
  kind?: "issue" | "pull";
  limit?: number;
  offset?: number;
};