{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/54684033","id":54684033,"diff_hunk":"@@ -0,0 +1,31 @@\n+#!/bin/bash\n+#\n+# Copyright (C) 2015 Lucas Jenß <lucas@x3ro.de>\n+#\n+# This file is subject to the terms and conditions of the GNU Lesser\n+# General Public License v2.1. See the file LICENSE in the top level\n+# directory for more details.\n+#\n+\n+# Change to RIOT root\n+cd \"$(dirname \"$0\")/../../\"\n+\n+function dep {\n+    which $1 2>&1 1>/dev/null\n+    if (( $? != 0 )); then\n+        echo \"Dependency not met: $1\"\n+        exit 1\n+    fi\n+}\n+\n+# Make sure all required commands are available\n+dep cppcheck\n+dep pcregrep\n+\n+\n+RIOT_REMOTE_EXISTS=$(git rev-parse riot/master)\n+if (( \"$RIOT_REMOTE_EXISTS\" != 0 )); then\n+    git remote add riot https://github.com/RIOT-OS/RIOT.git","path":"dist/tools/static-tests.sh","position":28,"original_position":28,"commit_id":"9e9178677448f34006a213d77085145cc0454e8f","original_commit_id":"9e9178677448f34006a213d77085145cc0454e8f","user":{"login":"cgundogan","id":739129,"avatar_url":"https://avatars.githubusercontent.com/u/739129?v=3","gravatar_id":"","url":"https://api.github.com/users/cgundogan","html_url":"https://github.com/cgundogan","followers_url":"https://api.github.com/users/cgundogan/followers","following_url":"https://api.github.com/users/cgundogan/following{/other_user}","gists_url":"https://api.github.com/users/cgundogan/gists{/gist_id}","starred_url":"https://api.github.com/users/cgundogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgundogan/subscriptions","organizations_url":"https://api.github.com/users/cgundogan/orgs","repos_url":"https://api.github.com/users/cgundogan/repos","events_url":"https://api.github.com/users/cgundogan/events{/privacy}","received_events_url":"https://api.github.com/users/cgundogan/received_events","type":"User","site_admin":false},"body":"But it will does so on my local machine doesn't it? I usually call the remote in all of my forks `upstream` and I have scripts and shell aliases relying on that fact. With this code I would get `upstream` and `riot` pointing at the same remote or am I wrong? That's ugly :/","created_at":"2016-03-02T06:20:39Z","updated_at":"2016-03-02T06:20:39Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/4339#discussion_r54684033","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/54684033"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/4339#discussion_r54684033"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339","id":51710864,"html_url":"https://github.com/RIOT-OS/RIOT/pull/4339","diff_url":"https://github.com/RIOT-OS/RIOT/pull/4339.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/4339.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4339","number":4339,"state":"open","locked":false,"title":"Improve execution of static-tests","user":{"login":"x3ro","id":243719,"avatar_url":"https://avatars.githubusercontent.com/u/243719?v=3","gravatar_id":"","url":"https://api.github.com/users/x3ro","html_url":"https://github.com/x3ro","followers_url":"https://api.github.com/users/x3ro/followers","following_url":"https://api.github.com/users/x3ro/following{/other_user}","gists_url":"https://api.github.com/users/x3ro/gists{/gist_id}","starred_url":"https://api.github.com/users/x3ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x3ro/subscriptions","organizations_url":"https://api.github.com/users/x3ro/orgs","repos_url":"https://api.github.com/users/x3ro/repos","events_url":"https://api.github.com/users/x3ro/events{/privacy}","received_events_url":"https://api.github.com/users/x3ro/received_events","type":"User","site_admin":false},"body":"Allow execution of static tests with the `make static-tests`\r\ncommand and improve its output for the human reader","created_at":"2015-11-24T20:13:04Z","updated_at":"2016-03-02T06:20:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7375e5faa01539363e6246a6eeb2abfa304f93c","assignee":{"login":"zhuoshuguo","id":9894607,"avatar_url":"https://avatars.githubusercontent.com/u/9894607?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuoshuguo","html_url":"https://github.com/zhuoshuguo","followers_url":"https://api.github.com/users/zhuoshuguo/followers","following_url":"https://api.github.com/users/zhuoshuguo/following{/other_user}","gists_url":"https://api.github.com/users/zhuoshuguo/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuoshuguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuoshuguo/subscriptions","organizations_url":"https://api.github.com/users/zhuoshuguo/orgs","repos_url":"https://api.github.com/users/zhuoshuguo/repos","events_url":"https://api.github.com/users/zhuoshuguo/events{/privacy}","received_events_url":"https://api.github.com/users/zhuoshuguo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.04","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13/labels","id":1447832,"number":13,"title":"Release 2016.04","description":"The next major release.","creator":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"open_issues":221,"closed_issues":180,"state":"open","created_at":"2015-12-07T14:56:18Z","updated_at":"2016-03-01T22:30:11Z","due_on":"2016-04-14T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4339/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/9e9178677448f34006a213d77085145cc0454e8f","head":{"label":"x3ro:make-static-tests","ref":"make-static-tests","sha":"9e9178677448f34006a213d77085145cc0454e8f","user":{"login":"x3ro","id":243719,"avatar_url":"https://avatars.githubusercontent.com/u/243719?v=3","gravatar_id":"","url":"https://api.github.com/users/x3ro","html_url":"https://github.com/x3ro","followers_url":"https://api.github.com/users/x3ro/followers","following_url":"https://api.github.com/users/x3ro/following{/other_user}","gists_url":"https://api.github.com/users/x3ro/gists{/gist_id}","starred_url":"https://api.github.com/users/x3ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x3ro/subscriptions","organizations_url":"https://api.github.com/users/x3ro/orgs","repos_url":"https://api.github.com/users/x3ro/repos","events_url":"https://api.github.com/users/x3ro/events{/privacy}","received_events_url":"https://api.github.com/users/x3ro/received_events","type":"User","site_admin":false},"repo":{"id":27481215,"name":"RIOT","full_name":"x3ro/RIOT","owner":{"login":"x3ro","id":243719,"avatar_url":"https://avatars.githubusercontent.com/u/243719?v=3","gravatar_id":"","url":"https://api.github.com/users/x3ro","html_url":"https://github.com/x3ro","followers_url":"https://api.github.com/users/x3ro/followers","following_url":"https://api.github.com/users/x3ro/following{/other_user}","gists_url":"https://api.github.com/users/x3ro/gists{/gist_id}","starred_url":"https://api.github.com/users/x3ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x3ro/subscriptions","organizations_url":"https://api.github.com/users/x3ro/orgs","repos_url":"https://api.github.com/users/x3ro/repos","events_url":"https://api.github.com/users/x3ro/events{/privacy}","received_events_url":"https://api.github.com/users/x3ro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/x3ro/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/x3ro/RIOT","forks_url":"https://api.github.com/repos/x3ro/RIOT/forks","keys_url":"https://api.github.com/repos/x3ro/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/x3ro/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/x3ro/RIOT/teams","hooks_url":"https://api.github.com/repos/x3ro/RIOT/hooks","issue_events_url":"https://api.github.com/repos/x3ro/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/x3ro/RIOT/events","assignees_url":"https://api.github.com/repos/x3ro/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/x3ro/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/x3ro/RIOT/tags","blobs_url":"https://api.github.com/repos/x3ro/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/x3ro/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/x3ro/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/x3ro/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/x3ro/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/x3ro/RIOT/languages","stargazers_url":"https://api.github.com/repos/x3ro/RIOT/stargazers","contributors_url":"https://api.github.com/repos/x3ro/RIOT/contributors","subscribers_url":"https://api.github.com/repos/x3ro/RIOT/subscribers","subscription_url":"https://api.github.com/repos/x3ro/RIOT/subscription","commits_url":"https://api.github.com/repos/x3ro/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/x3ro/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/x3ro/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/x3ro/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/x3ro/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/x3ro/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/x3ro/RIOT/merges","archive_url":"https://api.github.com/repos/x3ro/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/x3ro/RIOT/downloads","issues_url":"https://api.github.com/repos/x3ro/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/x3ro/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/x3ro/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/x3ro/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/x3ro/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/x3ro/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/x3ro/RIOT/deployments","created_at":"2014-12-03T10:14:43Z","updated_at":"2015-04-28T16:06:54Z","pushed_at":"2016-02-25T17:54:55Z","git_url":"git://github.com/x3ro/RIOT.git","ssh_url":"git@github.com:x3ro/RIOT.git","clone_url":"https://github.com/x3ro/RIOT.git","svn_url":"https://github.com/x3ro/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":23997,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"bb3fc099ff80d46515b1cd2e3a1cd229fd87d6eb","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/RIOT-OS/RIOT/deployments","created_at":"2012-12-29T20:38:40Z","updated_at":"2016-03-01T15:18:52Z","pushed_at":"2016-03-01T23:05:33Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":85087,"stargazers_count":678,"watchers_count":678,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":512,"mirror_url":null,"open_issues_count":482,"forks":512,"open_issues":482,"watchers":678,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/4339"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4339"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4339/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4339/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/9e9178677448f34006a213d77085145cc0454e8f"}}}}