Skip to content
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

Multi-user/multi-system via a git repo #35

Open
thawkins opened this issue Sep 23, 2022 · 1 comment
Open

Multi-user/multi-system via a git repo #35

thawkins opened this issue Sep 23, 2022 · 1 comment

Comments

@thawkins
Copy link

thawkins commented Sep 23, 2022

Would it be worth considering adding awareness of the data store files being in a git repo and do relevant pull, add commit and push actions when the state changes or add kanban push and kanban pull commands to handle updates, that would allow the tool to be used in teams or single dev on multiple machines.

Support .kanban folder in project repo

@coderofsalvation
Copy link
Owner

what do you think about this: we could potentially add hooks for each kanban command (like .kanban/hooks/add would be triggered after running add).

That would allow putting something like this into file .kanban/hooks/add.sample:

test -d .git || exit 0
read -p "[kanban] git commit?" y
git add .kanban
test "$y" == "y" || exit 0
git commit -m "new kanban item: $*"
read -p "[kanban] git push?" y
test "$y" == "y" && git push origin $(git rev-parse --abbrev-ref HEAD)

WDYT?

to activate it: one simply has to rename .kanban/hooks/add.sample to .kanban/hooks/add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants