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

Add function to set up / update the commit hooks #15

Open
rmbielby opened this issue Feb 5, 2024 · 0 comments
Open

Add function to set up / update the commit hooks #15

rmbielby opened this issue Feb 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rmbielby
Copy link
Contributor

rmbielby commented Feb 5, 2024

I'm thinking this could consist of:

  • an initialiser that creates:
    • a .git/hooks/pre-commit script that loads dfeshiny and then runs a single dfeshiny function
    • datafiles_log.csv
  • a single function, e.g. commit_hooks() that itself runs individual hook functions:
    • data_checker() - checks for unpublished data
    • style_code() - runs styler::style_dir()
    • check_analytics_key() - check for the presence of the analytics key
@rmbielby rmbielby added the enhancement New feature or request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant