Skip to content

feat: add sync-main-to-edge workflow + .gitupstream - #198

Merged
nsheaps merged 3 commits into
mainfrom
feat/edge-sync-workflow
May 28, 2026
Merged

nsheaps merged 3 commits into
mainfrom
feat/edge-sync-workflow

Conversation

@alex-nsheaps

@alex-nsheaps alex-nsheaps Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the edge-sync consumer workflow + .gitupstream config to this repo. The workflow delegates to the reusable workflow in nsheaps/github-actions#24; the config lists which */edge branches to keep in sync with main.

  • .github/workflows/sync-main-to-edge.yaml — fires on push-to-main (and workflow_dispatch)
  • .gitupstream — YAML config listing edge targets

The workflow file is also distributed by nsheaps/.github#63 via sync-files; we're seeding it here so the repo works standalone and sync-files will pick up from there idempotently.

Depends on

Test plan

  • Merge after github-actions#24 lands
  • Verify next push to main triggers the workflow and syncs configured edge branches (no-op when targets already up-to-date or missing)

Open Questions

  1. For repos without an existing edge branch, .gitupstream currently has sync: [] as a placeholder. Should I instead pre-seed with alex/edge even though the branch doesn't exist? The reusable workflow skips missing targets, so either works.
  2. The workflow uses: points at @main (the reusable). Want a SHA-pin instead for reproducibility?

Refs nsheaps/.ai-agent-alex#685.

🤖 Generated with Claude Code

Decisions (Q1/Q2/Q3 follow-up 2026-05-28)

Nate answered the original Open Questions (Discord msg):

  • Q1 (ref pinning): Keep uses: ...@main for the reusable.
  • Q2 (placeholder .gitupstream): Seed each agent repo with <agent>/edge target + create the branch. Done in this PR set; alex/edge, jack/edge, henry/edge now exist on their respective repos.
  • Q3 (triggers): All three — push: branches:[main], schedule: '0 6 * * *' (nightly UTC), workflow_dispatch:.

Full follow-up: https://github.com/nsheaps/.ai-agent-alex/blob/main/docs/journal/2026/05/28/edge-sync-q2q3-followup.md

alex-nsheaps Bot and others added 3 commits May 28, 2026 16:07
Record Nate's PR #192 review comment, the fix commit ef3c575, and
mark the Step 0 validation item as complete.

Co-Authored-By: Agent Alex Picard <alex-nsheaps[bot]@users.noreply.github.com>
Calls the reusable workflow at
nsheaps/github-actions/.github/workflows/sync-main-to-edge.yaml@main
on every push to main, syncing main into the */edge branches listed in
.gitupstream.

Depends on nsheaps/github-actions#24 landing first.

Refs nsheaps/.ai-agent-alex#685.

Co-Authored-By: Agent Alex Picard <alex-nsheaps[bot]@users.noreply.github.com>
@alex-nsheaps alex-nsheaps Bot added the request-review Force an AI code review on a draft PR (open non-draft PRs review automatically) label May 28, 2026
@nsheaps
nsheaps merged commit 025d404 into main May 28, 2026
3 of 4 checks passed
@nsheaps
nsheaps deleted the feat/edge-sync-workflow branch May 28, 2026 20:54
nsheaps pushed a commit that referenced this pull request Aug 11, 2026
apply-repo-settings.yaml and sync-main-to-edge.yaml had their Source:
comment fixed on this branch back when nsheaps/.github's canonical
templates/ layout was still flat. .github later restructured to nest
templates under destination-mirroring paths (#198), and main here
already picked up the corrected nested-path comment via the sync --
this branch's stale flat-path version would have reverted it on merge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016wPHfMEiz9Bjau7twwZybf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

request-review Force an AI code review on a draft PR (open non-draft PRs review automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant