# pr-metadata

> Print out metadata that can be copied and pasted into a commit message, based on Node.js core repository practice

Latest version **1.1.1** (published 2016-10-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install pr-metadata
pnpm add pr-metadata
yarn add pr-metadata
bun add pr-metadata
```

Provides the command `pr-metadata`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-10-18 |
| First published | 2015-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Rod |
| Maintainers | rvagg |

## Links

- npm: https://www.npmjs.com/package/pr-metadata
- Repository: https://github.com/rvagg/iojs-tools
- Homepage: https://github.com/rvagg/iojs-tools#readme
- Issues: https://github.com/rvagg/iojs-tools/issues
- npm.io page: https://npm.io/package/pr-metadata

## Dependencies (9)

- [bl](https://npm.io/package/bl.md) ~1.1.2
- [once](https://npm.io/package/once.md) ~1.4.0
- [after](https://npm.io/package/after.md) ~0.8.2
- [ghauth](https://npm.io/package/ghauth.md) ~3.2.1
- [ghpulls](https://npm.io/package/ghpulls.md) ~1.2.0
- [ghissues](https://npm.io/package/ghissues.md) ~1.1.3
- [minimist](https://npm.io/package/minimist.md) ~1.2.0
- [pkg-to-id](https://npm.io/package/pkg-to-id.md) 0.0.3
- [hyperquest](https://npm.io/package/hyperquest.md) ~2.1.0

## Recent versions

- 1.1.1 (latest) — 2016-10-18
- 1.1.0 — 2016-02-24
- 1.0.0 — 2015-10-14

## README

# pr-metadata

**Print out metadata that can be copied and pasted into a commit message, based on Node.js core repository practice**

Provides a `PR-URL` and `Reviewed-By` lines as required by Node.js core.

## Examples

```text
$ pr-metadata https://github.com/nodejs/node/pull/3353
PR-URL: https://github.com/nodejs/node/pull/3353
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
```

In this example, the full pull request URL is given to the `pr-metadata` command, it decodes it and provides 3 lines that can be copied into a commit message. The URL is obvious and the reviewers are pulled from the comments in the PR where an `LGTM` is given (case insensitive).

You can provide only the PR number:

```
$ pr-metadata 3353
PR-URL: https://github.com/nodejs/node/pull/3353
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
```

Or, if you provide nothing at all, it'll make assumptions based on the current branch of your current repository (in the working directory) and look for pull requests for that branch on the upstream repository:

```
# Currently on the 'tsc-meeting-minutes-2015-09-30' branch for which I have a PR active from my fork to upstream
$ pr-metadata
PR-URL: https://github.com/nodejs/node/pull/3235
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
```

Reviewers are translated from GitHub usernames to full details by using the Node.js README, this doesn't scale beyond Node.js core and where it can't determine full details it'll just use the GitHub username.

---
_Source: https://npm.io/package/pr-metadata · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
