ghi icon indicating copy to clipboard operation
ghi copied to clipboard

GHI_REPO Should override local repository

Open pathawks opened this issue 6 years ago • 1 comments

I want to use ghi in a cron job to open a new issue when certain errors are detected.

I am not running ghi inside any local Git repos. I have set GITHUB_USER, GHI_TOKEN and GHI_REPO environment variables.

I can list issues from my repository with ghi list, but when I try to modify an issue, ghi fails with the message:

~/bin/ghi:1142:in `authorize!': undefined method `repo' for GHI:Module (NoMethodError)
	from ~/bin/ghi:111:in `rescue in execute'
	from ~/bin/ghi:26:in `execute'
	from ~/bin/ghi:3157:in `<main>'

pathawks avatar Feb 15 '18 17:02 pathawks