lesstif / jira-smart-commiter
支持DVCS仓库的JIRA智能提交器。
0.1-alpha
2017-12-11 07:04 UTC
Requires
- php: >=7.1
- illuminate/log: 5.5.*
- illuminated/console-mutex: ^5.5
- intonate/tinker-zero: ^1.0
- laravel-zero/laravel-zero: 4.0.*
- m4tthumphrey/php-gitlab-api: ^9.6
- netresearch/jsonmapper: ^1.4
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
- phpunit/phpunit: ~6.4
- symfony/var-dumper: ~2.8|~3.0
This package is auto-updated.
Last update: 2024-08-27 04:47:09 UTC
README
使用Laravel Zero构建的外部JIRA智能提交器。
工作原理
- 手动运行或通过任务计划程序(crontab、Windows任务管理器等)启动
- 连接DVCS仓库(gitlab、github、bitbucket等)并检出新提交并扫描提交信息。
- 在相关JIRA问题上进行评论和状态转换。
优点
- 支持与智能提交集成的Gitlab集成。
- 不需要DVCS提交钩子。
- 不需要为每个项目设置JIRA DVCS连接器设置。
- 可自定义智能提交关键字和工作流程。
缺点
- 需要PHP
- 太多的JIRA问题评论。
要求
- PHP >= 7.1及以下扩展。
- sqlite
- curl
- php jira-rest-client
- laravel zero
安装
从源码构建
-
克隆仓库
git clone https://github.com/lesstif/jira-smart-commiter.git && cd jira-smart-commiter
-
安装composer依赖
composer install
-
执行应用程序构建
php jira-smart-commiter app:build jira-smart-commiter.phar
可以在builds目录中找到构建的二进制文件。
下载
推荐方法
-
下载预构建的二进制文件
使用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
-
更改模式
chmod +x jira-smart-commiter.phar
使用方法
-
生成初始配置
php jira-smart-commiter.phar init
-
在$HOME/.smartcommit/settings.json文件中更改DVCS信息(URL、类型和API版本)和JIRA服务器信息。
vim ~/.smartcommit/settings.json
-
生成dvcs项目列表.* $HOME/.smartcommit/projects.json*
php jira-smart-commiter.phar project:create-list
-
获取提交并与JIRA同步。
php jira-smart-commiter.phar fetch:commit --since=DATETIMEString --until=DATETIMEString