🚀 [Feature]: File distribution service for organization repositories#6
Draft
🚀 [Feature]: File distribution service for organization repositories#6
Conversation
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 09:52
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add file distribution service for organization repos
Implement centralized file distribution service for organization repositories
Feb 19, 2026
Marius Storhaug (MariusStorhaug)
requested changes
Feb 19, 2026
Repos/Action/Custom Instructions/.github/instructions/action.instructions.md
Outdated
Show resolved
Hide resolved
Repos/Module/Custom Instructions/.github/instructions/md.instructions.md
Show resolved
Hide resolved
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 11:12
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Marius Storhaug (MariusStorhaug)
requested changes
Feb 20, 2026
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 20, 2026 12:08
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Marius Storhaug (MariusStorhaug)
requested changes
Feb 20, 2026
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 20, 2026 12:23
View session
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.
The Distributor service provides a centralized, convention-based mechanism for syncing shared files across all repositories in the PSModule organization. Repositories subscribe to file sets via organization-level custom properties (
TypeandSubscribeTo), and a scheduled GitHub Actions workflow automatically creates pull requests when managed files change. This is the first pilot release of the service.Convention-based file set structure
File sets are organized under a two-level folder hierarchy at
Repos/{Type}/{Selection}/, where each selection folder mirrors the root of a target repository. The folder structure itself is the configuration — no settings files are needed.The initial release includes file sets for two repository types:
Module (10 file sets): Custom Instructions, Prompts, Hooks, CODEOWNERS, dependabot.yml, PSModule Settings, Linter Settings, gitattributes, gitignore, License
Action (4 file sets): Custom Instructions, License, gitattributes, gitignore
Subscription model
Repositories opt in by setting two organization-level custom properties:
Type(single-select):Module,Action,Template,Workflow,Docs,OtherSubscribeTo(multi-select): Names matching the file set folders under the selected typeRepository admins manage their own subscriptions — no central configuration changes are needed to onboard a new repository.
Automated sync workflow
A daily scheduled workflow (also triggerable via
workflow_dispatch) authenticates as the PSModule Custo GitHub App, discovers file sets, queries repository subscriptions, and for each subscribing repository:managed-files/updatebranch⚙️ [Maintenance]: Sync managed files,NoReleaselabel)Repositories already in sync are skipped entirely. Existing PRs are updated in place via force-push.
GitHub Copilot hooks
The Hooks file set includes a complete GitHub Copilot agent hooks implementation with
hooks.jsonconfiguration and scripts forsessionStart,sessionEnd, anduserPromptSubmittedevents (both bash and PowerShell).What does not change
Files removed from a file set are not deleted from target repositories — they become unmanaged. The service only creates and updates files.