Adds screenshots and recordings to GitHub issues, pull requests and comments through native CLI attachment support, with version and visibility checks.
gh-attachments
Attaches images or videos to GitHub issues, pull requests and comments through `gh`. Use when an issue, PR or comment should include a screenshot or recording, and before concluding that gh can't upload files.
معلومات المصدر
- المستودع
- itsramiel/Software-Engineering
- آخر نشاط في المصدر
- ٦ نوفمبر ٢٠٢٦ في ١٩:٢٠
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ٠
- التفرعات
- ٠
gh-attachments: GitHub media uploads
Guides image and video attachments to GitHub issues, pull requests and comments using the native gh --attach flag.
Uses
For attaching a local screenshot or recording while creating, editing or commenting on an issue or pull request. It is not a general-purpose file uploader.
Prerequisites
Native GitHub CLI 2.99.0+ with --attach listed in the specific command’s help, an authenticated account and repository push access. Official release support is GitHub.com and GitHub Enterprise Cloud; no CLI extension is required for this native flag.
How to use
Provide the local image/video path and intended repository, issue/PR and action. Confirm gh version and the chosen command’s help before use. The supported commands are gh issue create/edit/comment and gh pr create/edit/comment; --attach uploads the media and inserts or rewrites its URL in the body. Confirm the target, content and visibility before invoking a posting or editing command.
Limitations
This sends media to GitHub and creates or edits externally visible content. Public-repository uploads can be accessed without authentication; private/internal uploads are viewable by people with repository access according to GitHub’s docs. Do not infer support in older gh versions or on Enterprise Server. The CLI supports image/video uploads, not every attachment type the browser accepts. An issue-create command can exit nonzero after creating an issue with partial upload success; inspect the returned URL/result before retrying.
Sources
- skills/github/gh-attachments/SKILL.md
- README.md
- x.com/ElwanRami/status/2118787073595396164
- github.com/cli/cli/releases/tag/v2.99.0
- gh.io/gh-attach
- docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files
- cli.github.com/manual/gh_issue_create
- skills/github/gh-attachments/SKILL.md
خيارات التثبيت
يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.
مراجعة ملفات المصدر
اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.
عرض SKILL.md
- name
- gh-attachments
- description
- Attaches images or videos to GitHub issues, pull requests and comments through `gh`. Use when an issue, PR or comment should include a screenshot or recording, and before concluding that gh can't upload files.