Skip to content

Add Instruction to ensure Copyright header is present at start of script and module files#27408

Merged
TravisEz13 merged 3 commits into
PowerShell:masterfrom
anamnavi:add-copyrightheader-instruction
May 11, 2026
Merged

Add Instruction to ensure Copyright header is present at start of script and module files#27408
TravisEz13 merged 3 commits into
PowerShell:masterfrom
anamnavi:add-copyrightheader-instruction

Conversation

@anamnavi
Copy link
Copy Markdown
Member

@anamnavi anamnavi commented May 8, 2026

PR Summary

Add Instruction to ensure Copyright header below is present at start of script and module files

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

PR Context

PR Checklist

Copilot AI review requested due to automatic review settings May 8, 2026 21:47
@anamnavi anamnavi requested a review from a team as a code owner May 8, 2026 21:47
Copy link
Copy Markdown
Contributor

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

Adds a new GitHub Copilot instruction file to enforce PowerShell script/module file formatting, specifically ensuring a copyright/license header is present at the start of .ps1 and .psm1 files.

Changes:

  • Introduces .github/instructions/script-module-file-format.instructions.md targeting **/*.ps1 and **/*.psm1.
  • Documents a required top-of-file copyright/license header and guidance to add/preserve it.

Comment thread .github/instructions/script-module-file-format.instructions.md Outdated
Comment thread .github/instructions/script-module-file-format.instructions.md
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread .github/instructions/script-module-file-format.instructions.md
Comment thread .github/instructions/script-module-file-format.instructions.md Outdated
Comment thread .github/instructions/script-module-file-format.instructions.md Outdated
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@TravisEz13 TravisEz13 added the CL-Tools Indicates that a PR should be marked as a tools change in the Change Log label May 11, 2026
@TravisEz13 TravisEz13 enabled auto-merge (squash) May 11, 2026 17:04
@TravisEz13 TravisEz13 merged commit f14d861 into PowerShell:master May 11, 2026
39 of 41 checks passed
JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Tools Indicates that a PR should be marked as a tools change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants