Skip to content

add gitlab package install guide #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,17 +3,22 @@
now support .rb/.php/.java

## setup
**1. install gitlab package**

**1. copy `todo.rb` to your PATH or somewhere not in your PATH**
``
sudo gem install gitlab
``

**2. add a `post-commit` file to your hooks directory.**
**2. copy `todo.rb` to your PATH or somewhere not in your PATH**

**3. 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**
**4. set gitlab url and private token**

export GITLAB_HOST = ...
export GITLAB_TOKEN = ...
1 change: 1 addition & 0 deletions todo.rb
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@

require 'gitlab'

Encoding.default_external = Encoding::UTF_8

$new_todo = []
$old_todo = []