@google-automations/issue-utils
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Utility for Managing GitHub issues

This is a small utility for managing GitHub issues.

Usage

Install

npm i @google-automations/issue-utils

Usage

addOrUpdateIssue will automatically open or update a GitHub issue. It searches for the issue by title and will update it if necessary.

Example usage:

import {addOrUpdateIssue} from '@google-automations/issue-utils';

const issue = await addOrUpdateIssue(
  octokit,
  'testOwner',
  'testRepo',
  'This is the title of the issue',
  'This is the body of the issue',
  ['some-label', 'another-label']
);
console.log('Issue: ', issue.number);

Readme

Keywords

Package Sidebar

Install

npm i @google-automations/issue-utils

Weekly Downloads

54

Version

3.0.0

License

Apache-2.0

Unpacked Size

29.8 kB

Total Files

9

Last publish

Collaborators

  • google-wombot