清除合并的分支并通知最后一个提交者。

git-cleaner的Python项目详细描述


================= Git清洁剂

清除合并的分支并通知最后一个提交者。

安装

。代码块::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

用法

。代码块::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

环境

应设置以下变量:

。代码块::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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java Double。将长位加倍到C#位转换器。ToDouble   java如何使用正则表达式从固定的Y位数中提取最后的X位数?   java如何显示ChatMessage类列表中的字符串消息属性?   java从JSON或XML提要导入数据,并在Android中创建列表   在整数之间使用按位AND运算符的java好处?   java从Android中的Bean类获取空值?   java会话id对另一台服务器意味着什么?   java未选择案例时开关的工作方式   java组织。openqa。硒。SessionNotCreatedException:无法创建新的远程会话。在emulator中初始化安卓驱动程序时   JavaSWT父和子对话框通信   java请确保java_HOME指向JDK而不是JRE   java用户即使在成功登录后也是匿名的   java控制器单元测试无法自动连接所需的bean   Java小程序类文件