Skip to content

Migrate user-attachments images to local repository#113

Merged
FidelusAleksander merged 4 commits intomainfrom
copilot/migrate-user-attachments-images
Feb 10, 2026
Merged

Migrate user-attachments images to local repository#113
FidelusAleksander merged 4 commits intomainfrom
copilot/migrate-user-attachments-images

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 6, 2026

Image Migration Task Plan

  • Create .github/images/ directory
  • Download user-attachments image from step 4 with descriptive filename
  • Update markdown reference in .github/steps/4-step.md to use relative path
  • Update start-exercise workflow version to v0.8.1 in .github/workflows/0-start-exercise.yml
  • Ensure post_next_step_content job checks out main branch to get latest changes
  • Verify all changes are correct and no broken links exist

Summary

Successfully migrated the GitHub user-attachments image to the local repository:

  • Downloaded image to .github/images/add-a-suggestion-button.png with descriptive filename based on alt text
  • Updated markdown reference in .github/steps/4-step.md to use relative path ../images/add-a-suggestion-button.png
  • Updated start-exercise workflow version to v0.8.1 (which supports relative links)
  • Added explicit ref: main to checkout step in post_next_step_content job to ensure it gets the latest commit from start_exercise workflow
  • Preserved all other external images (octodex) as absolute URLs
  • Only modified the start-exercise workflow reference, leaving other exercise-toolkit references unchanged
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.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…xercise version

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate external user-attachments images to local repository Migrate user-attachments images to local repository Feb 6, 2026
@FidelusAleksander FidelusAleksander requested a review from a team February 6, 2026 12:59
@FidelusAleksander
Copy link
Copy Markdown
Contributor

@copilot Update start-exercise reusable workflow that is used to v0.8.1 version

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

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 10, 2026

@copilot Update start-exercise reusable workflow that is used to v0.8.1 version

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

Updated start-exercise workflow to v0.8.1 in commit 7c27b26. Only the start-exercise version reference was modified; all other exercise-toolkit references remain unchanged.

@FidelusAleksander
Copy link
Copy Markdown
Contributor

@copilot Ensure that the repository is checked out at the main branch during the "Checkout" step in the .github/workflows/0-start-exercise.yml file in the post_next_step_content job

This will ensure the current repository is checked out with the commit that was pushed by the previous start-exercise reusable workflow

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 10, 2026

@copilot Ensure that the repository is checked out at the main branch during the "Checkout" step in the .github/workflows/0-start-exercise.yml file in the post_next_step_content job

This wil...

Added ref: main to the Checkout step in post_next_step_content job in commit 3ffdfec. This ensures the job gets the latest commit pushed by the start_exercise workflow.

@FidelusAleksander FidelusAleksander marked this pull request as ready for review February 10, 2026 09:20
Copilot AI review requested due to automatic review settings February 10, 2026 09:20
@FidelusAleksander FidelusAleksander merged commit 6b8900b into main Feb 10, 2026
@FidelusAleksander FidelusAleksander deleted the copilot/migrate-user-attachments-images branch February 10, 2026 09:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates a GitHub user-attachments image used in the exercise steps into the repository so it’s reliably available via relative links, and updates the Step 0 workflow to a toolkit version that supports rendering those relative image paths.

Changes:

  • Added a locally hosted screenshot under .github/images/.
  • Updated .github/steps/4-step.md to reference the local image via a relative path.
  • Bumped the start-exercise reusable workflow to v0.8.1 and ensured the post job checks out main.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/0-start-exercise.yml Updates start-exercise workflow version and checks out main for the post job so it reads the latest content.
.github/steps/4-step.md Replaces the external user-attachments image URL with a repo-relative path.
.github/images/add-a-suggestion-button.png Adds the migrated screenshot asset used by Step 4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

4 participants