Skip to main content

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.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

git_cleaner-0.3.4-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file git-cleaner-0.3.4.tar.gz.

File metadata

  • Download URL: git-cleaner-0.3.4.tar.gz
  • Upload date:
  • Size: 7.9 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

Hashes for git-cleaner-0.3.4.tar.gz
Algorithm Hash digest
SHA256 7f8168e3b8dba71b030553dd9a8d69f1db9bb544fae9fa60f149b9fbd8f01df4
MD5 c14d356b112a6b8ca3d9f526cb1c3c01
BLAKE2b-256 d6a398a71876fe74c5fdf192c1adfcf6f9825aad8cb1e52449c6ff156f72cf6f

See more details on using hashes here.

File details

Details for the file git_cleaner-0.3.4-py2.py3-none-any.whl.

File metadata

  • Download URL: git_cleaner-0.3.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.5 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

Hashes for git_cleaner-0.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3f4d5f92c4f477969e1d8b7df69ab720457bb5ee58180e11120a859eca01078
MD5 723267f1ea3ad498813ff43da8a7c644
BLAKE2b-256 4ddf974cc50dc7ee41a8308438535f1b753d757d3b3e2ba72ff852d8b7205a53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page