now support .rb/.php/.java
1. copy todo.rb
to your PATH or somewhere not in your PATH
2. add a post-commit
file to your hooks directory.
$ cat .git/hooks/post-commit
todo.rb
please verify your post-commit has a execute permission(through chmod+x
).
3. set gitlab url and private token
export GITLAB_HOST = ...
export GITLAB_TOKEN = ...
write comment in your code like this:
// [TODO: xxxxx ]
or
/** [TODO: yyyyy ] */
or
# [TODO: zzzzz ]
and this will add an issue {:title => xxxx, :description => file_name, :assignee_id => your_user_id, labels => 'todo' } to your gitlab repos.
here is a blog(chinese) with some screenshots: http://liubin.org/2014/01/08/pickup_todo_from_source_and_save_it_as_an_issue_into_gitlab/
Copyright bin liu [email protected]
License: MIT License