gh-attach – CLI से GitHub issue/PR में image और file attach करें
(github.com/sudosubin)GitHub issue या PR में image attach करने के लिए अब तक वेब UI पर सीधे जाकर upload करना पड़ता था। इसकी वजह यह है कि attachment file upload को support करने वाला कोई official API नहीं है.
gh-attach एक gh CLI extension है, जो local browser में stored login cookies को पढ़कर web जैसा ही upload API call करता है।
$ gh extension install sudosubin/gh-attach
$ gh attach ./image.png -R owner/repo
# https://github.com/user-attachments/assets/...
- Chrome, Firefox, Safari जैसे प्रमुख browsers की cookies support करता है (Profile/Container specify किया जा सकता है)
- logged-in GitHub account से match करने वाला session अपने-आप चुनता है
--json,--jq,--templateoptions के जरिए script integration संभव- Go में लिखा गया,
ghextension या standalone binary (Homebrew/GitHub) के रूप में distribute किया जाता है
हर बार screenshot manually attach करना झंझट लगता था, इसलिए इसे बनाया। PR बनाते समय agents को diagram और screenshot अपने-आप upload करवाने में भी यह उपयोगी है।
फ़ीडबैक का स्वागत है।
अभी कोई टिप्पणी नहीं है.