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

[CI] pre-commit: auto add license templates to headers of TOML files #1657

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

jbampton
Copy link
Member

refs #1647

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

  • No:
    • this is a CI update. The PR name follows the format [CI] my subject

What changes were proposed in this PR?

This PR adds another check/test/hook to our pre-commit framework

So far just targets TOML files.

Using pre-commit we can auto add license headers to files on git commit or when running pre-commit run --all-files

How was this patch tested?

Tested with pre-commit both before and after the license header was added.

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

@jiayuasu jiayuasu merged commit 9706369 into apache:master Oct 31, 2024
4 checks passed
@jbampton jbampton deleted the add-hook-insert-license branch October 31, 2024 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pre-commit automation to add license templates to headers of files
2 participants