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

Automatically commit newly downloaded agenda to git #6

Open
2 tasks
dsernst opened this issue Apr 22, 2017 · 0 comments
Open
2 tasks

Automatically commit newly downloaded agenda to git #6

dsernst opened this issue Apr 22, 2017 · 0 comments

Comments

@dsernst
Copy link
Member

dsernst commented Apr 22, 2017

  • npm pre-start: Check if git status is empty

Something like:

# Throws if git status is not completely empty

if ! git diff-index --quiet HEAD --; then
  echo "git status has uncommitted changes"
  exit 1
fi
  • npm post-start: git commit -am "Added the next week's legislation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant