Developed by Gene Pavlovsky [email protected]
Provides git hooks for integration with Kanboard.
Automatically post comments and optionally close Kanboard tasks by referencing them in git commit messages, similar to GitHub.
Issue numbers can be referenced as #69. The following keywords will close an issue via commit message:
- close
- closes
- closed
- fix
- fixes
- fixed
- resolve
- resolves
- resolved
- implement
- implements
- implemented
The hooks are written in bash, the Kanboard interface script in php using fguillot/JsonRPC.
hooks/commit-msgdetects task IDs in the commit message and checks if they exist in Kanboard and belong to the correct project. If validation fails, commit is aborted.hooks/post-commitposts comments and optionally closes Kanboard tasks. If commit is amended, attempts to amend the task comment.
Complete ZIP of the repository
- Copy the contents of
hooksdirectory to.git/hooksinside your repository. - In
hooks/kanboard, install fguillot/JsonRPC usingphp composer.phar install. - Edit
hooks/post-committo customize the comment format. - Edit
hooks/kanboard/config.phpand optionallyhooks/kanboard/config.default.php.
Read the comments for explanations, as well as suggested TortoiseGit Issue Tracker Config settings.