CLI create new issue for git repo on private Gogs server from command line
- 12 Jun 2017: Post was created (diff)
I created a utility for creating new issues in git repos on my Gogs installation. It uses
git remote get-url origin in the current working directory to get the server address of your Gogs server. If origin doesn’t point to a gogs instance, but instead is something totally different, I don’t know what will happen, but maybe you will find out.
$ cd ~/mygitrepos/bar-foo
Add origin if it’s not already there
$ git remote add origin ssh://my-gogs-server:10022/sshow/bar-foo
Create a new issue
$ gissue Rename repo to foo-bar https://my-gogs-server/sshow/bar-foo/issues/1
If everything works out, it prints the URL to the new issue. If it doesn’t, hopefully it will print some errors to point you in the right direction. Please leave a comment if you think something should be fixed.
If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).
Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.