Applies labels to Pull Requests based on the total lines of code changed.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
PRIVACY.md
README.md
app.yml
index.js
package-lock.json
package.json

README.md

Pull Request Size

Build Status | License: MIT

Pull Request Size is a GitHub App that applies size/* labels to Pull Requests based on the total lines of code changed (additions and deletions).

screen shot 2018-11-01 at 10 42 27 am

Configure Pull Request Size for your organization on the GitHub app page.

Sizing

Name Description
size/XS Denotes a PR that changes 0-9 lines.
size/S Denotes a PR that changes 10-29 lines.
size/M Denotes a PR that changes 30-99 lines.
size/L Denotes a PR that changes 100-499 lines.
size/XL Denotes a PR that changes 500-999 lines.
size/XXL Denotes a PR that changes 1000+ lines.

Pull Request Size calculates the size of a PR as

total additions + total deletions - (all generated¹ file additions/deletions)

¹ A generated file is either one of the standard generated files as defined in noqcks/generated or defined with linguist-generated=true in a .gitattributes file. See Customizing how changed files appear on GitHub for more information.

Setup

# Install dependencies
npm install

# Run the bot
npm start

License

MIT © 2018 Benji Visser benny@noqcks.io

TODO

  • remove all size labels before adding them (in the case that a PR is re-opened of a smaller or larger size)
  • read .gitattributes file for ignored files