Skip to content

docs(specs): add v1 spec and upgrade Process-PSModule caller to v8 - #33

Draft
Marius Storhaug (MariusStorhaug) wants to merge 2 commits into
mainfrom
v1-spec
Draft

docs(specs): add v1 spec and upgrade Process-PSModule caller to v8#33
Marius Storhaug (MariusStorhaug) wants to merge 2 commits into
mainfrom
v1-spec

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

This PR lands two related pieces of groundwork for the v1 release:

  1. v1 functional specification for the PowerShellGallery module.
  2. Process-PSModule framework upgrade to v8, including Pester 6 test migration and Zensical documentation setup.

v1 specification

Defines the initial public API for the module:

  • Discovery (read-only)
    • Get-PowerShellGalleryAPI
    • Find-PowerShellGalleryPackage
    • Get-PowerShellGalleryPackage
  • Listing management (requires package-owner API key)
    • Hide-PowerShellGalleryPackage (Unlist-PowerShellGalleryPackage)
    • Show-PowerShellGalleryPackage (List-PowerShellGalleryPackage)

The spec is located at docs/content/specs/v1.md and covers naming conventions, private-helper responsibilities, error handling, authentication, testing approach, and migration from the current stubs.

v8 upgrade details

  • Replaced .github/workflows/Process-PSModule.yml with the exact v8 caller contract.
  • Migrated tests/PowerShellGallery.Tests.ps1 to Pester 6 (#Requires, native v6 assertions).
  • Added missing baseline files: AGENTS.md, CONTRIBUTING.md, .github/pull_request_template.md.
  • Migrated documentation from MkDocs to Zensical:
    • Added docs/zensical.toml with docs_dir = "content".
    • Added docs/content/index.md and moved docs/specs/v1.md to docs/content/specs/v1.md.
    • Copied icon/icon.png to docs/content/Assets/icon.png.
    • Ignored generated docs/site/ in .gitignore.

Validation

  • Workflow YAML parses successfully.
  • zensical build --clean completes with no issues.
  • Pester 6 test syntax is valid; the tests currently fail locally only because the module is not built/imported outside the framework (expected).

Notes

  • Existing stub names Hide-PowerShellGalleryItem / Show-PowerShellGalleryItem are planned to be renamed to *Package with backward-compatible aliases; the spec documents this migration.
  • Implementation of the v1 spec commands will follow in subsequent PRs.

Related docs

Defines the initial public API for the PowerShellGallery module:
- API metadata discovery
- Package search and metadata retrieval
- Listing management (hide/show) for package owners

Includes naming conventions, parameter design, error handling,
testing strategy, and migration notes from current stubs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

- Replace .github/workflows/Process-PSModule.yml with the v8 caller contract
  (exact triggers, permissions, concurrency, and secrets; no secrets inherit).
- Migrate tests to Pester 6: add #Requires, suppress PSSA attributes, and
  update assertions to v6-compatible syntax.
- Add missing repository baseline files: AGENTS.md, CONTRIBUTING.md, and
  .github/pull_request_template.md.
- Migrate documentation from MkDocs to Zensical:
  - Remove .github/mkdocs.yml
  - Add docs/zensical.toml with docs_dir = 'content'
  - Add docs/content/index.md and move docs/specs/v1.md to
    docs/content/specs/v1.md
  - Copy icon/icon.png to docs/content/Assets/icon.png
  - Ignore generated docs/site/

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title docs(specs): add PowerShellGallery v1 functional specification docs(specs): add v1 spec and upgrade Process-PSModule caller to v8 Aug 28, 2026
@psmodule-s-shelly

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Pattern Description
^src/ Matches files where path matches this pattern
^README\.md$ Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

contents: read
pages: write
id-token: write
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8
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