Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 849 Bytes

File metadata and controls

53 lines (33 loc) · 849 Bytes

GithubCreatePullRequestCommand

A command that created a pull request using GitHub API.

Config

Type: object literal

Optional properties are denoted by *
head

Type: string

base

Type: string

repo

Type: string

owner

Type: string

title

Type: string

body*

Type: string

ℹ️   GithubHttpCommand options are also applicable.

Example

const { Commands } = require("@abstracter/atomic-release");

const command = new Commands.GithubCreatePullRequestCommand({
  head: "v123-generated-files",
  base: "main",
  repo: "atomic-release",
  owner: "abstracter-io",
  title: "🤖 Adding v23 generated files",
  body: "**Take me to your leader**."
  headers: {
    Authorization: "token PERSONAL-ACCESS-TOKEN",
  },
});