Skip to content

Latest commit

History

History
47 lines (29 loc) 路 981 Bytes

github-create-issue-comments-command.md

File metadata and controls

47 lines (29 loc) 路 981 Bytes

GithubCreateIssueCommentsCommand

A github command that comments in github issues.

Options

Type: object literal

Optional properties are denoted by *
repo

Type: string

owner

Type: string

issueComments

Type: array

An array of object literals where each object is an issue number and the comment body.

鈩癸笍 聽 GithubHttpCommand options are also applicable.

Example

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

const command = new GithubCreateIssueCommentsCommand({
  owner: "abstracter-io",

  repo: "atomic-release",

  issueComments: [
    { issueNumber: 1, commentBody: "Commenting in issue number 1 馃コ" },
    { issueNumber: 1, commentBody: "**Another message in issue #1**" },
    { issueNumber: 2, commentBody: "Some other issue" },
  ],

  headers: {
    Authorization: "token PERSONAL-ACCESS-TOKEN",
  },
});