Git 钩子,可将您的待办事项转换为 GitHub 问题
GitHub-Todos 是一个 git 钩子,可将您的待办事项转换为 GitHub 问题。 您可以阅读 wiki 上的完整演示 以获取详细信息。
# If you're not using Github, set service FIRST
github-todos config service bitbucket # check out github-todos list-services
github-todos initgithub-todos config --defaults
# want to enable issue injection?
github-todos config inject-issue true
# check configuration help
github-todos help config[Github-Todos] Checking Github Authentication… OK
[Github-Todos] Created issue #11 (do something better) - https://github.com/user/repo/issues/11
[Github-Todos] Created issue #12 (add security filter) - https://github.com/user/repo/issues/12
[Github-Todos] Added comment to issue #12 (add security filter) - https://github.com/user/repo/issues/11/#…
[Github-Todos] Injecting issue numbers to files…
[Github-Todos] Added a commit containing issue injectionsnpm install -g github-todosgithub-todos auth虽然有很多选项,但由于此工具可能对您的项目产生重大影响(创建无用的问题,引起工作区冲突等),因此它必须具有保守的默认值,并且您必须了解这些选项。
有关详细信息(包括格式),请使用 GitHub-todos help config。以下是大多数可能有用的选项的简要列表:
repo 是要在其中创建问题的仓库(格式: "用户/仓库",默认值: 根据远程源推测)service 是问题服务(默认值: "GitHub",可用值: "GitHub")branches 是将启用钩子的分支(默认值: master,develop)remotes 是将启用钩子的远程(建议: 设置多个会导致在将相同提交推送到不同启用的远程时出现重复问题,默认值: origin)files 是将启用钩子的文件暂无开放 Issues,或尚未同步最近议题。