GetRepositoryPullRequestsPlainArgs

data class GetRepositoryPullRequestsPlainArgs(val baseRef: String? = null, val baseRepository: String, val headRef: String? = null, val owner: String? = null, val sortBy: String? = null, val sortDirection: String? = null, val state: String? = null) : ConvertibleToJava<GetRepositoryPullRequestsPlainArgs>

A collection of arguments for invoking getRepositoryPullRequests.

Constructors

Link copied to clipboard
constructor(baseRef: String? = null, baseRepository: String, headRef: String? = null, owner: String? = null, sortBy: String? = null, sortDirection: String? = null, state: String? = null)

Properties

Link copied to clipboard
val baseRef: String? = null

If set, filters Pull Requests by base branch name.

Link copied to clipboard

Name of the base repository to retrieve the Pull Requests from.

Link copied to clipboard
val headRef: String? = null

If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".

Link copied to clipboard
val owner: String? = null

Owner of the repository. If not provided, the provider's default owner is used.

Link copied to clipboard
val sortBy: String? = null

If set, indicates what to sort results by. Can be either "created", "updated", "popularity" (comment count) or "long-running" (age, filtering by pulls updated in the last month). Default: "created".

Link copied to clipboard
val sortDirection: String? = null

If set, controls the direction of the sort. Can be either "asc" or "desc". Default: "asc".

Link copied to clipboard
val state: String? = null

If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".

Functions

Link copied to clipboard
open override fun toJava(): GetRepositoryPullRequestsPlainArgs