{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/1332","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/1332/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1332/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/1332/events","html_url":"https://github.com/prometheus/prometheus/pull/1332","id":128005024,"number":1332,"title":"Add missing license files of vendored packages","user":{"login":"grobie","id":3432,"avatar_url":"https://avatars.githubusercontent.com/u/3432?v=3","gravatar_id":"","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T19:48:01Z","updated_at":"2016-01-21T20:05:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/1332","html_url":"https://github.com/prometheus/prometheus/pull/1332","diff_url":"https://github.com/prometheus/prometheus/pull/1332.diff","patch_url":"https://github.com/prometheus/prometheus/pull/1332.patch"},"body":"With the totally optimized copy command. Assumes all vendored packages are\r\nchecked out in $GOPATH.\r\n\r\n    govendor list +v | awk '{print $2}' | while read dep; do echo $dep |\r\n    cut -d/ -f1-3; done | uniq | while read dep; do find\r\n    $GOPATH/src/$dep -name LICENSE -o -name NOTICE | grep -v vendor |\r\n    sed \"s;$GOPATH/src/;;\"; done | while read license; do [ -f\r\n    vendor/$license ] || cp $GOPATH/src/$license vendor/$license; done\r\n\r\nFixes #1331 \r\n\r\n@fabxc "},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/173692965","html_url":"https://github.com/prometheus/prometheus/pull/1332#issuecomment-173692965","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/1332","id":173692965,"user":{"login":"fabxc","id":4948210,"avatar_url":"https://avatars.githubusercontent.com/u/4948210?v=3","gravatar_id":"","url":"https://api.github.com/users/fabxc","html_url":"https://github.com/fabxc","followers_url":"https://api.github.com/users/fabxc/followers","following_url":"https://api.github.com/users/fabxc/following{/other_user}","gists_url":"https://api.github.com/users/fabxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fabxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabxc/subscriptions","organizations_url":"https://api.github.com/users/fabxc/orgs","repos_url":"https://api.github.com/users/fabxc/repos","events_url":"https://api.github.com/users/fabxc/events{/privacy}","received_events_url":"https://api.github.com/users/fabxc/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T20:05:16Z","updated_at":"2016-01-21T20:05:16Z","body":":+1: thanks!"}}