@oss-autopilot/core - v3.42.2
    Preparing search index...

    Interface ReviewedPRActivity

    Everything on a reviewed PR the scan reads, in the shapes the Octokit endpoints return (structural, so responses assign directly).

    interface ReviewedPRActivity {
        comments: (
            ReviewedPRActor & {
                body?: string
                | null;
                created_at: string;
                html_url?: string;
                id?: number;
            }
        )[];
        commits: {
            author?: { login?: string; type?: string | null }
            | null;
            commit: {
                author?: { date?: string | null } | null;
                committer?: { date?: string | null } | null;
                message?: string | null;
            };
            committer?: { login?: string; type?: string | null }
            | null;
            parents?: { sha?: string }[];
            sha: string;
        }[];
        pr: { author?: string; headSha: string; state: string; title?: string };
        reviewComments: (
            ReviewedPRActor & {
                body?: string
                | null;
                commit_id?: string | null;
                created_at: string;
                html_url?: string;
                id?: number;
                in_reply_to_id?: number;
                pull_request_review_id?: number | null;
            }
        )[];
        reviews: (
            ReviewedPRActor & {
                body?: string
                | null;
                commit_id?: string | null;
                html_url?: string;
                id?: number;
                state?: string | null;
                submitted_at?: string | null;
            }
        )[];
        truncatedLists?: ReviewedPRActivityList[];
    }
    Index
    comments: (
        ReviewedPRActor & {
            body?: string
            | null;
            created_at: string;
            html_url?: string;
            id?: number;
        }
    )[]
    commits: {
        author?: { login?: string; type?: string | null } | null;
        commit: {
            author?: { date?: string | null } | null;
            committer?: { date?: string | null } | null;
            message?: string | null;
        };
        committer?: { login?: string; type?: string | null }
        | null;
        parents?: { sha?: string }[];
        sha: string;
    }[]

    Oldest first, in branch order (GitHub's listCommits); the last entry is the head.

    Type Declaration

    • Optionalauthor?: { login?: string; type?: string | null } | null
    • commit: {
          author?: { date?: string | null } | null;
          committer?: { date?: string | null } | null;
          message?: string | null;
      }
    • Optionalcommitter?: { login?: string; type?: string | null } | null

      GitHub account that last rewrote the commit (web-flow for rebases done on github.com).

    • Optionalparents?: { sha?: string }[]

      More than one parent marks a merge commit ("Update branch"), which carries no new work.

    • sha: string
    pr: { author?: string; headSha: string; state: string; title?: string }

    Type Declaration

    • Optionalauthor?: string
    • headSha: string
    • state: string

      open for everything the search returned; anything else is skipped (closed between search and fetch).

    • Optionaltitle?: string
    reviewComments: (
        ReviewedPRActor & {
            body?: string
            | null;
            commit_id?: string | null;
            created_at: string;
            html_url?: string;
            id?: number;
            in_reply_to_id?: number;
            pull_request_review_id?: number | null;
        }
    )[]

    Type Declaration

    • Optionalbody?: string | null
    • Optionalcommit_id?: string | null
    • created_at: string
    • Optionalhtml_url?: string
    • Optionalid?: number
    • Optionalin_reply_to_id?: number
    • Optionalpull_request_review_id?: number | null

      The review the comment was submitted with; draft comments of the user's own PENDING review carry its id.

    reviews: (
        ReviewedPRActor & {
            body?: string
            | null;
            commit_id?: string | null;
            html_url?: string;
            id?: number;
            state?: string | null;
            submitted_at?: string | null;
        }
    )[]
    truncatedLists?: ReviewedPRActivityList[]

    Lists cut short by a pagination cap, as PRMonitor.fetchReviewedPRActivity reports them. The daily phase drops such PRs before the scan; the scan still reads it so a commits cut is never mistaken for a rebase.