Cleanup merged branches with notification to last committer.
Project description
================= Git Cleaner
Cleanup merged branches with notification to last committer.
Installation
.. code-block:: bash
# Normal install from PyPI
sudo pip3 install --upgrade git-cleaner
# From git
sudo pip3 install --upgrade --no-cache git+https://github.com/keepbot/py-git-cleaner@master
# Locally
git clone https://github.com/keepbot/py-git-cleaner.git
sudo pip3 install --upgrade --no-cache ./py-git-cleaner
Usage
.. code-block:: bash
git-cleaner COMMAND [OPTIONS]
Commands:
list-merged Print list of merged branches with dates
list-no-merged Print list of not merged branches with dates
notify-last-committer Notify developers about outdated branches
remove-outdated-branches Delete outdated branches
show-config Print config entries
Global options:
-h, --help Show this message and exit.
-v, --version Show the version and exit.
Local options:
-h, --help Show this message and exit.
--target TEXT Name of merge branch
--age INTEGER Age of nearest branch
--merged / --no-merged Merged or not merged branches
Environment
Following variables should be set:
.. code-block:: bash
GIT_PROVIDER=bitbucket.org
GIT_USER=keepbot
GIT_REPO_NAME=py-git-cleaner
EMAIL_FROM=git-cleaner@example.com
EMAIL_SMTP_SERVER=smtp.example.com
EMAIL_SMTP_PORT=587
EMAIL_USER=git-cleaner@example.com
EMAIL_PASS=git-cleaner-password
EMAIL_ERROR=git-cleaner-error@example.com
OAUTH_CLIENT_ID=bitbucket-client-id
OAUTH_CLIENT_SECRET=bitbucket-sercret-id
OAUTH_URI_ACCESS_TOKEN=https://bitbucket.org/site/oauth2/access_token
OAUTH_URI_AUTHORIZATION=https://bitbucket.org/site/oauth2/authorize
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-cleaner-0.3.1.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git-cleaner-0.3.1.tar.gz.
File metadata
- Download URL: git-cleaner-0.3.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc188f78d638ba2ac9a296ef04856bdb459d5e9f2cfe62e8ba3b704fc3384dcf
|
|
| MD5 |
4cbf4c3650e3daf79399163f24ddc705
|
|
| BLAKE2b-256 |
4bbc81ea01b769add6b37a0dfc53d7c34ed90119b4605b2dbc81893c9edd1a4f
|
File details
Details for the file git_cleaner-0.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: git_cleaner-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79c2d61d5a992f1fdddb01b7b36ec341c37cc6e1a34e3946f24cb0865458fba2
|
|
| MD5 |
da9836ccc987d24f7c7e2620a0ffed6c
|
|
| BLAKE2b-256 |
9a638d5a02a5e640239e02c790342e42ba8f655bd6a58972de58d657ada77d04
|