Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/mod.ts>PullRequestClient#createPullRequest

Various HTTP clients for miscellaneous use.
Go to Latest
method PullRequestClient.prototype.createPullRequest
import { PullRequestClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/mod.ts";

Creates a new pull request in a repository with a name that matches the given PullRequestClient.repoName, using the given title, headBranch, baseBranch, and description.

Parameters

title: string

The title of the pull request.

headBranch: string

The name of the branch that contains the changes for the pull request.

baseBranch: string

The name of the branch that the changes will be pulled into.

optional
description = [UNSUPPORTED]

The description of the pull request.

optional
maintainerCanModify = [UNSUPPORTED]

The value indicating whether or not maintainers can modify the pull request.

optional
isDraft = [UNSUPPORTED]

The value indicating whether or not the pull request is a draft pull request.

Returns

Promise<PullRequestModel>

The newly created pull request.