◐ Shell
clean mode source ↗

Add Instruction to ensure Copyright header is present at start of script and module files by anamnavi · Pull Request #27408 · PowerShell/PowerShell

@anamnavi

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

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.

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.

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

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026