RepositoryPullRequestArgs

data class RepositoryPullRequestArgs(val baseRef: Output<String>? = null, val baseRepository: Output<String>? = null, val body: Output<String>? = null, val headRef: Output<String>? = null, val maintainerCanModify: Output<Boolean>? = null, val owner: Output<String>? = null, val title: Output<String>? = null) : ConvertibleToJava<RepositoryPullRequestArgs>

This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.RepositoryPullRequest;
import com.pulumi.github.RepositoryPullRequestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new RepositoryPullRequest("example", RepositoryPullRequestArgs.builder()
.baseRef("main")
.baseRepository("example-repository")
.body("This will change everything")
.headRef("feature-branch")
.title("My newest feature")
.build());
}
}

Constructors

Link copied to clipboard
constructor(baseRef: Output<String>? = null, baseRepository: Output<String>? = null, body: Output<String>? = null, headRef: Output<String>? = null, maintainerCanModify: Output<Boolean>? = null, owner: Output<String>? = null, title: Output<String>? = null)

Properties

Link copied to clipboard
val baseRef: Output<String>? = null

Name of the branch serving as the base of the Pull Request.

Link copied to clipboard
val baseRepository: Output<String>? = null

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

Link copied to clipboard
val body: Output<String>? = null

Body of the Pull Request.

Link copied to clipboard
val headRef: Output<String>? = null

Name of the branch serving as the head of the Pull Request.

Link copied to clipboard
val maintainerCanModify: Output<Boolean>? = null

Controls whether the base repository maintainers can modify the Pull Request. Default: false.

Link copied to clipboard
val owner: Output<String>? = null

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

Link copied to clipboard
val title: Output<String>? = null

The title of the Pull Request.

Functions

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