CI: Add prek pre-commit configuration#257
Merged
Merged
Conversation
|
@tykeal is attempting to deploy a commit to the DCO App Team on Vercel. A member of the Team first needs to authorize it. |
e8747b1 to
84288cd
Compare
Contributor
Author
I've got the agent working on cleaning up the commit history. |
Annotate source, configuration, and metadata files with SPDX license headers, add LICENSES/ISC.txt, and a REUSE.toml covering generated and data files (package.json, package-lock.json, the Jest snapshot, and test fixtures). The repository is now compliant with version 3.3 of the REUSE Specification. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Add SPDX headers to the Markdown documentation and reflow it to satisfy markdownlint (wrap long lines, add code-fence languages and image alt-text). Refer to the main default branch instead of master, complete the deploy sentence to read "this GitHub App", clarify the required-status wording, and promote the LICENSE.md title to a top-level heading. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Add a .pre-commit-config.yaml (run locally via prek and on pre-commit.ci) with standard hooks: pre-commit-hooks, gitlint, yamllint, codespell, markdownlint, write-good, shellcheck, actionlint, check-jsonschema, gha-workflow-linter, and reuse; Prettier via the pinned v2.5.1 mirror (Markdown excluded, owned by markdownlint); and a local Jest hook (skipped on pre-commit.ci). Add the companion .gitlint, .yamllint, .codespellrc, and .prettierignore files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Add a job-level timeout-minutes to every workflow job (required by the check-jsonschema timeout hook), add SPDX headers, and point the Test workflow's push trigger at main to match the default branch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
2ff79af to
1b4e09d
Compare
eb-oss
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adopt the team's standard pre-commit tooling and bring the repository
into REUSE licensing compliance. This change is intentionally scoped to
tooling, metadata, and documentation — it makes no dependency or
runtime logic changes (the only edits to
index.jsandapi/github/webhooks/index.jsare added SPDX comment headers), so aVercel redeploy rebuilds the existing locked dependency tree unchanged.
What's included
.pre-commit-config.yaml) runnable viapreklocally and on pre-commit.ci, with standard hooks: pre-commit-hooks,
gitlint, yamllint, codespell, markdownlint, write-good, shellcheck,
actionlint, check-jsonschema, gha-workflow-linter, and reuse; prettier
via the pinned v2.5.1 mirror; and a local Jest test hook (skipped on
pre-commit.ci).
.gitlint(strict Conventional Commits:title <=50, body <=72, sign-off required),
.yamllint,.codespellrc,.prettierignore.LICENSES/ISC.txt, andREUSE.tomlfor generated/data files. The reponow passes
reuse lint(REUSE 3.3).timeout-minutesadded to every workflow job.Verification
prek run --all-filesis green.npm testpasses (218 tests, 15 snapshots).reuse lintreports full compliance.