Skip to content

a git hook to pickup todo from comment of your code and post as an issue to gitlab

Notifications You must be signed in to change notification settings

liubin/gitlab_todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

a git hook to pickup todo from comment of your code and post as an issue to gitlab

now support .rb/.php/.java

setup

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 = ...

how to use

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.

read more

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/

feedback

liubin0329@gmail.com

copyright & license

Copyright bin liu liubin0329@gmail.com

License: MIT License

About

a git hook to pickup todo from comment of your code and post as an issue to gitlab

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published