Function listPullRequestCreators

List pull request creators Querying the pull request creators list in a given repository.

This API provides multiple ways to sort the query results, for example:

  • sort=prs-desc (Default): Sorted in descending order based on prs field (the number of PRs they have contributed), meaning that the contributor with the most PRs is at the top.
  • sort=first_pr_merged_at-desc: Sorted in descending order based on first_pr_merged_at field (the time of their first merged PR), which means you can got a list of new code contributors of the repository.
  • Type Parameters

    • ThrowOnError extends boolean = false

    Returns RequestResult<
        {
            data: {
                columns: {
                    col: string;
                    data_type: | "CHAR"
                    | "BIGINT"
                    | "DECIMAL"
                    | "INT"
                    | "UNSIGNED BIGINT"
                    | "TINYINT"
                    | "TIMESTAMP"
                    | "TEXT"
                    | "VARCHAR"
                    | "DATETIME"
                    | "DOUBLE"
                    | "FLOAT"
                    | "DATE"
                    | "TIME"
                    | "YEAR"
                    | "MEDIUMINT"
                    | "SMALLINT"
                    | "BIT"
                    | "BINARY"
                    | "VARBINARY"
                    | "JSON"
                    | "ENUM"
                    | "SET"
                    | "TINYTEXT"
                    | "MEDIUMTEXT"
                    | "LONGTEXT"
                    | "TINYBLOB"
                    | "MEDIUMBLOB"
                    | "BLOB"
                    | "LONGBLOB";
                    nullable: boolean;
                    [key: string]: unknown;
                }[];
                result: {
                    code?: number;
                    databases?: string[];
                    end_ms?: number;
                    latency?: string;
                    limit?: number;
                    message?: string;
                    row_affect?: number;
                    row_count?: number;
                    start_ms?: number;
                    [key: string]: unknown;
                };
                rows: {
                    first_pr_merged_at?: string;
                    first_pr_opened_at?: string;
                    id?: string;
                    login?: string;
                    name?: string;
                    prs?: string;
                    [key: string]: unknown;
                }[];
            };
            type: "sql_endpoint";
        },
        unknown,
        ThrowOnError,
    >