Refactor repo-memory clone script to separate shell file#8002
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor clone script for repo-memory branch to .sh file
Refactor repo-memory clone script to separate shell file
Dec 28, 2025
Contributor
|
🤖 ALERT: Smoke Copilot No Firewall failed. ANOMALY_DETECTED. REPAIR_REQUIRED. |
Contributor
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
Contributor
|
💀 Blimey! Smoke Copilot Safe Inputs failed and walked the plank! No treasure today, matey! ☠️ |
Contributor
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
Contributor
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
Contributor
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Contributor
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
Contributor
|
📰 DEVELOPING STORY: Smoke Copilot Playwright reports failed. Our correspondents are investigating the incident... |
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.
Extracts inline bash code for cloning repo-memory branches from Go into a standalone shell script following the existing pattern used by other setup scripts.
Changes
New script:
actions/setup/sh/clone_repo_memory_branch.sh--depth 1 --single-branch)Simplified Go code:
pkg/workflow/repo_memory.goBRANCH_NAME,TARGET_REPO,MEMORY_DIR,CREATE_ORPHAN)Updated tests:
pkg/workflow/repo_memory_test.goExample
Before (inline bash):
After (script call):
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:
https://api.github.com/user/usr/bin/gh gh api user --jq .login -json GO111MODULE ux-amd64/bin/go GOINSECURE GOMOD l/linux_amd64/co/tmp/go-build3823752113/b291/gh-aw.test go env -json GO111MODULE ux-amd64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE ux-amd64/pkg/tool/linux_amd64/link(http block)/usr/bin/gh gh api user --jq .login k/gh-aw/gh-aw/pkg/gitutil/gitutil.go k/gh-aw/gh-aw/pkg/gitutil/gitutil_test.go /bin/sh -p main mpile /bin/sh -c k/gh-aw/gh-aw/.github/workflows mpile /usr/bin/git l -c=4 l/linux_amd64/codownload git(http block)/usr/bin/gh gh api user --jq .login tags/v5 go by/73e6c0a45c2020a09fb460dda16bf1b712af232604d49889bf9e04a798baf8a0/log.json l GO111MODULE 0.1-go1.25.0.lindownload git bf9e�� p-deno.git go /usr/bin/git -json GO111MODULE ux-amd64/pkg/toolist git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.