Function isSchemaRestPullRequestActivityOpened
- isSchemaRestPullRequestActivityOpened(activity?): activity is SchemaRestPullRequestActivityOpened
Parameters
Optional
activity: {
action?:
| "DECLINED"
| "MERGED"
| "APPROVED"
| "UNAPPROVED"
| "AUTO_MERGE_CANCELLED"
| "AUTO_MERGE_REQUESTED"
| "COMMENTED"
| "DELETED"
| "OPENED"
| "REOPENED"
| "RESCOPED"
| "REVIEW_COMMENTED"
| "REVIEW_DISCARDED"
| "REVIEW_FINISHED"
| "REVIEWED"
| "UPDATED";
createdDate?: number;
id?: number;
user?: {
active?: boolean;
avatarUrl?: string;
displayName?: string;
emailAddress?: string;
id?: number;
links?: Record<string, unknown>;
name?: string;
slug?: string;
type?: "NORMAL" | "SERVICE";
};
} | SchemaRestPullRequestActivity