保持github代码所有者文件的最新状态。
gitown的Python项目详细描述
吉敦
保持github代码所有者文件的最新状态。在
- 免费软件:麻省理工学院许可证
- 文档:https://gitown.readthedocs.io。在
特点
- 保持github CODEOWNERS文件最新。在
- 如果提交者超过了文件中的ownership_threshold百分比,则提交者将添加到CODEOWNERS文件中。在
- 默认值ownership_threshold设置为25%。您可以通过传递--ownership_threshold
- 可以用作pre-commit钩子。在
- 您需要创建一个gitownrc文件,并将github电子邮件映射到github用户名。gitown读取该文件,只有那些用户才被认为被添加到CODEOWNERS文件。*
它最好与pre-commit一起使用。通过在.pre-commit-config.yaml文件中添加以下钩子,可以将其与预提交一起使用。在
repos: - repo: https://github.com/milin/gitown rev: v0.1.0 hooks: - id: gitown args: ['--ownership_threshold=50', '--codeowners_filename=CODEOWNERS'] # Optional
你需要有预提交设置才能使用这个钩子。
Install Pre-commit and the commit-msg hook-type.
pip install pre-commit pre-commit install
历史
- PyPI的第一个版本。在
- 项目
标签: