Skip to content

feat(ci): sync labels and shared config from .github - #4567

Merged
Crow-Control merged 1 commit into
mainfrom
chore/sync-shared-config
Nov 7, 2026
Merged

Crow-Control merged 1 commit into
mainfrom
chore/sync-shared-config

Conversation

@Crow-Control

Copy link
Copy Markdown
Member

Description

Adds the combined workflow. It runs the org label sync hourly and copies CLAUDE.md, .claude/agents, .claude/skills and .devcontainer from trueforge-org/.github daily, and both run on manual dispatch.

Prepares for the shared CLAUDE.md, which no longer imports .github/copilot-instructions.md or describes the ContainerForge rules:

  • Adds .claude/rules/ with a symlink to each .github/instructions/*.instructions.md file, loaded through new paths: frontmatter that matches applyTo:. python-runtime and go-runtime have no applyTo, so they use apps/**.
  • Adds .claude/rules/copilot-instructions.md, a symlink with no paths:, so those rules stay always loaded as they are today.
  • Removes label-sync.yaml, because the org sync would otherwise fight it. labeler.yaml and just generate-label-config stay.

The daily copy overwrites this repository's CLAUDE.md and .devcontainer. Local edits to those paths will be lost, so they need to be made in trueforge-org/.github. Labels not in the org file are deleted.

Depends on trueforge-org/.github#22. Merge that first, because it migrates this repository's labels into the org file and adds the files this workflow copies.
⚙️ Type of change

  • 🧰 New container/image
  • 🛠️ Update existing container/image
  • 🐛 Bugfix (Dockerfile, scripts, chart values)
  • 🔃 Refactor (no functional change)
  • ⚠️ Breaking change (image tag, chart API change)

🧪 How Has This Been Tested?

The workflow parses as YAML, and the copy commands were run against a scratch repository. Checked that every symlink resolves and each paths: matches its applyTo:. No container was built, as no image changed. The workflow has not run in Actions yet: after merging, trigger it manually and check that OR_PAT can push to the default branch.

  • ✅ Built container locally
  • ✅ Ran container tests (unit/integration)
  • ✅ Verified image in staging environment
  • ✅ Checked container logs for errors

📃 Notes

The copy never deletes files, so agents removed from the source stay here until removed by hand. New apps need their app/<name> label added to trueforge-org/.github, because the org sync deletes any label missing from that file.

🤖 This PR is AI generated.

✔️ Checklist:

  • ⚖️ Changes follow the style guidelines of this project
  • 👀 Self-review completed
  • ✍️ Dockerfile and scripts are clear and accurate
  • 🔗 Internal references (base images) are correct
  • 🧪 Test instructions included
  • 🏷️ The PR title follows the convention:
    • feat(page):
    • fix(content):
    • docs(site):
    • chore(site):

Please don't blindly check all the boxes. Read them and only check those that apply.
Those checkboxes are there for the reviewer to see what is this all about and
the status of this PR with a quick glance.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Kjeld Schouten <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Summary

Summary by CodeRabbit

  • Chores
    • Updated development guidance to apply across the relevant application files and made it available through Claude Code.
    • Added scheduled and manually triggered automation to synchronize repository labels and shared development configuration.
    • Removed the previous standalone label-sync workflow.

Instruction files now declare path patterns and have corresponding Claude Code rule symlinks. The label-sync workflow is replaced by a workflow that syncs labels and can copy shared configuration into the target repository.

Changes: Instruction Scopes and Claude Code Rules

Layer / File(s) Summary
Instruction paths and Claude Code links
.github/instructions/*, .claude/rules/*, AGENTS.md
Instruction front matter adds or replaces paths patterns for apps/** content. Matching .claude/rules/ symlinks point to the instruction files. AGENTS.md documents the requirement to keep paths synchronized with applyTo and add links for new instruction files.

Label and Shared Configuration Workflows

Layer / File(s) Summary
Scheduled label synchronization
.github/workflows/label-sync.yaml, .github/workflows/schedule-sync-labels.yaml
The previous label-sync workflow is removed. The new workflow syncs labels on manual runs or hourly at minute 0 and 30, removing labels absent from shared configuration.
Shared configuration checkout and push
.github/workflows/schedule-sync-labels.yaml
Outside the shared configuration repository, a manual run or the 00:30 schedule checks out the target default branch and shared repository main. The job copies four configuration paths and commits, rebases, and pushes when those paths have staged changes.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Trigger as Manual or scheduled trigger
  participant Workflow as schedule-sync-labels workflow
  participant Shared as Shared repository main
  participant Target as Target repository default branch
  Trigger->>Workflow: Start eligible shared-config job
  Workflow->>Shared: Check out main
  Workflow->>Target: Check out default branch
  Workflow->>Target: Copy and stage four configuration paths
  Workflow->>Target: Commit, rebase, and push if changes exist
Loading
Merge Risk: Low · up to 1d469

Add matching applyTo fields to the runtime rules. The remaining merge risk is bounded to those instructions not loading in Copilot code review; no failure of the shared-configuration workflow is established.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Crow-Control
Crow-Control merged commit 2b4784c into main Nov 7, 2026
6 of 7 checks passed
@Crow-Control
Crow-Control deleted the chore/sync-shared-config branch November 7, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant