This is the first implementation of a one-way sync between github issues and your todo.txt file.
- Clone this repository and symlink github and github.php in your
~/.todo.actions.d/
directory (by usingln -s path/to/repo/github ~/.todo.actions.d/github
andln -s path/to/repo/github.php ~/.todo.actions.d/github.php
) - Edit
github.php
in the repository and change the access token in the linedefine("TOKEN", "");
to a token for your account. See here how to get your token. - Optional: If you want to only sync issues that a specific user (you?) is assigned to, change
define("USERNAME", "");
and add your username. For me that would bedefine("USERNAME", "yatil");
- Add a
github.txt
file to the directory where yourtodo.txt
file lives. - Add the repositories that should be synced to that file: One repository per line in the following format:
owner/repositoryname
. For this repository it would beyatil/todo.txt-github-sync
. - Run
todo.sh github
to sync open issues to yourtodo.txt
file. - When you have closed an issue on github, run the command again to mark them as done. (Note: No issue will be closed by marking the todo item as done, instead the issue might be added back to the todo list if it was already archived to the
done.txt
file.)