All Projects → noqcks → pull-request-size

noqcks / pull-request-size

Licence: MIT license
Applies labels to Pull Requests based on the total lines of code changed.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pull-request-size

scalafmt-probot
🤖Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (-84.69%)
Mutual labels:  pull-requests, github-app
Probot Gpg
A GitHub App that enforces GPG signatures on pull requests (no longer maintained)
Stars: ✭ 13 (-86.73%)
Mutual labels:  pull-requests, github-app
prlint
GitHub App for linting pull request meta data
Stars: ✭ 122 (+24.49%)
Mutual labels:  pull-requests, github-app
Backport
A simple CLI tool that automates the process of backporting commits on a GitHub repo
Stars: ✭ 154 (+57.14%)
Mutual labels:  productivity, pull-requests
branch-switcher
a GitHub bot that switches the base branch of pull requests to the preferred branch
Stars: ✭ 15 (-84.69%)
Mutual labels:  pull-requests, github-app
swdc-vim
Track your programming activity in real-time in Vim
Stars: ✭ 19 (-80.61%)
Mutual labels:  productivity
Reactirator
A desktop application to create and manage React.js applications easily.
Stars: ✭ 111 (+13.27%)
Mutual labels:  productivity
run
👟 run npm scripts interactively
Stars: ✭ 13 (-86.73%)
Mutual labels:  productivity
TabTrum
TabTrum is a Browser Extension (Currently available for Chrome) to take a snapshot of the open tabs, and open them all again in one single click when you come back and re-open your browser.
Stars: ✭ 24 (-75.51%)
Mutual labels:  productivity
dashy
🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Stars: ✭ 7,103 (+7147.96%)
Mutual labels:  productivity
in-line-calculator
📟 an interface-less calculator for Windows
Stars: ✭ 44 (-55.1%)
Mutual labels:  productivity
vim-hdl
Vim plugin to aid VHDL development (for LSP, see https://github.com/suoto/hdl_checker)
Stars: ✭ 59 (-39.8%)
Mutual labels:  productivity
meeting-price-calculator
Meeting Price Calculator - How expensive are meetings, really?
Stars: ✭ 17 (-82.65%)
Mutual labels:  productivity
Hacktoberfest-2021
Make this Hacktoberfest a learning period and contribute to Great Open Source Projects.
Stars: ✭ 523 (+433.67%)
Mutual labels:  pull-requests
project-management
A basic CLI for regularly updating your project's status
Stars: ✭ 90 (-8.16%)
Mutual labels:  productivity
hacktoberfest-2019
You can check the video here: #hacktoberfest
Stars: ✭ 28 (-71.43%)
Mutual labels:  pull-requests
ansible-vault-editor-idea-plugin
Ansible Vault Editor IntelliJ Plugin with auto encryption/decryption
Stars: ✭ 29 (-70.41%)
Mutual labels:  productivity
ticket-tagger
Machine learning driven issue classification bot.
Stars: ✭ 24 (-75.51%)
Mutual labels:  github-app
screentime
A chrome extension for keeping track and managing your time on social media platforms and websites
Stars: ✭ 42 (-57.14%)
Mutual labels:  productivity
go-home
An OpenGL based progress bar that lets you know when you should really go home after a long day 🕙
Stars: ✭ 14 (-85.71%)
Mutual labels:  productivity

Pull Request Size

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

Install

👉 Install via GitHub marketplace 🌟


If you'd like to host it yourself, see the Github docs on how to create a GitHub application.

If hosting yourself, you'll need the app to request these permissions:

Repository Permisions: metadata:read-only, pull-request:read-write, single-file:read (.gitattributes, .github/labels.yml)

Subscribe to events: Pull Requests

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.

Excluding Files

If you have files that you would not like to be included in the calculation for a Pull Request's size, you can modify the .gitattributes file with the flag linguist-generated=true on your file or file pattern.

For example to mark all .meta files as generated, add this line to .gitattributes

*.meta linguist-generated=true

A .gitattributes file uses the same rules for matching as .gitignore files. See GitHub documenation on the linguist-generated flag for more info.

Custom Labels

You can set custom label names and colors by checking in the file .github/labels.yml to every repository you'd like to customize

XS:
  name: size/XS
  lines: 0
  color: 3CBF00
S:
  name: size/S
  lines: 10
  color: 5D9801
M:
  name: size/M
  lines: 30
  color: 7F7203
L:
  name: size/L
  lines: 100
  color: A14C05
XL:
  name: size/XL
  lines: 500
  color: C32607
XXL:
  name: size/XXL
  lines: 1000
  color: E50009

Setup

This GitHub app runs on probot. It makes it very easy to create new GitHub apps. If you want to run or develop pull-request-size just follow the commands below. hit localhost:3000, and follow the probot instructions.

# Install dependencies
npm install

# Run the bot
npm start

License

MIT © 2021 Benji Visser [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].