Skip to content

Add fork sync workflow - #1

Merged
wickedyoda merged 1 commit into
gl-mt3600befrom
add/sync-fork-workflow
Oct 13, 2026
Merged

wickedyoda merged 1 commit into
gl-mt3600befrom
add/sync-fork-workflow

Conversation

@wickedyoda

Copy link
Copy Markdown

Adds sync-fork.yml workflow to automatically sync this fork from its upstream parent repository daily at 04:00 UTC.

The workflow:

  • Auto-detects the upstream parent repo via GitHub API
  • Fetches and merges upstream changes into the fork's default branch
  • Preserves local .github/workflows/ files (protect_workflows: true by default)
  • Force-pushes the merged result (overwrites fork history with upstream)

Note: Any local changes outside .github/workflows/ will be overwritten during sync.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 16:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Branch targeting, option handling, and force-sync behavior can produce incorrect or destructive synchronization.

1 open finding
What changed in this PR

Adds a scheduled and manually triggered workflow for synchronizing this fork with its upstream repository.

Changes:

  • Detects the upstream repository and default branch.
  • Merges or force-syncs upstream changes.
  • Optionally preserves workflows and generates a run summary.
File Description
.github/​workflows/​sync-fork.yml Implements upstream fork synchronization and reporting.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +39 to +41
DEFAULT_BRANCH=$(gh api repos/$PARENT --jq '.default_branch')
echo "repo=$PARENT" >> "$GITHUB_OUTPUT"
echo "branch=$DEFAULT_BRANCH" >> "$GITHUB_OUTPUT"
@wickedyoda
wickedyoda merged commit bccdec1 into gl-mt3600be Oct 13, 2026
4 of 5 checks passed
@wickedyoda
wickedyoda deleted the add/sync-fork-workflow branch October 13, 2026 16:33
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