Skip to content

Conversation

@brontolosone
Copy link
Contributor

@brontolosone brontolosone commented Oct 26, 2025

Related: #1651

We have some .sql files in the repo that are currently missed by lib/bin/check-file-headers.js, and have no copyright header.

This changes the lib/bin/check-file-headers.js script to be easily extendable to work on arbitrary file types (of languages that sport per-line comment symbols), and extends it for SQL.

It's then applied it to the existing .sql migration files ✨

What has been done to verify that this works as intended?

CI

Why is this the best possible solution? Were any other approaches considered?

N/A

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

N/A

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

@brontolosone brontolosone requested a review from alxndrsn October 26, 2025 09:37
@brontolosone brontolosone mentioned this pull request Oct 26, 2025
2 tasks
@brontolosone brontolosone marked this pull request as ready for review October 26, 2025 09:43
Copy link
Member

@matthew-white matthew-white left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @brontolosone!

Is there any chance I could interest you in getodk/central#1274 as well?

@brontolosone brontolosone force-pushed the formalize-pure-sql-migrations-copyrightheaders branch from 33c48a7 to 9fce620 Compare November 14, 2025 10:08
@brontolosone
Copy link
Contributor Author

Is there any chance I could interest you in getodk/central#1274 as well?

Sure! I've assigned it to myself.

@brontolosone brontolosone merged commit b70fccf into getodk:master Nov 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants