{"action":"created","comment":{"url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/comments/90781723","pull_request_review_id":11298099,"id":90781723,"diff_hunk":"@@ -0,0 +1,59 @@\n+'use strict';\n+\n+require('dotenv').config({path: 'devops.env'});\n+const Promise = require('bluebird');\n+\n+var args = process.argv.slice(2);\n+\n+if(!args[0]){\n+\tconsole.log(\"You should pass the branch name as parameter\");\n+\treturn;\n+}\n+\n+let dockerHubAPI = require('docker-hub-api');\n+let username = process.env.DOCKER_HUB_DEV_USERNAME;\n+let password = process.env.DOCKER_HUB_DEV_PASSWORD;\n+let dockerHubRepo = process.env.DOCKER_HUB_DEV_REPO;\n+let branchName = args[0];\n+\n+//Enables the cache, because we need to issue the tag request twice, due to the fact\n+//there is not an API dedicated to check the number of tag pages\n+dockerHubAPI.setCacheOptions({enabled: true});\n+\n+dockerHubAPI.login(username, password).then(function(info) {\n+    console.log(\"Logged in to Docker Hub with user: \" + username);","path":"lib/support/docker/hub/delete-tags.js","position":24,"original_position":24,"commit_id":"01b00e3c959d72eaf9b982dccc08d3a104adc349","original_commit_id":"01b00e3c959d72eaf9b982dccc08d3a104adc349","user":{"login":"triglian","id":573280,"avatar_url":"https://avatars.githubusercontent.com/u/573280?v=3","gravatar_id":"","url":"https://api.github.com/users/triglian","html_url":"https://github.com/triglian","followers_url":"https://api.github.com/users/triglian/followers","following_url":"https://api.github.com/users/triglian/following{/other_user}","gists_url":"https://api.github.com/users/triglian/gists{/gist_id}","starred_url":"https://api.github.com/users/triglian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triglian/subscriptions","organizations_url":"https://api.github.com/users/triglian/orgs","repos_url":"https://api.github.com/users/triglian/repos","events_url":"https://api.github.com/users/triglian/events{/privacy}","received_events_url":"https://api.github.com/users/triglian/received_events","type":"User","site_admin":false},"body":"use 2 space tabs","created_at":"2016-12-04T17:32:32Z","updated_at":"2016-12-04T17:54:59Z","html_url":"https://github.com/ASQ-USI/ASQ/pull/89#discussion_r90781723","pull_request_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/comments/90781723"},"html":{"href":"https://github.com/ASQ-USI/ASQ/pull/89#discussion_r90781723"},"pull_request":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89","id":95806944,"html_url":"https://github.com/ASQ-USI/ASQ/pull/89","diff_url":"https://github.com/ASQ-USI/ASQ/pull/89.diff","patch_url":"https://github.com/ASQ-USI/ASQ/pull/89.patch","issue_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/89","number":89,"state":"open","locked":false,"title":"Adds Wercker Support for ASQ","user":{"login":"VincenzoFerme","id":7163641,"avatar_url":"https://avatars.githubusercontent.com/u/7163641?v=3","gravatar_id":"","url":"https://api.github.com/users/VincenzoFerme","html_url":"https://github.com/VincenzoFerme","followers_url":"https://api.github.com/users/VincenzoFerme/followers","following_url":"https://api.github.com/users/VincenzoFerme/following{/other_user}","gists_url":"https://api.github.com/users/VincenzoFerme/gists{/gist_id}","starred_url":"https://api.github.com/users/VincenzoFerme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincenzoFerme/subscriptions","organizations_url":"https://api.github.com/users/VincenzoFerme/orgs","repos_url":"https://api.github.com/users/VincenzoFerme/repos","events_url":"https://api.github.com/users/VincenzoFerme/events{/privacy}","received_events_url":"https://api.github.com/users/VincenzoFerme/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T00:48:38Z","updated_at":"2016-12-04T17:55:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e90427e6b67c54b95a0d3b855a67ecd1633af4e0","assignee":{"login":"triglian","id":573280,"avatar_url":"https://avatars.githubusercontent.com/u/573280?v=3","gravatar_id":"","url":"https://api.github.com/users/triglian","html_url":"https://github.com/triglian","followers_url":"https://api.github.com/users/triglian/followers","following_url":"https://api.github.com/users/triglian/following{/other_user}","gists_url":"https://api.github.com/users/triglian/gists{/gist_id}","starred_url":"https://api.github.com/users/triglian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triglian/subscriptions","organizations_url":"https://api.github.com/users/triglian/orgs","repos_url":"https://api.github.com/users/triglian/repos","events_url":"https://api.github.com/users/triglian/events{/privacy}","received_events_url":"https://api.github.com/users/triglian/received_events","type":"User","site_admin":false},"assignees":[{"login":"triglian","id":573280,"avatar_url":"https://avatars.githubusercontent.com/u/573280?v=3","gravatar_id":"","url":"https://api.github.com/users/triglian","html_url":"https://github.com/triglian","followers_url":"https://api.github.com/users/triglian/followers","following_url":"https://api.github.com/users/triglian/following{/other_user}","gists_url":"https://api.github.com/users/triglian/gists{/gist_id}","starred_url":"https://api.github.com/users/triglian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triglian/subscriptions","organizations_url":"https://api.github.com/users/triglian/orgs","repos_url":"https://api.github.com/users/triglian/repos","events_url":"https://api.github.com/users/triglian/events{/privacy}","received_events_url":"https://api.github.com/users/triglian/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89/commits","review_comments_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89/comments","review_comment_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/89/comments","statuses_url":"https://api.github.com/repos/ASQ-USI/ASQ/statuses/01b00e3c959d72eaf9b982dccc08d3a104adc349","head":{"label":"ASQ-USI:feat-wercker","ref":"feat-wercker","sha":"01b00e3c959d72eaf9b982dccc08d3a104adc349","user":{"login":"ASQ-USI","id":3921676,"avatar_url":"https://avatars.githubusercontent.com/u/3921676?v=3","gravatar_id":"","url":"https://api.github.com/users/ASQ-USI","html_url":"https://github.com/ASQ-USI","followers_url":"https://api.github.com/users/ASQ-USI/followers","following_url":"https://api.github.com/users/ASQ-USI/following{/other_user}","gists_url":"https://api.github.com/users/ASQ-USI/gists{/gist_id}","starred_url":"https://api.github.com/users/ASQ-USI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASQ-USI/subscriptions","organizations_url":"https://api.github.com/users/ASQ-USI/orgs","repos_url":"https://api.github.com/users/ASQ-USI/repos","events_url":"https://api.github.com/users/ASQ-USI/events{/privacy}","received_events_url":"https://api.github.com/users/ASQ-USI/received_events","type":"Organization","site_admin":false},"repo":{"id":8906897,"name":"ASQ","full_name":"ASQ-USI/ASQ","owner":{"login":"ASQ-USI","id":3921676,"avatar_url":"https://avatars.githubusercontent.com/u/3921676?v=3","gravatar_id":"","url":"https://api.github.com/users/ASQ-USI","html_url":"https://github.com/ASQ-USI","followers_url":"https://api.github.com/users/ASQ-USI/followers","following_url":"https://api.github.com/users/ASQ-USI/following{/other_user}","gists_url":"https://api.github.com/users/ASQ-USI/gists{/gist_id}","starred_url":"https://api.github.com/users/ASQ-USI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASQ-USI/subscriptions","organizations_url":"https://api.github.com/users/ASQ-USI/orgs","repos_url":"https://api.github.com/users/ASQ-USI/repos","events_url":"https://api.github.com/users/ASQ-USI/events{/privacy}","received_events_url":"https://api.github.com/users/ASQ-USI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ASQ-USI/ASQ","description":"Increase teacher awareness and student engagement. Synchronous slideshow mixed with a classroom clicker.","fork":false,"url":"https://api.github.com/repos/ASQ-USI/ASQ","forks_url":"https://api.github.com/repos/ASQ-USI/ASQ/forks","keys_url":"https://api.github.com/repos/ASQ-USI/ASQ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ASQ-USI/ASQ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ASQ-USI/ASQ/teams","hooks_url":"https://api.github.com/repos/ASQ-USI/ASQ/hooks","issue_events_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/events{/number}","events_url":"https://api.github.com/repos/ASQ-USI/ASQ/events","assignees_url":"https://api.github.com/repos/ASQ-USI/ASQ/assignees{/user}","branches_url":"https://api.github.com/repos/ASQ-USI/ASQ/branches{/branch}","tags_url":"https://api.github.com/repos/ASQ-USI/ASQ/tags","blobs_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/refs{/sha}","trees_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ASQ-USI/ASQ/statuses/{sha}","languages_url":"https://api.github.com/repos/ASQ-USI/ASQ/languages","stargazers_url":"https://api.github.com/repos/ASQ-USI/ASQ/stargazers","contributors_url":"https://api.github.com/repos/ASQ-USI/ASQ/contributors","subscribers_url":"https://api.github.com/repos/ASQ-USI/ASQ/subscribers","subscription_url":"https://api.github.com/repos/ASQ-USI/ASQ/subscription","commits_url":"https://api.github.com/repos/ASQ-USI/ASQ/commits{/sha}","git_commits_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/commits{/sha}","comments_url":"https://api.github.com/repos/ASQ-USI/ASQ/comments{/number}","issue_comment_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/comments{/number}","contents_url":"https://api.github.com/repos/ASQ-USI/ASQ/contents/{+path}","compare_url":"https://api.github.com/repos/ASQ-USI/ASQ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ASQ-USI/ASQ/merges","archive_url":"https://api.github.com/repos/ASQ-USI/ASQ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ASQ-USI/ASQ/downloads","issues_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues{/number}","pulls_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls{/number}","milestones_url":"https://api.github.com/repos/ASQ-USI/ASQ/milestones{/number}","notifications_url":"https://api.github.com/repos/ASQ-USI/ASQ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ASQ-USI/ASQ/labels{/name}","releases_url":"https://api.github.com/repos/ASQ-USI/ASQ/releases{/id}","deployments_url":"https://api.github.com/repos/ASQ-USI/ASQ/deployments","created_at":"2013-03-20T14:59:19Z","updated_at":"2016-11-08T16:38:51Z","pushed_at":"2016-12-03T08:15:09Z","git_url":"git://github.com/ASQ-USI/ASQ.git","ssh_url":"git@github.com:ASQ-USI/ASQ.git","clone_url":"https://github.com/ASQ-USI/ASQ.git","svn_url":"https://github.com/ASQ-USI/ASQ","homepage":"http://asq.inf.usi.ch/","size":187847,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":29,"forks":4,"open_issues":29,"watchers":7,"default_branch":"master"}},"base":{"label":"ASQ-USI:master","ref":"master","sha":"5ca3962c6f4c5dd40bf8422e65bde6702e111c7f","user":{"login":"ASQ-USI","id":3921676,"avatar_url":"https://avatars.githubusercontent.com/u/3921676?v=3","gravatar_id":"","url":"https://api.github.com/users/ASQ-USI","html_url":"https://github.com/ASQ-USI","followers_url":"https://api.github.com/users/ASQ-USI/followers","following_url":"https://api.github.com/users/ASQ-USI/following{/other_user}","gists_url":"https://api.github.com/users/ASQ-USI/gists{/gist_id}","starred_url":"https://api.github.com/users/ASQ-USI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASQ-USI/subscriptions","organizations_url":"https://api.github.com/users/ASQ-USI/orgs","repos_url":"https://api.github.com/users/ASQ-USI/repos","events_url":"https://api.github.com/users/ASQ-USI/events{/privacy}","received_events_url":"https://api.github.com/users/ASQ-USI/received_events","type":"Organization","site_admin":false},"repo":{"id":8906897,"name":"ASQ","full_name":"ASQ-USI/ASQ","owner":{"login":"ASQ-USI","id":3921676,"avatar_url":"https://avatars.githubusercontent.com/u/3921676?v=3","gravatar_id":"","url":"https://api.github.com/users/ASQ-USI","html_url":"https://github.com/ASQ-USI","followers_url":"https://api.github.com/users/ASQ-USI/followers","following_url":"https://api.github.com/users/ASQ-USI/following{/other_user}","gists_url":"https://api.github.com/users/ASQ-USI/gists{/gist_id}","starred_url":"https://api.github.com/users/ASQ-USI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASQ-USI/subscriptions","organizations_url":"https://api.github.com/users/ASQ-USI/orgs","repos_url":"https://api.github.com/users/ASQ-USI/repos","events_url":"https://api.github.com/users/ASQ-USI/events{/privacy}","received_events_url":"https://api.github.com/users/ASQ-USI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ASQ-USI/ASQ","description":"Increase teacher awareness and student engagement. Synchronous slideshow mixed with a classroom clicker.","fork":false,"url":"https://api.github.com/repos/ASQ-USI/ASQ","forks_url":"https://api.github.com/repos/ASQ-USI/ASQ/forks","keys_url":"https://api.github.com/repos/ASQ-USI/ASQ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ASQ-USI/ASQ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ASQ-USI/ASQ/teams","hooks_url":"https://api.github.com/repos/ASQ-USI/ASQ/hooks","issue_events_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/events{/number}","events_url":"https://api.github.com/repos/ASQ-USI/ASQ/events","assignees_url":"https://api.github.com/repos/ASQ-USI/ASQ/assignees{/user}","branches_url":"https://api.github.com/repos/ASQ-USI/ASQ/branches{/branch}","tags_url":"https://api.github.com/repos/ASQ-USI/ASQ/tags","blobs_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/refs{/sha}","trees_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ASQ-USI/ASQ/statuses/{sha}","languages_url":"https://api.github.com/repos/ASQ-USI/ASQ/languages","stargazers_url":"https://api.github.com/repos/ASQ-USI/ASQ/stargazers","contributors_url":"https://api.github.com/repos/ASQ-USI/ASQ/contributors","subscribers_url":"https://api.github.com/repos/ASQ-USI/ASQ/subscribers","subscription_url":"https://api.github.com/repos/ASQ-USI/ASQ/subscription","commits_url":"https://api.github.com/repos/ASQ-USI/ASQ/commits{/sha}","git_commits_url":"https://api.github.com/repos/ASQ-USI/ASQ/git/commits{/sha}","comments_url":"https://api.github.com/repos/ASQ-USI/ASQ/comments{/number}","issue_comment_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues/comments{/number}","contents_url":"https://api.github.com/repos/ASQ-USI/ASQ/contents/{+path}","compare_url":"https://api.github.com/repos/ASQ-USI/ASQ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ASQ-USI/ASQ/merges","archive_url":"https://api.github.com/repos/ASQ-USI/ASQ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ASQ-USI/ASQ/downloads","issues_url":"https://api.github.com/repos/ASQ-USI/ASQ/issues{/number}","pulls_url":"https://api.github.com/repos/ASQ-USI/ASQ/pulls{/number}","milestones_url":"https://api.github.com/repos/ASQ-USI/ASQ/milestones{/number}","notifications_url":"https://api.github.com/repos/ASQ-USI/ASQ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ASQ-USI/ASQ/labels{/name}","releases_url":"https://api.github.com/repos/ASQ-USI/ASQ/releases{/id}","deployments_url":"https://api.github.com/repos/ASQ-USI/ASQ/deployments","created_at":"2013-03-20T14:59:19Z","updated_at":"2016-11-08T16:38:51Z","pushed_at":"2016-12-03T08:15:09Z","git_url":"git://github.com/ASQ-USI/ASQ.git","ssh_url":"git@github.com:ASQ-USI/ASQ.git","clone_url":"https://github.com/ASQ-USI/ASQ.git","svn_url":"https://github.com/ASQ-USI/ASQ","homepage":"http://asq.inf.usi.ch/","size":187847,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":29,"forks":4,"open_issues":29,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89"},"html":{"href":"https://github.com/ASQ-USI/ASQ/pull/89"},"issue":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/issues/89"},"comments":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/ASQ-USI/ASQ/statuses/01b00e3c959d72eaf9b982dccc08d3a104adc349"}}}}
{"actor":{"display_login":"triglian"}}