-
-
Notifications
You must be signed in to change notification settings - Fork 0
Skip template-incompatible CI/Publish jobs on un-initialized template #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
73810c5
fix(tests): correct $parameterNames variable and preserve original ex…
tablackburn 9b49425
feat(tests): SemVer-aware dependency version constraints
tablackburn 91db22c
chore: add .gitattributes, markdownlint config, and about_ help stub
tablackburn 5bdf33b
chore(analyzer): structured PSScriptAnalyzer settings, bump to 1.25.0
tablackburn 13bee8d
feat(init): split README and rename docs/en-US files during init
tablackburn dd64c22
fix(review): address PR #14 inline findings
tablackburn 65fd9e4
chore(changelog): rename CHANGELOG.md to CHANGELOG.template.md
tablackburn a0e1579
feat(changelog): add template-level CHANGELOG.md (CalVer)
tablackburn 90ecacb
docs: link template CHANGELOG from README.md
tablackburn 83ea2b3
ci: skip template-incompatible jobs when run on un-initialized template
tablackburn 997c47f
fix(review): address PR #16 inline findings
tablackburn c6a35cf
fix(init): preserve existing README.md / CHANGELOG.md on re-run
tablackburn d37b827
ci(lint): skip PSScriptAnalyzer on un-initialized template
tablackburn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # The docs are generated by the build script and should be considered artifacts | ||
| docs/en-US/* linguist-generated |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.19.1/schema/markdownlint-cli2-config-schema.json", | ||
| "config": { | ||
| "MD013": { | ||
| "tables": false, | ||
| "code_blocks": false | ||
| }, | ||
| "MD024": { | ||
| "siblings_only": true | ||
| } | ||
| }, | ||
| "ignores": [ | ||
| "AGENTS.md", | ||
| // Intentionally narrow: only ignores docs/en-US (platyPS-generated help) so that | ||
| // other markdown files in docs/ are still linted. No other language directories | ||
| // are expected. | ||
| "docs/en-US/**", | ||
| "instructions/**" | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,34 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
| All notable changes to this template will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
| and this project uses [Calendar Versioning](https://calver.org/) (`YYYY.MM.DD`). | ||
|
|
||
| For the changelog of a *module initialized from this template*, see the module's | ||
| own `CHANGELOG.md` (generated from `CHANGELOG.template.md` during init). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ## [0.1.0] - {{Date}} | ||
| ## [2026.04.29] - 2026-04-29 | ||
|
|
||
| ### Added | ||
|
|
||
| - Initial release | ||
| - `Get-{{Prefix}}Example` - Example public function | ||
| - SemVer-aware dependency version checks: new `tests/ManifestHelpers.psm1` exporting `Test-VersionConstraint`. `tests/Manifest.tests.ps1` now differentiates `RequiredVersion` / `ModuleVersion` / `MaximumVersion`, accepts both string and hashtable shapes in `requirements.psd1`, and detects duplicate `RequiredModules` entries. | ||
| - README split: template-facing `README.md` (what GitHub visitors see) and module-facing `README.template.md` (substituted into `README.md` during init). | ||
| - `docs/en-US/about_{{ModuleName}}.help.md` stub for `Get-Help about_<Module>`. `Initialize-Template.ps1` now also renames `{{ModuleName}}` files in `docs/en-US/`. | ||
| - `.gitattributes` marking `docs/en-US/*` as `linguist-generated`. | ||
| - `.markdownlint-cli2.jsonc` config (relax MD013 in tables/code, allow MD024 siblings, ignore generated docs and `instructions/`). | ||
|
|
||
| ### Changed | ||
|
|
||
| - `PSScriptAnalyzerSettings.psd1`: replaced one-line `@{ IncludeRules = @('*') }` with the structured form (Include/Exclude/Rules + commented compat scaffold). | ||
| - Bumped `PSScriptAnalyzer` 1.24.0 → 1.25.0. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - `tests/Help.tests.ps1`: replaced undefined `$parameterNames` with `$commandParameterNames` in the help-vs-code parameter check (was silently asserting against `$null`). | ||
| - `{{ModuleName}}/{{ModuleName}}.psm1`: dot-source catch block now preserves the original `ErrorRecord` via bare `throw` (was `throw $_`, which wrapped the error). | ||
|
|
||
| [Unreleased]: https://github.com/tablackburn/PowerShellModuleTemplate/compare/v2026.04.29...HEAD | ||
| [2026.04.29]: https://github.com/tablackburn/PowerShellModuleTemplate/releases/tag/v2026.04.29 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ## [0.1.0] - {{Date}} | ||
|
|
||
| ### Added | ||
|
|
||
| - Initial release | ||
| - `Get-{{Prefix}}Example` - Example public function |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,28 @@ | ||
| # https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer | ||
| @{ | ||
| IncludeRules = @('*') | ||
| IncludeDefaultRules = $true | ||
|
|
||
| IncludeRules = @( | ||
| # Default rules | ||
| 'PS*' | ||
| ) | ||
|
|
||
| # If IncludeRules and ExcludeRules are empty, all rules will be applied | ||
| ExcludeRules = @() | ||
|
|
||
| Rules = @{ | ||
| # PSUseCompatibleSyntax = @{ | ||
| # # This turns the rule on (setting it to false will turn it off) | ||
| # Enable = $true | ||
|
|
||
| # # List the targeted versions of PowerShell here | ||
| # TargetVersions = @( | ||
| # '5.1', | ||
| # '7.2' | ||
| # ) | ||
| # } | ||
| # PSUseCompatibleCmdlets = @{ | ||
| # compatibility = @('core-7.2.0-windows') | ||
| # } | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.