This Node app batch creates issues for GitHub, using a directory containing images as a start point. Each image is turned into a separate issue, using the filename as a title.
As GitHub doesn't currently let you upload images directly, they are uploaded to Imgur as private images, and URLs used to create the issues.
- Node
- A GitHub OAuth token
- An Imgur client ID
npm install -g img2iss
Running the app with the -s
or --save
option will also save the GitHub token and username, and Imgur ID for future use. See Examples.
$ img2iss [user|org/]<repo> [options]
-d, --directory <directory> : Specifies a target directory. Defaults to the current directory
-g, --github-token <token> : Set the GitHub token to be used
-u, --github-user <username> : Set your GitHub username
-i, --imgur-id <id> : Set the Imgur ID to be used
-s, --save : Save GitHub and Imgur options as defaults and exit
Setup using foo
as the Imgur ID, bar
as the GitHub OAuth token, and rogerhutchings
as the GitHub username:
img2iss -i foo -g bar -u rogerhutchings -s
Create issues from all the screenshots in the current working directory for the rogerhutchings/testrepo
repo:
img2iss rogerhutchings/testrepo
Create issues from all the screenshots in the images
directory for the rogerhutchings/othertestrepo
repo:
img2iss rogerhutchings/othertestrepo images
Copyright (C) 2014 Roger Hutchings
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.