chore: add LICENSE#20636
Open
okwn wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds repository scaffolding for licensing and CI validation of a GitHub helper script, including a Node-based test workflow.
Changes:
- Add MIT license file
- Add GitHub Actions workflow to run Node tests for
validate-filepaths - Add Jest tests for filepath validation logic/patterns
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| LICENSE | Introduces MIT license text for repository distribution/usage. |
| .github/workflows/validate-filepaths.yml | Adds CI workflow to install deps and run tests for the filepath validation script. |
| .github/script/validate-filepaths/tests/validate.test.js | Adds unit tests intended to validate filepath/year/date naming conventions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+5
to
+8
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: |
| node-version: "20" | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install |
Comment on lines
+8
to
+10
| function isFileInsideAYearFolder(filepath) { | ||
| return filepath.match(/^\d{4}/) !== null; | ||
| } |
Comment on lines
+8
to
+10
| function isFileInsideAYearFolder(filepath) { | ||
| return filepath.match(/^\d{4}/) !== null; | ||
| } |
Comment on lines
+87
to
+91
| test("incorrect structure with non-matching date in filename", () => { | ||
| const invalidPath = "2024/06/2023-06-15-brand.markdown"; | ||
| expect(isFileInsideAYearFolder(invalidPath)).toBe(true); | ||
| expect(isFilepathDateValid(invalidPath)).toBe(true); | ||
| }); |
| @@ -0,0 +1,21 @@ | |||
| MIT License | |||
|
|
|||
| Copyright (c) 2025 | |||
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
This PR adds an MIT License to the github/dmca repository.
Changes
LICENSEfile with MIT License termsMotivation
Adding an explicit license file clarifies the licensing terms for the repository's content and facilitates contribution and distribution.