github-upload-image-to-pr

Upload local images to GitHub Pull Requests via the GitHub API and gh CLI.

308|76|Updated Jul 25, 2013
One-click install
npx skills add https://github.com/bikeindex/bike_index --skill github-upload-image-to-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-upload-image-to-pr
Source: https://github.com/bikeindex/bike_index/tree/main/.claude/skills/github-upload-image-to-pr
Command: npx skills add https://github.com/bikeindex/bike_index --skill github-upload-image-to-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of uploading images to GitHub Pull Requests, eliminating the need for manual uploads and providing a streamlined way to document changes.

Core Features & Use Cases

  • Automated Image Upload: Uploads local images to a GitHub PR either in the PR body or as a comment.
  • Integration with GitHub CLI: Uses the gh CLI to interact with GitHub's API for image uploads.
  • Use Case: Perfect for documenting bug fixes, UI changes, or test results within an existing PR without leaving the command line.

Quick Start

To upload an image to the current PR, run: github-upload-image-to-pr path/to/image.png

Frequently Asked Questions about github-upload-image-to-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a local image to a GitHub Pull Request from the command line?

You can upload a local image to a GitHub Pull Request by running the github-upload-image-to-pr script with your image file path. It uses the gh CLI to interact with the GitHub API, embedding the image directly into the PR body or as a comment for seamless documentation.

Can I use the gh CLI to automate image uploads for PR documentation?

Yes, automating image uploads for PR documentation is fully supported using the gh CLI. The Skill leverages the GitHub API via gh to upload local image files, eliminating manual uploads and streamlining the process of documenting UI changes or test results.

Do I need a GitHub token to upload images to a PR with this automation?

Yes, a valid GitHub token is required to authenticate API requests when uploading images to a Pull Request. Along with the token, you need the gh CLI installed and a local image file to execute the automated documentation upload successfully.

What is the best way to document UI changes in a GitHub PR without leaving the terminal?

The best way to document UI changes without leaving the terminal is using an automated image upload script. This Skill uploads local images directly to your PR via the GitHub API and gh CLI, adding visual documentation to the PR body or comments seamlessly.

Does this automated image upload script work with issue tracking in GitHub PRs?

Yes, the automated image upload script works for issue tracking within GitHub PRs. By uploading local images via the GitHub API and gh CLI, it supports documenting bug fixes, UI changes, and test results directly in the PR body or as comments.