Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 25, 2026

This PR standardizes the project structure and updates workflows to align with PSModule conventions.

Changed

  • Rename Auto-Release.yml workflow to Release.yml for consistency
  • Update release action from PSModule/Auto-Release@v1.9.5 to PSModule/Release-GHRepository@v2
  • Rename scripts/ folder to src/ to follow standard project layout
  • Update action.yml to reference scripts from new src/ location
  • Add linter workflow configuration

Removed

  • Remove unused .jscpd.json linter configuration file

Summary

This PR brings the GitHub-Script action in line with PSModule's standardized project structure. The scripts/ folder is renamed to src/ for consistency across all actions, and the release workflow is updated to use the renamed Release-GHRepository action.

@MariusStorhaug MariusStorhaug changed the title 🩹[Patch]: Rename Auto-Release to Release-GHRepository 🩹 [Patch]: Standardize project structure and rename release workflow Jan 25, 2026
@MariusStorhaug MariusStorhaug marked this pull request as ready for review January 25, 2026 21:50
Copilot AI review requested due to automatic review settings January 25, 2026 21:50
@MariusStorhaug MariusStorhaug self-assigned this Jan 25, 2026
@MariusStorhaug MariusStorhaug merged commit 0097f3b into main Jan 25, 2026
77 checks passed
@MariusStorhaug MariusStorhaug deleted the rename-auto-release branch January 25, 2026 21:51
Copy link

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

This PR standardizes the GitHub-Script action's project structure by renaming the scripts/ folder to src/ to align with PSModule conventions, and updates the release workflow to use the renamed action and improved naming.

Changes:

  • Renamed scripts/ folder to src/ for consistency with PSModule project structure
  • Updated workflow from Auto-Release to Release and migrated from PSModule/Auto-Release@v1.9.5 to PSModule/Release-GHRepository@v2.0.1
  • Disabled JSCPD validation in linter and removed its configuration file

Reviewed changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/outputs.ps1 Moved from scripts/ with logic for displaying script outputs
src/init.ps1 Moved from scripts/ with initialization and module setup logic
src/info.ps1 Moved from scripts/ with environment information display logic
src/clean.ps1 Moved from scripts/ with cleanup logic for credentials
action.yml Updated all script path references from scripts/ to src/
.github/workflows/Release.yml Renamed workflow, updated action reference, and added paths filter
.github/workflows/Linter.yml Disabled JSCPD validation
.github/linters/.jscpd.json Removed unused linter configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants