{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25","id":37521155,"html_url":"https://github.com/fgrehm/vagrant-notify/pull/25","diff_url":"https://github.com/fgrehm/vagrant-notify/pull/25.diff","patch_url":"https://github.com/fgrehm/vagrant-notify/pull/25.patch","issue_url":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/25","number":25,"state":"open","locked":false,"title":"Make notify-send working even without ssh connection","user":{"login":"OndraM","id":793041,"avatar_url":"https://avatars.githubusercontent.com/u/793041?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraM","html_url":"https://github.com/OndraM","followers_url":"https://api.github.com/users/OndraM/followers","following_url":"https://api.github.com/users/OndraM/following{/other_user}","gists_url":"https://api.github.com/users/OndraM/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraM/subscriptions","organizations_url":"https://api.github.com/users/OndraM/orgs","repos_url":"https://api.github.com/users/OndraM/repos","events_url":"https://api.github.com/users/OndraM/events{/privacy}","received_events_url":"https://api.github.com/users/OndraM/received_events","type":"User","site_admin":false},"body":"Because of `ENV['SSH_CLIENT']` is used to retrieve the host IP, it is now possible to use the script only inside the SSH connection to Vagrant box (= only in child processes of your `vagrant ssh` terminal). However this is limiting when the notify-send is called by some other (background) command run in the vagrant (and thus it doesn't have the environment variable set).\r\n\r\nThis change is based on https://stackoverflow.com/questions/19917148/tell-vagrant-the-ip-of-the-host-machine and removes the dependency on this environment variable, as it is retrieving the host IP dynamically from `netstat` output.","created_at":"2015-06-12T00:02:16Z","updated_at":"2015-06-12T00:02:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25/commits","review_comments_url":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25/comments","review_comment_url":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/25/comments","statuses_url":"https://api.github.com/repos/fgrehm/vagrant-notify/statuses/afa03cbba9f88a1888c0e262295001ba5c801b20","head":{"label":"OndraM:get-host-ip","ref":"get-host-ip","sha":"afa03cbba9f88a1888c0e262295001ba5c801b20","user":{"login":"OndraM","id":793041,"avatar_url":"https://avatars.githubusercontent.com/u/793041?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraM","html_url":"https://github.com/OndraM","followers_url":"https://api.github.com/users/OndraM/followers","following_url":"https://api.github.com/users/OndraM/following{/other_user}","gists_url":"https://api.github.com/users/OndraM/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraM/subscriptions","organizations_url":"https://api.github.com/users/OndraM/orgs","repos_url":"https://api.github.com/users/OndraM/repos","events_url":"https://api.github.com/users/OndraM/events{/privacy}","received_events_url":"https://api.github.com/users/OndraM/received_events","type":"User","site_admin":false},"repo":{"id":37291080,"name":"vagrant-notify","full_name":"OndraM/vagrant-notify","owner":{"login":"OndraM","id":793041,"avatar_url":"https://avatars.githubusercontent.com/u/793041?v=3","gravatar_id":"","url":"https://api.github.com/users/OndraM","html_url":"https://github.com/OndraM","followers_url":"https://api.github.com/users/OndraM/followers","following_url":"https://api.github.com/users/OndraM/following{/other_user}","gists_url":"https://api.github.com/users/OndraM/gists{/gist_id}","starred_url":"https://api.github.com/users/OndraM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndraM/subscriptions","organizations_url":"https://api.github.com/users/OndraM/orgs","repos_url":"https://api.github.com/users/OndraM/repos","events_url":"https://api.github.com/users/OndraM/events{/privacy}","received_events_url":"https://api.github.com/users/OndraM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OndraM/vagrant-notify","description":"Vagrant plugin that redirects `notify-send` from guest to host machine  and notifies provisioning status.","fork":true,"url":"https://api.github.com/repos/OndraM/vagrant-notify","forks_url":"https://api.github.com/repos/OndraM/vagrant-notify/forks","keys_url":"https://api.github.com/repos/OndraM/vagrant-notify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OndraM/vagrant-notify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OndraM/vagrant-notify/teams","hooks_url":"https://api.github.com/repos/OndraM/vagrant-notify/hooks","issue_events_url":"https://api.github.com/repos/OndraM/vagrant-notify/issues/events{/number}","events_url":"https://api.github.com/repos/OndraM/vagrant-notify/events","assignees_url":"https://api.github.com/repos/OndraM/vagrant-notify/assignees{/user}","branches_url":"https://api.github.com/repos/OndraM/vagrant-notify/branches{/branch}","tags_url":"https://api.github.com/repos/OndraM/vagrant-notify/tags","blobs_url":"https://api.github.com/repos/OndraM/vagrant-notify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OndraM/vagrant-notify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OndraM/vagrant-notify/git/refs{/sha}","trees_url":"https://api.github.com/repos/OndraM/vagrant-notify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OndraM/vagrant-notify/statuses/{sha}","languages_url":"https://api.github.com/repos/OndraM/vagrant-notify/languages","stargazers_url":"https://api.github.com/repos/OndraM/vagrant-notify/stargazers","contributors_url":"https://api.github.com/repos/OndraM/vagrant-notify/contributors","subscribers_url":"https://api.github.com/repos/OndraM/vagrant-notify/subscribers","subscription_url":"https://api.github.com/repos/OndraM/vagrant-notify/subscription","commits_url":"https://api.github.com/repos/OndraM/vagrant-notify/commits{/sha}","git_commits_url":"https://api.github.com/repos/OndraM/vagrant-notify/git/commits{/sha}","comments_url":"https://api.github.com/repos/OndraM/vagrant-notify/comments{/number}","issue_comment_url":"https://api.github.com/repos/OndraM/vagrant-notify/issues/comments{/number}","contents_url":"https://api.github.com/repos/OndraM/vagrant-notify/contents/{+path}","compare_url":"https://api.github.com/repos/OndraM/vagrant-notify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OndraM/vagrant-notify/merges","archive_url":"https://api.github.com/repos/OndraM/vagrant-notify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OndraM/vagrant-notify/downloads","issues_url":"https://api.github.com/repos/OndraM/vagrant-notify/issues{/number}","pulls_url":"https://api.github.com/repos/OndraM/vagrant-notify/pulls{/number}","milestones_url":"https://api.github.com/repos/OndraM/vagrant-notify/milestones{/number}","notifications_url":"https://api.github.com/repos/OndraM/vagrant-notify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OndraM/vagrant-notify/labels{/name}","releases_url":"https://api.github.com/repos/OndraM/vagrant-notify/releases{/id}","created_at":"2015-06-11T23:14:56Z","updated_at":"2015-06-11T23:14:57Z","pushed_at":"2015-06-11T23:57:13Z","git_url":"git://github.com/OndraM/vagrant-notify.git","ssh_url":"git@github.com:OndraM/vagrant-notify.git","clone_url":"https://github.com/OndraM/vagrant-notify.git","svn_url":"https://github.com/OndraM/vagrant-notify","homepage":"","size":372,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fgrehm:master","ref":"master","sha":"669a7cfb123bfa9f9034b90a0581730936ba40c7","user":{"login":"fgrehm","id":81859,"avatar_url":"https://avatars.githubusercontent.com/u/81859?v=3","gravatar_id":"","url":"https://api.github.com/users/fgrehm","html_url":"https://github.com/fgrehm","followers_url":"https://api.github.com/users/fgrehm/followers","following_url":"https://api.github.com/users/fgrehm/following{/other_user}","gists_url":"https://api.github.com/users/fgrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fgrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgrehm/subscriptions","organizations_url":"https://api.github.com/users/fgrehm/orgs","repos_url":"https://api.github.com/users/fgrehm/repos","events_url":"https://api.github.com/users/fgrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fgrehm/received_events","type":"User","site_admin":false},"repo":{"id":6098097,"name":"vagrant-notify","full_name":"fgrehm/vagrant-notify","owner":{"login":"fgrehm","id":81859,"avatar_url":"https://avatars.githubusercontent.com/u/81859?v=3","gravatar_id":"","url":"https://api.github.com/users/fgrehm","html_url":"https://github.com/fgrehm","followers_url":"https://api.github.com/users/fgrehm/followers","following_url":"https://api.github.com/users/fgrehm/following{/other_user}","gists_url":"https://api.github.com/users/fgrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fgrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgrehm/subscriptions","organizations_url":"https://api.github.com/users/fgrehm/orgs","repos_url":"https://api.github.com/users/fgrehm/repos","events_url":"https://api.github.com/users/fgrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fgrehm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fgrehm/vagrant-notify","description":"Vagrant plugin that redirects `notify-send` from guest to host machine  and notifies provisioning status.","fork":false,"url":"https://api.github.com/repos/fgrehm/vagrant-notify","forks_url":"https://api.github.com/repos/fgrehm/vagrant-notify/forks","keys_url":"https://api.github.com/repos/fgrehm/vagrant-notify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fgrehm/vagrant-notify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fgrehm/vagrant-notify/teams","hooks_url":"https://api.github.com/repos/fgrehm/vagrant-notify/hooks","issue_events_url":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/events{/number}","events_url":"https://api.github.com/repos/fgrehm/vagrant-notify/events","assignees_url":"https://api.github.com/repos/fgrehm/vagrant-notify/assignees{/user}","branches_url":"https://api.github.com/repos/fgrehm/vagrant-notify/branches{/branch}","tags_url":"https://api.github.com/repos/fgrehm/vagrant-notify/tags","blobs_url":"https://api.github.com/repos/fgrehm/vagrant-notify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fgrehm/vagrant-notify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fgrehm/vagrant-notify/git/refs{/sha}","trees_url":"https://api.github.com/repos/fgrehm/vagrant-notify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fgrehm/vagrant-notify/statuses/{sha}","languages_url":"https://api.github.com/repos/fgrehm/vagrant-notify/languages","stargazers_url":"https://api.github.com/repos/fgrehm/vagrant-notify/stargazers","contributors_url":"https://api.github.com/repos/fgrehm/vagrant-notify/contributors","subscribers_url":"https://api.github.com/repos/fgrehm/vagrant-notify/subscribers","subscription_url":"https://api.github.com/repos/fgrehm/vagrant-notify/subscription","commits_url":"https://api.github.com/repos/fgrehm/vagrant-notify/commits{/sha}","git_commits_url":"https://api.github.com/repos/fgrehm/vagrant-notify/git/commits{/sha}","comments_url":"https://api.github.com/repos/fgrehm/vagrant-notify/comments{/number}","issue_comment_url":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/comments{/number}","contents_url":"https://api.github.com/repos/fgrehm/vagrant-notify/contents/{+path}","compare_url":"https://api.github.com/repos/fgrehm/vagrant-notify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fgrehm/vagrant-notify/merges","archive_url":"https://api.github.com/repos/fgrehm/vagrant-notify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fgrehm/vagrant-notify/downloads","issues_url":"https://api.github.com/repos/fgrehm/vagrant-notify/issues{/number}","pulls_url":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls{/number}","milestones_url":"https://api.github.com/repos/fgrehm/vagrant-notify/milestones{/number}","notifications_url":"https://api.github.com/repos/fgrehm/vagrant-notify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fgrehm/vagrant-notify/labels{/name}","releases_url":"https://api.github.com/repos/fgrehm/vagrant-notify/releases{/id}","created_at":"2012-10-05T23:36:26Z","updated_at":"2015-05-29T22:31:34Z","pushed_at":"2015-05-11T17:52:57Z","git_url":"git://github.com/fgrehm/vagrant-notify.git","ssh_url":"git@github.com:fgrehm/vagrant-notify.git","clone_url":"https://github.com/fgrehm/vagrant-notify.git","svn_url":"https://github.com/fgrehm/vagrant-notify","homepage":"","size":372,"stargazers_count":91,"watchers_count":91,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":13,"forks":4,"open_issues":13,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25"},"html":{"href":"https://github.com/fgrehm/vagrant-notify/pull/25"},"issue":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/25"},"comments":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/fgrehm/vagrant-notify/statuses/afa03cbba9f88a1888c0e262295001ba5c801b20"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}