gitown
Keep your github CODEOWNERS file up to date.
Free software: MIT license
Documentation: https://gitown.readthedocs.io.
Features
Keep your github CODEOWNERS file up to date.
If a committer exceeds the ownership_threshold percentage in a file, then the committer is added to the CODEOWNERS file.
Default ownership_threshold is set to 25%. You can change it by passing --ownership_threshold
Can be used as a pre-commit hook.
You need to create a gitownrc file and have a mapping of github emails to github usernames. gitown reads that file and only those users are considered to be added to the CODEOWNERS file.*
It is best used along with pre-commit. You can use it along with pre-commit by adding the following hook in your .pre-commit-config.yaml file.
repos:
- repo: https://github.com/milin/gitown
rev: v0.1.0
hooks:
- id: gitown
args: ['--ownership_threshold=50', '--codeowners_filename=CODEOWNERS'] # Optional
You need to have precommit setup to use this hook.
Install Pre-commit and the commit-msg hook-type.
pip install pre-commit pre-commit install
History
0.1.0 (2020-11-07)
First release on PyPI.
Metadata
Release files for gitown 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitown-0.1.0.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitown-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.8 kB
Release files / gitown-0.1.0.tar.gz
| Download URL | gitown-0.1.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a08e5a7bf57d6e5d96d585f03b30c98af408384494e4a55b411bdaf8d1be8a98
|
|
BLAKE2b-256 checksum How to use checksums |
a8d3421b2378733f992f794c260b33dd672675f883ebf5e6b7952d7889a7aebc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.20.1 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8
|
Release files / gitown-0.1.0-py2.py3-none-any.whl
| Download URL | gitown-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2e69c8a0042317f7fd38fb75bb869172a7b3a5ecb0c83f833f14e938723a9f32
|
|
BLAKE2b-256 checksum How to use checksums |
aaddb0acf570b6136585a08a5101dcce4a42bc24761ca9b7dbb9a24e1f5ae84b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.20.1 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8
|