1.1.8 • Published 2 years ago

goodbrother v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Goodbrother

List open PRs in Github by user.

Motivation

If you have many repos that receive regular updades with Dependabot, you're simply likely to miss some of them. I occasionally only found PRs when I get notification that they were closed in favor of a even newer version.

Goodbrother is there to let me know if I still have some open.

Install

yarn add goodbrother

Usage

Main method is to get open PRs by username.

import { getPullRequestsByUser, groupPullRequestsByRepository } from 'goodbrother'

const openPRs = await getPullRequestsByUser('stscoundrel');

/**
 * Array of PRs with structure like:
 * {
 *   id: 1068208284,
 *   name: Bump eslint-config-airbnb-base from 14.2.1 to 15.0.0,
 *   link: https://github.com/stscoundrel/gatsby-source-plugin-zoega/pull/18,
 *   isDependabot: true,
 *   repository: stscoundrel/gatsby-source-plugin-zoega,
 * }
 */
console.log(openPRs);

// You can also group the result by repository.
const byRepository = groupPullRequestsByRepository(openPRs);

/**
 * Array of repo summaries with structure like:
 * {
 *   name: stscoundrel/gatsby-source-plugin-zoega,
 *   pullRequests: [
 *     {
 *       id: 1068208284,
 *       name: Bump eslint-config-airbnb-base from 14.2.1 to 15.0.0,
 *       link: https://github.com/stscoundrel/gatsby-source-plugin-zoega/pull/18,
 *       isDependabot: true,
 *       repository: stscoundrel/gatsby-source-plugin-zoega,
 *      },
 *     ...
 *   ]
 * }
 */
1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago