Automate copywrite headers
swade1987 opened this issue · comments
Steven Wade commented
Leverage https://github.com/hashicorp/copywrite
Create a GH action job that essentially runs the following.
- run: go install github.com/hashicorp/copywrite@latest
- run: copywrite headers
- name: Check for Git Differences
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after adding copyright headers. Run 'copywrite headers' command and commit."; exit 1)
A lot of other upstream providers leverage this already, for example:
Steven Wade commented
Closing need to re-think this approach.