Repository navigation
feat!: publish as IntuneGraphKit, with a tag-driven Gallery release - #6
Merged
Merged
Conversation
`IntuneGraph` on the PowerShell Gallery belongs to an unrelated module by another author - one that uploads, assigns and removes Intune apps - so the README's `Install-Module IntuneGraph` installed that instead of this read-only tool. A Gallery package name has to equal the module name, so the module is renamed IntuneGraphKit. Cmdlet names, the graph.json format, the MCP server name and the repository keep the IntuneGraph name. With the name settled, the rest of #5: - manifest: CompatiblePSEditions, PSEdition_* tags, IconUri, a Description matching the repository description, and a freshly generated GUID - build.ps1 -Task Publish, reading the key from PSGALLERY_API_KEY only - release.yml: a v* tag re-runs CI, checks the tag matches ModuleVersion, then publishes - CI covers Windows PowerShell 5.1, which CONTRIBUTING already claimed - a Pester check on the metadata the Gallery listing shows Refs #5
This was referenced Sep 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements #5, with one change of plan the issue could not have known about.
The name was taken
IntuneGraphon the PowerShell Gallery already exists: an unrelated module by another author (five versions, the latest January 2025) that uploads, assigns and removes Intune apps. So the README's first command,Install-Module IntuneGraph, has not been failing. It has been installing that module, write cmdlets included, on the strength of a README that promises read-only.A Gallery package name has to equal the module name, so publishing under the project name was never available. The module is now IntuneGraphKit. The cmdlet names, the
graph.jsonformat, the MCP server name (intunegraph), the repository, the site and the report title keep the IntuneGraph name. The reasoning is recorded indocs/discoverability.md, and the README install block carries a one-line note naming the other package.What is in here
src/IntuneGraphbecomessrc/IntuneGraphKit(done withgit mv, so history follows). Every import, test path, launcher, fixture generator,.gitignorerule, doc and the site install snippet are updated.CompatiblePSEditions = Desktop, Core, plus thePSEdition_DesktopandPSEdition_Coretags.IconUripointing at the newdocs/img/icon.png, drawn bytools/icon/New-IntuneGraphIcon.ps1in the viewer's palette.Descriptionnow matches the repository description.GUIDreplaces the hand-typed placeholder. First publish is the last point where changing it is free.build.ps1 -Task Publish: callsPublish-PSResourceand reads the key fromPSGALLERY_API_KEYonly. There is no parameter for it, so no default value and nothing in shell history..github/workflows/release.yml: on av*tag it re-runs the full CI matrix as a reusable workflow, checks the tag equalsModuleVersion, and only then publishes. The tag reaches the script throughenv, never interpolated into it.pwsh, and 5.1 is the manifest's floor.docs/mcp.mdare updated.Verification
On Windows PowerShell 5.1:
./build.ps1: PSScriptAnalyzer clean, 38/38 tests passing (37 existing plus the new metadata check).srconPSModulePath,Import-Module IntuneGraphKitresolves by name. It exports all 10 commands, andExport-IntuneGraph -DemoData→Get-IntuneTarget→Show-IntuneGraphruns end to end (DEV-FIN-01 -> SG-Finance -> SG-AllStaff).Not verified locally:
Before the first release
PSGALLERY_API_KEYrepository secret (gh secret set PSGALLERY_API_KEYprompts for it).Import-Modulefor anyone running from a clone. Move the Unreleased entries under it, setModuleVersionto match, and tag the merge commit.Until that first publish, the README's PSGallery badge reads "not found", and the
IconUriresolves only once this is onmain.Refs #5. It closes once
Install-Module IntuneGraphKitworks from a clean machine.