Find and remove the mold from your source control repositories
Remove mold from your repositories :)
Bleach is a project dedicated to helping software development teams keep track of their repositories and make sure no pull request is left unattended.
Bleach may query GitHub and BitBucket repositories, and write alerts on pull requests open for too long to Slack.
Bleach may also try to make an educated guess as for whether or not two branches are out of sync. For example, a
master branch may be expected to contain all commits from a
staging branch, and Bleach will alert if that is not the case.
For unpriviliged users:
pip install --user bleachrepo
Or for priviliged users / with sudo:
pip install bleachrepo
Running & Commands
python -m bleach <org> <repo> <command> <additional_params_for_command>
Viable commands are:
pr - check the status of open pull requests of given
branch - compare two branches, checking if commits are present in one branch, but not another.
pr is used to check the status of pull requests in a given repo, and helps find pull requests that are open for too long.
python -m bleach shesekino bleach pr will write to
stdout a summary of pull requests open for over 2 days.
branch is used to check for commits appearing in one branch, but not another.
This feature can be useful for repositories with a
master branch that is expected to eventually contain all recent commits from a
python -m bleach shesekino bleach branch test-branch-discrepancy-1 test-branch-discrepancy-2 will check if there are commits in branch
test-branch-discrepancy-2 that do not appear in
This feature somewhat relies on guesswork and assumptions.
Private & public repositories
Public repositories require no special treatment.
For private repositories, obtain a GitHub access token with
repo permissions, then set it as an environment variable:
export BLEACH_GITHUB_ACCESS_TOKEN=<access token>
and run normally.
Writing to Slack
Set a webhook URL to slack:
export BLEACH_SLACK_WEBHOOK=<webhook url>
python -m bleach --outputMethod slack <org> <repo> <command>
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size bleachrepo-0.0.24-py2-none-any.whl (11.4 kB)||File type Wheel||Python version py2||Upload date||Hashes View|
|Filename, size bleachrepo-0.0.24.tar.gz (7.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for bleachrepo-0.0.24-py2-none-any.whl