lesstif / jira-smart-commiter
JIRA Smart commiter with DVCS Repository.
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-11-27 05:25:44 UTC
README
External JIRA smart commiter built with Laravel Zero.
How it works
- run manually or lachunched via task scheduler(crontab, windows task manager, etc...)
- connect DVCS Repository(gitlab, github, bitbucket, etc...) and check out new commit and scan commit message .
- commenting and status transition on the relative jira issue.
Pros
- Support gitlab integration with smart commit.
- Don't need DVCS commit hook.
- Don't need JIRA DVCS Connector settings per project.
- Customizable smart commit keyword and workflow.
Cons
- Need PHP
- to many jira issue comment.
Requirements
- PHP >= 7.1 with bottom extensions.
- sqlite
- curl
- php jira-rest-client
- laravel zero
Installation
Build from Source
-
clone repository
git clone https://github.com/lesstif/jira-smart-commiter.git && cd jira-smart-commiter
-
install composer dependency
composer install
-
Perform an application build
php jira-smart-commiter app:build jira-smart-commiter.phar
you can find built binary in builds directory.
download
Recommended method
-
download pre-built binary
using wget
wget https://github.com/lesstif/jira-smart-commiter/releases/download/0.1-alpha/jira-smart-commiter.phar
using curl
curl -k -L -O https://github.com/lesstif/jira-smart-commiter/releases/download/0.1-alpha/jira-smart-commiter.phar
-
change mod
chmod +x jira-smart-commiter.phar
Usage
-
generate initial configuration
php jira-smart-commiter.phar init
-
change DVCS Info(URL, Type and API Version) field and JIRA Server Info in the $HOME/.smartcommit/settings.json file.
vim ~/.smartcommit/settings.json
-
generate dvcs project list.* $HOME/.smartcommit/projects.json*:
php jira-smart-commiter.phar project:create-list
-
fetch commit & sync to JIRA.
php jira-smart-commiter.phar fetch:commit --since=DATETIMEString --until=DATETIMEString