openelections-data-tx
openelections-data-tx copied to clipboard
Use git pre-commit hooks to verify changes
I'm not sure the best way to do this, but it seems like we might want some functionality where created pull requests are checked to verify that they meet the CONTRIBUTING.md
rules and perhaps some extra ones, like normalized names, no empty field names, no empty rows, etc.. I believe this can be implemented with a webhook triggered on pull request creation.
I played around with this thought (using status checks, for example) a while ago, but never got around to actually doing any checks. If it's deemed worth the effort, I could revisit the idea.
I figured I'd get this up as an issue. I'm not sure if its worth the effort, but it seems like this could be used across all state repositories. Perhaps making it more valuable.
The data tests and format tests workflows are an attempt at this.