Skip to content

Migrate user-attachments images to local storage and update to toolkit v0.8.0#9

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/migrate-external-images
Draft

Migrate user-attachments images to local storage and update to toolkit v0.8.0#9
Copilot wants to merge 3 commits intomainfrom
copilot/migrate-external-images

Conversation

Copy link

Copilot AI commented Feb 5, 2026

Migrates GitHub user-attachments image references to local repository storage to improve reliability and prepare for exercise-toolkit v0.8.0 which adds relative link support.

Changes

  • Image migration: Moved user-attachments/assets/8aa4a918-c877-4214-9efe-c9a99ca6421b to .github/images/create-branch-screenshot.png
  • Markdown update: Changed 1-step.md image reference from absolute URL to relative path ../images/create-branch-screenshot.png
  • Workflow upgrade: Updated start-exercise reusable workflow from @v0.7.3 to @v0.8.0 in 0-start-exercise.yml
  • Preserved external images: Left octodex and other non-user-attachment images as absolute URLs

Note

Network restrictions prevented downloading the actual image. Placeholder PNG created with download instructions in .github/images/README.md. Other exercise-toolkit references remain at @v0.6.0 as intended.

- <img width="400" alt="create branch screenshot" src="https://github.com/user-attachments/assets/8aa4a918-c877-4214-9efe-c9a99ca6421b" />
+ <img width="400" alt="create branch screenshot" src="../images/create-branch-screenshot.png" />

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:

  • github-production-user-asset-6210df.s3.amazonaws.com
    • Triggering command: /usr/bin/curl curl -L REDACTED -o .github/images/create-branch-screenshot.png (dns block)
    • Triggering command: /usr/bin/wget wget REDACTED -O .github/images/create-branch-screenshot.png (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Image Migration Task: Migrate External Images to Local Repository

Objective

Migrate GitHub user-attachments image references to local repository files in .github/images/ with descriptive filenames and relative links.

Task Steps

1. Find All User-Attachments Image References

Search .github/steps/*.md files for user-attachments image URLs:

  • https://github.com/user-attachments/assets/*

Important: Only migrate user-attachments images. Leave other external images (octodex, img.shields.io, etc.) as absolute URLs.

2. Create Images Directory

mkdir -p .github/images

3. Download and Rename Images

For each user-attachments image:

Download the image:

curl -L "<image-url>" -o ".github/images/<descriptive-name>.png"

Naming convention:

  • Use kebab-case (lowercase with hyphens)
  • Name based on content or alt text
  • Keep it descriptive and clear
  • Preserve original file extension

Examples:

  • Alt text "search box with 'python' value" → python-search-box.png
  • Alt text "target branch settings" → branch-protection-target-settings.png
  • Generic "image" with button context → new-workflow-button.png

Do not download:

  • Octodex images (octodex.github.com)
  • Badge images (img.shields.io)
  • Any other external hosted images

4. Update Markdown References

Replace user-attachments URLs with relative paths:

Find pattern:

src="https://github.com/user-attachments/assets/..."

Replace with:

src="../images/descriptive-filename.png"

Important:

  • Preserve all other attributes (width, alt text, etc.)
  • Do not change other external image URLs (octodex, shields.io, etc.) - keep them as absolute references

5. Verify Changes

  • All user-attachments images downloaded successfully to .github/images/
  • All filenames are descriptive (no generic names or UUIDs)
  • All markdown files updated with relative paths for user-attachments images
  • Relative paths are correct (../images/ from .github/steps/)
  • No broken image links
  • Zero net new files added (only images in .github/images/ should be new)
  • Other external images (octodex, shields.io, etc.) remain as absolute URLs

6. Update start-exercise reusable workflow version

Update start-exercise reusable workflow that is used to v0.8.0 version which is the first release of exercise-toolkit that supports relative links.

Important: Only update the start-exercise version reference. Do not modify any other references to exercise-toolkit elsewhere in the repository.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 5, 2026 15:47
…w version

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate user-attachments images to local repository Migrate user-attachments images to local storage and update to toolkit v0.8.0 Feb 5, 2026
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