Upload images to GitHub Issues/PRs and get URLs without creating comments. Use when: - sharing test screenshots to GitHub Issues/PRs - creating bug reports with images - UI review support - uploading images from automated scripts or CI/CD pipelines - posting screenshots from Playwright/E2E tests.
GitHub Issue/PR に画像をアップロードし、URL を返す gh CLI の拡張機能。
gh-img-upload は GitHub CLI 拡張機能で、Issue や Pull Request に画像をアップロードし、その URL を返します。
コメントは作成・変更されず、純粋にアップロードされた画像の URL のみが返されます。
Agent が以下のタスクを実行する際に使用:
gh issue comment や gh pr comment を使用gh CLI (認証済み)playwright-cli (npm install -g @playwright/cli)# 拡張機能のインストール
gh extension install tomoasleep/gh-img-upload
# playwright-cli のインストール
npm install -g @playwright/cli
# GitHub へのログイン(初回のみ、--headed が必須)
gh img-upload login --headed
# GitHub Enterprise の場合
gh img-upload login --host github.mycompany.com --headed
# Issue に画像をアップロード
gh img-upload upload --issue 123 --image ./screenshot.png
# 別リポジトリを指定
gh img-upload upload --repo owner/repo --issue 456 --image ./image.png
gh img-upload upload --issue 123 --image ./before.png --image ./after.png
gh img-upload upload --issue 123 --image ./test.png --json
# {"urls": ["https://github.com/user-attachments/assets/xxx"], "markdown": [""]}
# ブラウザを表示して動作確認
gh img-upload upload --issue 123 --image ./test.png --headed
# 現在のログイン状態を表示
gh img-upload status
# JSON 形式で確認
gh img-upload status --json