{"action":"created","issue":{"url":"https://api.github.com/repos/metomi/rose/issues/1858","repository_url":"https://api.github.com/repos/metomi/rose","labels_url":"https://api.github.com/repos/metomi/rose/issues/1858/labels{/name}","comments_url":"https://api.github.com/repos/metomi/rose/issues/1858/comments","events_url":"https://api.github.com/repos/metomi/rose/issues/1858/events","html_url":"https://github.com/metomi/rose/pull/1858","id":141330211,"number":1858,"title":"rosie go: better gpg-agent cache expiry handling","user":{"login":"benfitzpatrick","id":1138333,"avatar_url":"https://avatars.githubusercontent.com/u/1138333?v=3","gravatar_id":"","url":"https://api.github.com/users/benfitzpatrick","html_url":"https://github.com/benfitzpatrick","followers_url":"https://api.github.com/users/benfitzpatrick/followers","following_url":"https://api.github.com/users/benfitzpatrick/following{/other_user}","gists_url":"https://api.github.com/users/benfitzpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/benfitzpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfitzpatrick/subscriptions","organizations_url":"https://api.github.com/users/benfitzpatrick/orgs","repos_url":"https://api.github.com/users/benfitzpatrick/repos","events_url":"https://api.github.com/users/benfitzpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/benfitzpatrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kaday","id":3693326,"avatar_url":"https://avatars.githubusercontent.com/u/3693326?v=3","gravatar_id":"","url":"https://api.github.com/users/kaday","html_url":"https://github.com/kaday","followers_url":"https://api.github.com/users/kaday/followers","following_url":"https://api.github.com/users/kaday/following{/other_user}","gists_url":"https://api.github.com/users/kaday/gists{/gist_id}","starred_url":"https://api.github.com/users/kaday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaday/subscriptions","organizations_url":"https://api.github.com/users/kaday/orgs","repos_url":"https://api.github.com/users/kaday/repos","events_url":"https://api.github.com/users/kaday/events{/privacy}","received_events_url":"https://api.github.com/users/kaday/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/metomi/rose/milestones/44","html_url":"https://github.com/metomi/rose/milestones/next-release","labels_url":"https://api.github.com/repos/metomi/rose/milestones/44/labels","id":1638579,"number":44,"title":"next-release","description":"Rose release 39.","creator":{"login":"matthewrmshin","id":908613,"avatar_url":"https://avatars.githubusercontent.com/u/908613?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrmshin","html_url":"https://github.com/matthewrmshin","followers_url":"https://api.github.com/users/matthewrmshin/followers","following_url":"https://api.github.com/users/matthewrmshin/following{/other_user}","gists_url":"https://api.github.com/users/matthewrmshin/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrmshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrmshin/subscriptions","organizations_url":"https://api.github.com/users/matthewrmshin/orgs","repos_url":"https://api.github.com/users/matthewrmshin/repos","events_url":"https://api.github.com/users/matthewrmshin/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrmshin/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":3,"state":"open","created_at":"2016-03-11T09:19:40Z","updated_at":"2016-03-17T15:02:00Z","due_on":"2016-04-28T23:00:00Z","closed_at":null},"comments":0,"created_at":"2016-03-16T16:39:40Z","updated_at":"2016-03-18T08:19:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/metomi/rose/pulls/1858","html_url":"https://github.com/metomi/rose/pull/1858","diff_url":"https://github.com/metomi/rose/pull/1858.diff","patch_url":"https://github.com/metomi/rose/pull/1858.patch"},"body":"This fixes #1790.\r\n\r\nWhen a password is not present in `gpg-agent`, and when `gpg-agent` prompting is off (our usual default), then report an error and then fall through gracefully to our manual prompting and allow `rosie` to continue.\r\n\r\nReplicate by launching `gpg-agent` without entering any password on a server, then launching e.g. `rosie hello` with a remote prefix. The current master will silently break, and this branch will report a gpg-agent error on the terminal and then launch a prompt.\r\n\r\n`rosie` and `gpg-agent` continue to work as they did before in the absence of `--batch` option to `gpg-agent` (i.e. when it is allowed to launch its own prompts).\r\n\r\n@kaday, @matthewrmshin please review."},"comment":{"url":"https://api.github.com/repos/metomi/rose/issues/comments/198248250","html_url":"https://github.com/metomi/rose/pull/1858#issuecomment-198248250","issue_url":"https://api.github.com/repos/metomi/rose/issues/1858","id":198248250,"user":{"login":"kaday","id":3693326,"avatar_url":"https://avatars.githubusercontent.com/u/3693326?v=3","gravatar_id":"","url":"https://api.github.com/users/kaday","html_url":"https://github.com/kaday","followers_url":"https://api.github.com/users/kaday/followers","following_url":"https://api.github.com/users/kaday/following{/other_user}","gists_url":"https://api.github.com/users/kaday/gists{/gist_id}","starred_url":"https://api.github.com/users/kaday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaday/subscriptions","organizations_url":"https://api.github.com/users/kaday/orgs","repos_url":"https://api.github.com/users/kaday/repos","events_url":"https://api.github.com/users/kaday/events{/privacy}","received_events_url":"https://api.github.com/users/kaday/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T08:19:13Z","updated_at":"2016-03-18T08:19:13Z","body":"Tested and it works in my environment, a good prompt therefore a massive improvement!\r\nTest battery passes.\r\nThe code looks okay to me.\r\nOver to @matthewrmshin "}}