Skip to content

chore: add LICENSE#20636

Open
okwn wants to merge 3 commits into
github:masterfrom
okwn:pr/mega-campaign-01/add-contributing-license
Open

chore: add LICENSE#20636
okwn wants to merge 3 commits into
github:masterfrom
okwn:pr/mega-campaign-01/add-contributing-license

Conversation

@okwn
Copy link
Copy Markdown

@okwn okwn commented May 26, 2026

Summary

This PR adds an MIT License to the github/dmca repository.

Changes

  • Added LICENSE file with MIT License terms

Motivation

Adding an explicit license file clarifies the licensing terms for the repository's content and facilitates contribution and distribution.

Copilot AI review requested due to automatic review settings May 26, 2026 19:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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);
});
Comment thread LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025
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