{"action":"closed","number":5498,"pull_request":{"url":"https://api.github.com/repos/snapcore/snapd/pulls/5498","id":200841170,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwODQxMTcw","html_url":"https://github.com/snapcore/snapd/pull/5498","diff_url":"https://github.com/snapcore/snapd/pull/5498.diff","patch_url":"https://github.com/snapcore/snapd/pull/5498.patch","issue_url":"https://api.github.com/repos/snapcore/snapd/issues/5498","number":5498,"state":"closed","locked":false,"title":"snap: support hook environment","user":{"login":"kyrofa","id":946674,"node_id":"MDQ6VXNlcjk0NjY3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/946674?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrofa","html_url":"https://github.com/kyrofa","followers_url":"https://api.github.com/users/kyrofa/followers","following_url":"https://api.github.com/users/kyrofa/following{/other_user}","gists_url":"https://api.github.com/users/kyrofa/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrofa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrofa/subscriptions","organizations_url":"https://api.github.com/users/kyrofa/orgs","repos_url":"https://api.github.com/users/kyrofa/repos","events_url":"https://api.github.com/users/kyrofa/events{/privacy}","received_events_url":"https://api.github.com/users/kyrofa/received_events","type":"User","site_admin":false},"body":"Currently, snapd supports the `environment` keyword in the root of the `snap.yaml`, as well as nested under individual `apps`. However, it does not support them under individual `hooks`. Add support for this, which lays more of the groundwork necessary for the snapcraft CLI to get rid of its wrappers.","created_at":"2018-07-11T22:19:34Z","updated_at":"2018-07-13T12:38:45Z","closed_at":"2018-07-13T12:38:45Z","merged_at":"2018-07-13T12:38:45Z","merge_commit_sha":"7b0e1a38b07bb40541f5157a2bc80b500fef5930","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snapd/pulls/5498/commits","review_comments_url":"https://api.github.com/repos/snapcore/snapd/pulls/5498/comments","review_comment_url":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snapd/issues/5498/comments","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/b00317bf83b64b482529935350ea540e48b2bfa3","head":{"label":"kyrofa:feature/hook_environment","ref":"feature/hook_environment","sha":"b00317bf83b64b482529935350ea540e48b2bfa3","user":{"login":"kyrofa","id":946674,"node_id":"MDQ6VXNlcjk0NjY3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/946674?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrofa","html_url":"https://github.com/kyrofa","followers_url":"https://api.github.com/users/kyrofa/followers","following_url":"https://api.github.com/users/kyrofa/following{/other_user}","gists_url":"https://api.github.com/users/kyrofa/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrofa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrofa/subscriptions","organizations_url":"https://api.github.com/users/kyrofa/orgs","repos_url":"https://api.github.com/users/kyrofa/repos","events_url":"https://api.github.com/users/kyrofa/events{/privacy}","received_events_url":"https://api.github.com/users/kyrofa/received_events","type":"User","site_admin":false},"repo":{"id":59755219,"node_id":"MDEwOlJlcG9zaXRvcnk1OTc1NTIxOQ==","name":"snapd","full_name":"kyrofa/snapd","owner":{"login":"kyrofa","id":946674,"node_id":"MDQ6VXNlcjk0NjY3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/946674?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrofa","html_url":"https://github.com/kyrofa","followers_url":"https://api.github.com/users/kyrofa/followers","following_url":"https://api.github.com/users/kyrofa/following{/other_user}","gists_url":"https://api.github.com/users/kyrofa/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrofa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrofa/subscriptions","organizations_url":"https://api.github.com/users/kyrofa/orgs","repos_url":"https://api.github.com/users/kyrofa/repos","events_url":"https://api.github.com/users/kyrofa/events{/privacy}","received_events_url":"https://api.github.com/users/kyrofa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyrofa/snapd","description":"The snapd and snap tools enable systems to work with .snap files.","fork":true,"url":"https://api.github.com/repos/kyrofa/snapd","forks_url":"https://api.github.com/repos/kyrofa/snapd/forks","keys_url":"https://api.github.com/repos/kyrofa/snapd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyrofa/snapd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyrofa/snapd/teams","hooks_url":"https://api.github.com/repos/kyrofa/snapd/hooks","issue_events_url":"https://api.github.com/repos/kyrofa/snapd/issues/events{/number}","events_url":"https://api.github.com/repos/kyrofa/snapd/events","assignees_url":"https://api.github.com/repos/kyrofa/snapd/assignees{/user}","branches_url":"https://api.github.com/repos/kyrofa/snapd/branches{/branch}","tags_url":"https://api.github.com/repos/kyrofa/snapd/tags","blobs_url":"https://api.github.com/repos/kyrofa/snapd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyrofa/snapd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyrofa/snapd/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyrofa/snapd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyrofa/snapd/statuses/{sha}","languages_url":"https://api.github.com/repos/kyrofa/snapd/languages","stargazers_url":"https://api.github.com/repos/kyrofa/snapd/stargazers","contributors_url":"https://api.github.com/repos/kyrofa/snapd/contributors","subscribers_url":"https://api.github.com/repos/kyrofa/snapd/subscribers","subscription_url":"https://api.github.com/repos/kyrofa/snapd/subscription","commits_url":"https://api.github.com/repos/kyrofa/snapd/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyrofa/snapd/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyrofa/snapd/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyrofa/snapd/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyrofa/snapd/contents/{+path}","compare_url":"https://api.github.com/repos/kyrofa/snapd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyrofa/snapd/merges","archive_url":"https://api.github.com/repos/kyrofa/snapd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyrofa/snapd/downloads","issues_url":"https://api.github.com/repos/kyrofa/snapd/issues{/number}","pulls_url":"https://api.github.com/repos/kyrofa/snapd/pulls{/number}","milestones_url":"https://api.github.com/repos/kyrofa/snapd/milestones{/number}","notifications_url":"https://api.github.com/repos/kyrofa/snapd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyrofa/snapd/labels{/name}","releases_url":"https://api.github.com/repos/kyrofa/snapd/releases{/id}","deployments_url":"https://api.github.com/repos/kyrofa/snapd/deployments","created_at":"2016-05-26T14:05:43Z","updated_at":"2018-07-11T22:14:16Z","pushed_at":"2018-07-12T18:14:24Z","git_url":"git://github.com/kyrofa/snapd.git","ssh_url":"git@github.com:kyrofa/snapd.git","clone_url":"https://github.com/kyrofa/snapd.git","svn_url":"https://github.com/kyrofa/snapd","homepage":"","size":67558,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"snapcore:master","ref":"master","sha":"14aef0938d4b8f4e577451129909b01bcb3eb22e","user":{"login":"snapcore","id":19532717,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTMyNzE3","avatar_url":"https://avatars1.githubusercontent.com/u/19532717?v=4","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":44672744,"node_id":"MDEwOlJlcG9zaXRvcnk0NDY3Mjc0NA==","name":"snapd","full_name":"snapcore/snapd","owner":{"login":"snapcore","id":19532717,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTMyNzE3","avatar_url":"https://avatars1.githubusercontent.com/u/19532717?v=4","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snapd","description":"The snapd and snap tools enable systems to work with .snap files.","fork":false,"url":"https://api.github.com/repos/snapcore/snapd","forks_url":"https://api.github.com/repos/snapcore/snapd/forks","keys_url":"https://api.github.com/repos/snapcore/snapd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snapd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snapd/teams","hooks_url":"https://api.github.com/repos/snapcore/snapd/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snapd/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snapd/events","assignees_url":"https://api.github.com/repos/snapcore/snapd/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snapd/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snapd/tags","blobs_url":"https://api.github.com/repos/snapcore/snapd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snapd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snapd/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snapd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snapd/languages","stargazers_url":"https://api.github.com/repos/snapcore/snapd/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snapd/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snapd/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snapd/subscription","commits_url":"https://api.github.com/repos/snapcore/snapd/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snapd/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snapd/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snapd/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snapd/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snapd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snapd/merges","archive_url":"https://api.github.com/repos/snapcore/snapd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snapd/downloads","issues_url":"https://api.github.com/repos/snapcore/snapd/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snapd/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snapd/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snapd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snapd/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snapd/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snapd/deployments","created_at":"2015-10-21T11:51:46Z","updated_at":"2018-07-12T20:23:49Z","pushed_at":"2018-07-13T12:38:45Z","git_url":"git://github.com/snapcore/snapd.git","ssh_url":"git@github.com:snapcore/snapd.git","clone_url":"https://github.com/snapcore/snapd.git","svn_url":"https://github.com/snapcore/snapd","homepage":"","size":67755,"stargazers_count":961,"watchers_count":961,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":241,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":241,"open_issues":41,"watchers":961,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/5498"},"html":{"href":"https://github.com/snapcore/snapd/pull/5498"},"issue":{"href":"https://api.github.com/repos/snapcore/snapd/issues/5498"},"comments":{"href":"https://api.github.com/repos/snapcore/snapd/issues/5498/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/5498/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/5498/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snapd/statuses/b00317bf83b64b482529935350ea540e48b2bfa3"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"stolowski","id":168604,"node_id":"MDQ6VXNlcjE2ODYwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/168604?v=4","gravatar_id":"","url":"https://api.github.com/users/stolowski","html_url":"https://github.com/stolowski","followers_url":"https://api.github.com/users/stolowski/followers","following_url":"https://api.github.com/users/stolowski/following{/other_user}","gists_url":"https://api.github.com/users/stolowski/gists{/gist_id}","starred_url":"https://api.github.com/users/stolowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stolowski/subscriptions","organizations_url":"https://api.github.com/users/stolowski/orgs","repos_url":"https://api.github.com/users/stolowski/repos","events_url":"https://api.github.com/users/stolowski/events{/privacy}","received_events_url":"https://api.github.com/users/stolowski/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":64,"deletions":6,"changed_files":6}}
{"actor":{"display_login":"stolowski"}}