{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/loop/pulls/comments/58264836","id":58264836,"diff_hunk":"@@ -0,0 +1,56 @@\n+#!/bin/bash\n+\n+# A script to automatically build, and upload to AMO the latest version of the loop\n+# add-on xpi, including the latest localisations from loop-client-l10n.\n+\n+# This is designed to be run from a crontab somewhere.\n+\n+# WARNING: Running this script will modify your repositories.\n+\n+# The script expectes the following repository setup:\n+#   ${BASEDIR}/loop - A clone of https://github.com/mozilla/loop\n+#   ${BASEDIR}/loop-client-l10n - A clone of https://github.com/mozilla/loop-client-l10n\n+\n+# This script expects JPM_API_KEY and JPM_API_SECRET to be present in the environment.\n+# See the upload_xpi command in the Makefile.","path":"bin/autodeploy_devxpi.sh","position":15,"original_position":15,"commit_id":"5bb37d496f618028aeb11b0f5423a059f611910b","original_commit_id":"5bb37d496f618028aeb11b0f5423a059f611910b","user":{"login":"dmose","id":425657,"avatar_url":"https://avatars.githubusercontent.com/u/425657?v=3","gravatar_id":"","url":"https://api.github.com/users/dmose","html_url":"https://github.com/dmose","followers_url":"https://api.github.com/users/dmose/followers","following_url":"https://api.github.com/users/dmose/following{/other_user}","gists_url":"https://api.github.com/users/dmose/gists{/gist_id}","starred_url":"https://api.github.com/users/dmose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmose/subscriptions","organizations_url":"https://api.github.com/users/dmose/orgs","repos_url":"https://api.github.com/users/dmose/repos","events_url":"https://api.github.com/users/dmose/events{/privacy}","received_events_url":"https://api.github.com/users/dmose/received_events","type":"User","site_admin":false},"body":"I'd suggest changing all of this from a comment to [here document](https://bash.cyberciti.biz/guide/Here_documents) and echoing it out as part of the usage message.  It would also be nice if it describes how your repo is changed, and potentially makes a recommendation for how to use it (eg make a scratch repo, use it there, then delete that repo, or maybe do it in your regular repo and then just do a 'git reset --hard master' afterwards or something)...\r\n","created_at":"2016-04-01T20:43:58Z","updated_at":"2016-04-01T20:43:58Z","html_url":"https://github.com/mozilla/loop/pull/327#discussion_r58264836","pull_request_url":"https://api.github.com/repos/mozilla/loop/pulls/327","_links":{"self":{"href":"https://api.github.com/repos/mozilla/loop/pulls/comments/58264836"},"html":{"href":"https://github.com/mozilla/loop/pull/327#discussion_r58264836"},"pull_request":{"href":"https://api.github.com/repos/mozilla/loop/pulls/327"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/loop/pulls/327","id":64934796,"html_url":"https://github.com/mozilla/loop/pull/327","diff_url":"https://github.com/mozilla/loop/pull/327.diff","patch_url":"https://github.com/mozilla/loop/pull/327.patch","issue_url":"https://api.github.com/repos/mozilla/loop/issues/327","number":327,"state":"open","locked":false,"title":"Bug 1261332 - Add Autodeploy scripts for the standalone dev server and dev xpis.","user":{"login":"Standard8","id":520844,"avatar_url":"https://avatars.githubusercontent.com/u/520844?v=3","gravatar_id":"","url":"https://api.github.com/users/Standard8","html_url":"https://github.com/Standard8","followers_url":"https://api.github.com/users/Standard8/followers","following_url":"https://api.github.com/users/Standard8/following{/other_user}","gists_url":"https://api.github.com/users/Standard8/gists{/gist_id}","starred_url":"https://api.github.com/users/Standard8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Standard8/subscriptions","organizations_url":"https://api.github.com/users/Standard8/orgs","repos_url":"https://api.github.com/users/Standard8/repos","events_url":"https://api.github.com/users/Standard8/events{/privacy}","received_events_url":"https://api.github.com/users/Standard8/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-01T12:06:36Z","updated_at":"2016-04-01T20:43:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"543ad75f0cb104dfdeadb6d5dab625141ae0d310","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/loop/pulls/327/commits","review_comments_url":"https://api.github.com/repos/mozilla/loop/pulls/327/comments","review_comment_url":"https://api.github.com/repos/mozilla/loop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/loop/issues/327/comments","statuses_url":"https://api.github.com/repos/mozilla/loop/statuses/5bb37d496f618028aeb11b0f5423a059f611910b","head":{"label":"Standard8:autodeploy","ref":"autodeploy","sha":"5bb37d496f618028aeb11b0f5423a059f611910b","user":{"login":"Standard8","id":520844,"avatar_url":"https://avatars.githubusercontent.com/u/520844?v=3","gravatar_id":"","url":"https://api.github.com/users/Standard8","html_url":"https://github.com/Standard8","followers_url":"https://api.github.com/users/Standard8/followers","following_url":"https://api.github.com/users/Standard8/following{/other_user}","gists_url":"https://api.github.com/users/Standard8/gists{/gist_id}","starred_url":"https://api.github.com/users/Standard8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Standard8/subscriptions","organizations_url":"https://api.github.com/users/Standard8/orgs","repos_url":"https://api.github.com/users/Standard8/repos","events_url":"https://api.github.com/users/Standard8/events{/privacy}","received_events_url":"https://api.github.com/users/Standard8/received_events","type":"User","site_admin":false},"repo":{"id":47652537,"name":"loop","full_name":"Standard8/loop","owner":{"login":"Standard8","id":520844,"avatar_url":"https://avatars.githubusercontent.com/u/520844?v=3","gravatar_id":"","url":"https://api.github.com/users/Standard8","html_url":"https://github.com/Standard8","followers_url":"https://api.github.com/users/Standard8/followers","following_url":"https://api.github.com/users/Standard8/following{/other_user}","gists_url":"https://api.github.com/users/Standard8/gists{/gist_id}","starred_url":"https://api.github.com/users/Standard8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Standard8/subscriptions","organizations_url":"https://api.github.com/users/Standard8/orgs","repos_url":"https://api.github.com/users/Standard8/repos","events_url":"https://api.github.com/users/Standard8/events{/privacy}","received_events_url":"https://api.github.com/users/Standard8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Standard8/loop","description":"","fork":true,"url":"https://api.github.com/repos/Standard8/loop","forks_url":"https://api.github.com/repos/Standard8/loop/forks","keys_url":"https://api.github.com/repos/Standard8/loop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Standard8/loop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Standard8/loop/teams","hooks_url":"https://api.github.com/repos/Standard8/loop/hooks","issue_events_url":"https://api.github.com/repos/Standard8/loop/issues/events{/number}","events_url":"https://api.github.com/repos/Standard8/loop/events","assignees_url":"https://api.github.com/repos/Standard8/loop/assignees{/user}","branches_url":"https://api.github.com/repos/Standard8/loop/branches{/branch}","tags_url":"https://api.github.com/repos/Standard8/loop/tags","blobs_url":"https://api.github.com/repos/Standard8/loop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Standard8/loop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Standard8/loop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Standard8/loop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Standard8/loop/statuses/{sha}","languages_url":"https://api.github.com/repos/Standard8/loop/languages","stargazers_url":"https://api.github.com/repos/Standard8/loop/stargazers","contributors_url":"https://api.github.com/repos/Standard8/loop/contributors","subscribers_url":"https://api.github.com/repos/Standard8/loop/subscribers","subscription_url":"https://api.github.com/repos/Standard8/loop/subscription","commits_url":"https://api.github.com/repos/Standard8/loop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Standard8/loop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Standard8/loop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Standard8/loop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Standard8/loop/contents/{+path}","compare_url":"https://api.github.com/repos/Standard8/loop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Standard8/loop/merges","archive_url":"https://api.github.com/repos/Standard8/loop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Standard8/loop/downloads","issues_url":"https://api.github.com/repos/Standard8/loop/issues{/number}","pulls_url":"https://api.github.com/repos/Standard8/loop/pulls{/number}","milestones_url":"https://api.github.com/repos/Standard8/loop/milestones{/number}","notifications_url":"https://api.github.com/repos/Standard8/loop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Standard8/loop/labels{/name}","releases_url":"https://api.github.com/repos/Standard8/loop/releases{/id}","deployments_url":"https://api.github.com/repos/Standard8/loop/deployments","created_at":"2015-12-08T22:07:14Z","updated_at":"2016-01-11T09:10:31Z","pushed_at":"2016-04-01T12:07:11Z","git_url":"git://github.com/Standard8/loop.git","ssh_url":"git@github.com:Standard8/loop.git","clone_url":"https://github.com/Standard8/loop.git","svn_url":"https://github.com/Standard8/loop","homepage":null,"size":15433,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"mozilla:master","ref":"master","sha":"6b88afa57846804a96895545bd9beb0d8b923f37","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":45496273,"name":"loop","full_name":"mozilla/loop","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/loop","description":"This is the development repository for Firefox Hello","fork":false,"url":"https://api.github.com/repos/mozilla/loop","forks_url":"https://api.github.com/repos/mozilla/loop/forks","keys_url":"https://api.github.com/repos/mozilla/loop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/loop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/loop/teams","hooks_url":"https://api.github.com/repos/mozilla/loop/hooks","issue_events_url":"https://api.github.com/repos/mozilla/loop/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/loop/events","assignees_url":"https://api.github.com/repos/mozilla/loop/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/loop/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/loop/tags","blobs_url":"https://api.github.com/repos/mozilla/loop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/loop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/loop/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/loop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/loop/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/loop/languages","stargazers_url":"https://api.github.com/repos/mozilla/loop/stargazers","contributors_url":"https://api.github.com/repos/mozilla/loop/contributors","subscribers_url":"https://api.github.com/repos/mozilla/loop/subscribers","subscription_url":"https://api.github.com/repos/mozilla/loop/subscription","commits_url":"https://api.github.com/repos/mozilla/loop/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/loop/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/loop/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/loop/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/loop/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/loop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/loop/merges","archive_url":"https://api.github.com/repos/mozilla/loop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/loop/downloads","issues_url":"https://api.github.com/repos/mozilla/loop/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/loop/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/loop/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/loop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/loop/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/loop/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/loop/deployments","created_at":"2015-11-03T21:18:47Z","updated_at":"2016-03-31T15:03:42Z","pushed_at":"2016-04-01T19:02:40Z","git_url":"git://github.com/mozilla/loop.git","ssh_url":"git@github.com:mozilla/loop.git","clone_url":"https://github.com/mozilla/loop.git","svn_url":"https://github.com/mozilla/loop","homepage":"https://wiki.mozilla.org/Loop","size":15748,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":18,"forks":24,"open_issues":18,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/loop/pulls/327"},"html":{"href":"https://github.com/mozilla/loop/pull/327"},"issue":{"href":"https://api.github.com/repos/mozilla/loop/issues/327"},"comments":{"href":"https://api.github.com/repos/mozilla/loop/issues/327/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/loop/pulls/327/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/loop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/loop/pulls/327/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/loop/statuses/5bb37d496f618028aeb11b0f5423a059f611910b"}}}}