Skip to main content

GitHub Tools

A collection of tools around Git and GitHub to make developers’ lives easier.

gt-assign-pr

A simple helper to assign a given PR to as set of users from the CLI.

Usage

This tool requires the use of a token (see Using Tokens). By simply providing a owner, repository, pr_number and as many users as desired, you can assign the given PR to those users. By default, currently assigned users are kept, but they can be removed using the --clear-current flag.

Using Tokens

In order to provide for maximum flexibility, these tools are designed to work with GitHub Personal Access Tokens, which are needed for people using two-factor authentication or have access protected by SAML single sign on (SSO). GitHub provides instruction to obtain a token. The token can be provided to all commands either via the --token TOKEN flag, or by setting GH_TOKEN in your environment.

Custom GitHub URL

By default, this project works with https://github.com. In order to use an alternate URL, such as an enterprise install, you can provide the URL via an environment variable: GT_GH_URL.

pre-commit hooks

This repository also provides three hooks, documented below, that can be installed by hand or via pre-commit:

gt-commit-msg

Ensure that a commit message conforms to some best practices:

  1. Subject lines should not be longer than 50 characters

  2. Wrap the body at 72 characters

  3. Separate the subject from body with a blank line.

These are taken from A Note About Git Commit Messages.

gt-self-check

Can perform validations before making a commit. If an executable file named self-check.sh exists in the root of the repository and a Python, Ruby, or Gherkin file was changed, the checker is executed and the return status serves as a gate for the commit to occur. The check can be bypassed via git commit -n.

gt-prepare-commit-msg

Prepare a commit message by including an appropriate prefix, when possible, based on the branch name. If the branch name contains a JIRA ID, that is included in the prefix. If the branch name also contains either “FF” or “Spike”, that is appended to the prefix. If a branch name, without including a JIRA ID, contains “FF”, “Spike”, “Enhancement” or “Fix”, those phrases are set as the prefix. All searches are case-insensitive.

Release files for jolly-github-toolbelt 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jolly-github-toolbelt 2.1.0
File Size Uploaded
jolly_github_toolbelt-2.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jolly-github-toolbelt 2.1.0
File Interpreter ABI Platform
jolly_github_toolbelt-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / jolly_github_toolbelt-2.1.0.tar.gz

Download URL jolly_github_toolbelt-2.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
507d976df91da159071c56d59d3e3237f9e5bf3e3cc42f918e8e1c727cdd0030
BLAKE2b-256 checksum
How to use checksums
1de515be43b22ce4dd8ec10a4a9efee0356eb042cc3a4bfa64254645dd569f90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.6.7 Darwin/18.6.0

Release files / jolly_github_toolbelt-2.1.0-py3-none-any.whl

Download URL jolly_github_toolbelt-2.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9467157870f4bec1d52887bcf8b9cb3885f02fcbbe8a2f8b798eb67c4f019d9b
BLAKE2b-256 checksum
How to use checksums
277dcb10a12db16cfd74a7621ee275f8b05c34a3a110e6bf5391104f4c6a4b34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.6.7 Darwin/18.6.0

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page