lesstif/jira-smart-commiter

支持DVCS仓库的JIRA智能提交器。

0.1-alpha 2017-12-11 07:04 UTC

This package is auto-updated.

Last update: 2024-08-27 04:47:09 UTC


README

Latest Stable Version Latest Unstable Version StyleCI License

使用Laravel Zero构建的外部JIRA智能提交器。

工作原理

  • 手动运行或通过任务计划程序(crontab、Windows任务管理器等)启动
  • 连接DVCS仓库(gitlab、github、bitbucket等)并检出新提交并扫描提交信息。
  • 在相关JIRA问题上进行评论和状态转换。

优点

  • 支持与智能提交集成的Gitlab集成。
  • 不需要DVCS提交钩子。
  • 不需要为每个项目设置JIRA DVCS连接器设置。
  • 可自定义智能提交关键字和工作流程。

缺点

  • 需要PHP
  • 太多的JIRA问题评论。

要求

安装

从源码构建

  1. 克隆仓库

    git clone https://github.com/lesstif/jira-smart-commiter.git && cd jira-smart-commiter
  2. 安装composer依赖

    composer install
  3. 执行应用程序构建

    php jira-smart-commiter app:build jira-smart-commiter.phar    

    可以在builds目录中找到构建的二进制文件。

下载

推荐方法

  1. 下载预构建的二进制文件

    使用wget

    wget https://github.com/lesstif/jira-smart-commiter/releases/download/0.1-alpha/jira-smart-commiter.phar

    使用curl

    curl -k -L -O https://github.com/lesstif/jira-smart-commiter/releases/download/0.1-alpha/jira-smart-commiter.phar
  2. 更改模式

    chmod +x jira-smart-commiter.phar

使用方法

  1. 生成初始配置

    php jira-smart-commiter.phar init
  2. $HOME/.smartcommit/settings.json文件中更改DVCS信息(URL、类型和API版本)和JIRA服务器信息。

    vim ~/.smartcommit/settings.json
  3. 生成dvcs项目列表.* $HOME/.smartcommit/projects.json*

     php jira-smart-commiter.phar project:create-list
  4. 获取提交并与JIRA同步。

     php jira-smart-commiter.phar fetch:commit --since=DATETIMEString --until=DATETIMEString

另请参阅