{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/207453684","pull_request_review_id":143068632,"id":207453684,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzQ1MzY4NA==","diff_hunk":"@@ -0,0 +1,65 @@\n+#! /usr/bin/env nix-shell\n+#! nix-shell -i bash -p curl jq coreutils\n+set -eu -o pipefail\n+\n+function fail() {\n+    echo $1 >&2\n+    exit 1\n+}\n+\n+function fetch() {\n+    RES=$(curl --silent \"$1\")\n+\n+    if [[ $RES != 404* ]]; then\n+        echo $RES\n+    fi\n+}\n+\n+function get_ver() {\n+    fetch \"https://raw.githubusercontent.com/$1/$2/master/package.json\" | jq '.version' | tr -d '\"'","path":"pkgs/misc/vscode-extensions/update_installed_exts.sh","position":19,"original_position":19,"commit_id":"fbbc8755f1517cdffc4ad2648d5dce67bd30b6a9","original_commit_id":"fbbc8755f1517cdffc4ad2648d5dce67bd30b6a9","user":{"login":"mankyKitty","id":827395,"node_id":"MDQ6VXNlcjgyNzM5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827395?v=4","gravatar_id":"","url":"https://api.github.com/users/mankyKitty","html_url":"https://github.com/mankyKitty","followers_url":"https://api.github.com/users/mankyKitty/followers","following_url":"https://api.github.com/users/mankyKitty/following{/other_user}","gists_url":"https://api.github.com/users/mankyKitty/gists{/gist_id}","starred_url":"https://api.github.com/users/mankyKitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mankyKitty/subscriptions","organizations_url":"https://api.github.com/users/mankyKitty/orgs","repos_url":"https://api.github.com/users/mankyKitty/repos","events_url":"https://api.github.com/users/mankyKitty/events{/privacy}","received_events_url":"https://api.github.com/users/mankyKitty/received_events","type":"User","site_admin":false},"body":"Neat, thanks","created_at":"2018-08-03T06:39:33Z","updated_at":"2018-08-03T06:39:33Z","html_url":"https://github.com/NixOS/nixpkgs/pull/44292#discussion_r207453684","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/207453684"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/44292#discussion_r207453684"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292"}},"in_reply_to_id":207450976},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292","id":205318081,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MzE4MDgx","html_url":"https://github.com/NixOS/nixpkgs/pull/44292","diff_url":"https://github.com/NixOS/nixpkgs/pull/44292.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/44292.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/44292","number":44292,"state":"open","locked":false,"title":"Added bash to generate nix for updating installed vscode-extensions","user":{"login":"mankyKitty","id":827395,"node_id":"MDQ6VXNlcjgyNzM5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827395?v=4","gravatar_id":"","url":"https://api.github.com/users/mankyKitty","html_url":"https://github.com/mankyKitty","followers_url":"https://api.github.com/users/mankyKitty/followers","following_url":"https://api.github.com/users/mankyKitty/following{/other_user}","gists_url":"https://api.github.com/users/mankyKitty/gists{/gist_id}","starred_url":"https://api.github.com/users/mankyKitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mankyKitty/subscriptions","organizations_url":"https://api.github.com/users/mankyKitty/orgs","repos_url":"https://api.github.com/users/mankyKitty/repos","events_url":"https://api.github.com/users/mankyKitty/events{/privacy}","received_events_url":"https://api.github.com/users/mankyKitty/received_events","type":"User","site_admin":false},"body":"###### Motivation for this change\r\nThis is a useful bash script for generating the nix expressions to be used with this expression: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vscode/with-extensions.nix#L18\r\n\r\nThese extensions are fiddly to update by hand as each package must be inspected individually and then the SHA must also be generated before the list can be updated and then the packages installed.\r\n\r\nThis script only cares about vscode extensions that you already have installed, any new extensions must be inspected and constructed yourself. If you use the `bbenoist.Nix` extension then you will have to filter that out as this script doesn't force any particular arrangement. The expression to filter the Nix vscode extension is `__filter (e: e.name != \"Nix\")`.\r\n\r\nThis is my first PR to nixpkgs so I'm keen to hear if there are better ways of managing this! :+1: \r\n\r\n###### Things done\r\n\r\n<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->\r\n\r\n- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] macOS\r\n   - [ ] other Linux distributions\r\n- [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [ ] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\n","created_at":"2018-08-01T06:09:47Z","updated_at":"2018-08-03T06:39:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75d25b9e7f0f21cb64e98d33e3371aa2f60394dc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":737642262,"node_id":"MDU6TGFiZWw3Mzc2NDIyNjI=","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-darwin:%200","name":"10.rebuild-darwin: 0","color":"eeffee","default":false},{"id":737642408,"node_id":"MDU6TGFiZWw3Mzc2NDI0MDg=","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-linux:%200","name":"10.rebuild-linux: 0","color":"eeffee","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/44292/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/fbbc8755f1517cdffc4ad2648d5dce67bd30b6a9","head":{"label":"mankyKitty:vscode-exts-update-script","ref":"vscode-exts-update-script","sha":"fbbc8755f1517cdffc4ad2648d5dce67bd30b6a9","user":{"login":"mankyKitty","id":827395,"node_id":"MDQ6VXNlcjgyNzM5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827395?v=4","gravatar_id":"","url":"https://api.github.com/users/mankyKitty","html_url":"https://github.com/mankyKitty","followers_url":"https://api.github.com/users/mankyKitty/followers","following_url":"https://api.github.com/users/mankyKitty/following{/other_user}","gists_url":"https://api.github.com/users/mankyKitty/gists{/gist_id}","starred_url":"https://api.github.com/users/mankyKitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mankyKitty/subscriptions","organizations_url":"https://api.github.com/users/mankyKitty/orgs","repos_url":"https://api.github.com/users/mankyKitty/repos","events_url":"https://api.github.com/users/mankyKitty/events{/privacy}","received_events_url":"https://api.github.com/users/mankyKitty/received_events","type":"User","site_admin":false},"repo":{"id":37192963,"node_id":"MDEwOlJlcG9zaXRvcnkzNzE5Mjk2Mw==","name":"nixpkgs","full_name":"mankyKitty/nixpkgs","owner":{"login":"mankyKitty","id":827395,"node_id":"MDQ6VXNlcjgyNzM5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/827395?v=4","gravatar_id":"","url":"https://api.github.com/users/mankyKitty","html_url":"https://github.com/mankyKitty","followers_url":"https://api.github.com/users/mankyKitty/followers","following_url":"https://api.github.com/users/mankyKitty/following{/other_user}","gists_url":"https://api.github.com/users/mankyKitty/gists{/gist_id}","starred_url":"https://api.github.com/users/mankyKitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mankyKitty/subscriptions","organizations_url":"https://api.github.com/users/mankyKitty/orgs","repos_url":"https://api.github.com/users/mankyKitty/repos","events_url":"https://api.github.com/users/mankyKitty/events{/privacy}","received_events_url":"https://api.github.com/users/mankyKitty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mankyKitty/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/mankyKitty/nixpkgs","forks_url":"https://api.github.com/repos/mankyKitty/nixpkgs/forks","keys_url":"https://api.github.com/repos/mankyKitty/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mankyKitty/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mankyKitty/nixpkgs/teams","hooks_url":"https://api.github.com/repos/mankyKitty/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/mankyKitty/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/mankyKitty/nixpkgs/events","assignees_url":"https://api.github.com/repos/mankyKitty/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/mankyKitty/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/mankyKitty/nixpkgs/tags","blobs_url":"https://api.github.com/repos/mankyKitty/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mankyKitty/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mankyKitty/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mankyKitty/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mankyKitty/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/mankyKitty/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/mankyKitty/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/mankyKitty/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/mankyKitty/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/mankyKitty/nixpkgs/subscription","commits_url":"https://api.github.com/repos/mankyKitty/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mankyKitty/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mankyKitty/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mankyKitty/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mankyKitty/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/mankyKitty/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mankyKitty/nixpkgs/merges","archive_url":"https://api.github.com/repos/mankyKitty/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mankyKitty/nixpkgs/downloads","issues_url":"https://api.github.com/repos/mankyKitty/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/mankyKitty/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/mankyKitty/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/mankyKitty/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mankyKitty/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/mankyKitty/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/mankyKitty/nixpkgs/deployments","created_at":"2015-06-10T11:24:21Z","updated_at":"2015-06-10T11:24:37Z","pushed_at":"2018-08-02T23:07:34Z","git_url":"git://github.com/mankyKitty/nixpkgs.git","ssh_url":"git@github.com:mankyKitty/nixpkgs.git","clone_url":"https://github.com/mankyKitty/nixpkgs.git","svn_url":"https://github.com/mankyKitty/nixpkgs","homepage":null,"size":722466,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"65c43b44684506b629fd4effeeca59412344eea6","user":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"node_id":"MDEwOlJlcG9zaXRvcnk0NTQyNzE2","name":"nixpkgs","full_name":"NixOS/nixpkgs","owner":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2018-08-03T06:32:20Z","pushed_at":"2018-08-03T06:28:42Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":830163,"stargazers_count":2611,"watchers_count":2611,"language":"Nix","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2915,"mirror_url":null,"archived":false,"open_issues_count":3041,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2915,"open_issues":3041,"watchers":2611,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/44292"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/44292"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/44292/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/44292/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/fbbc8755f1517cdffc4ad2648d5dce67bd30b6a9"}},"author_association":"NONE"}}
{"actor":{"display_login":"mankyKitty"}}