{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4","id":14952931,"html_url":"https://github.com/divshot/grunt-divshot/pull/4","diff_url":"https://github.com/divshot/grunt-divshot/pull/4.diff","patch_url":"https://github.com/divshot/grunt-divshot/pull/4.patch","issue_url":"https://api.github.com/repos/divshot/grunt-divshot/issues/4","number":4,"state":"closed","locked":false,"title":"Proposed API changes","user":{"login":"hijonathan","id":466395,"avatar_url":"https://avatars.githubusercontent.com/u/466395?v=3","gravatar_id":"","url":"https://api.github.com/users/hijonathan","html_url":"https://github.com/hijonathan","followers_url":"https://api.github.com/users/hijonathan/followers","following_url":"https://api.github.com/users/hijonathan/following{/other_user}","gists_url":"https://api.github.com/users/hijonathan/gists{/gist_id}","starred_url":"https://api.github.com/users/hijonathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hijonathan/subscriptions","organizations_url":"https://api.github.com/users/hijonathan/orgs","repos_url":"https://api.github.com/users/hijonathan/repos","events_url":"https://api.github.com/users/hijonathan/events{/privacy}","received_events_url":"https://api.github.com/users/hijonathan/received_events","type":"User","site_admin":false},"body":"Sorry it took so long. I felt bad asking for a shirt, so here's something that's hopefully helpful! I'd totes write one for Gulp, but I don't use it.\r\n\r\nMain difference is that it takes better advantage of the grunt `multiTask` nesting, so options can be inherited all the way down the chain. I imagine that most configurations would just have `divshot.options` and `divshot.push.production.options` set, but people can go nuts if they really want to.\r\n\r\nA few non-obvious notes:\r\n\r\n- Calling `divshot` without arguments will just log the available commands. It won't run all the subtasks.\r\n- Calling `divshot:push` could either do nothing or deploy `development`, like it does for the CLI.\r\n- Calling `divshot:promote` without arguments should probably do nothing.\r\n\r\nJust a proposal. Let me know what you think, and I can make it reality.","created_at":"2014-04-20T16:45:18Z","updated_at":"2016-05-13T19:32:01Z","closed_at":"2016-05-13T19:32:01Z","merged_at":null,"merge_commit_sha":"aacde47c0b94daa3426ca4343f376613cd9d6659","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4/commits","review_comments_url":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4/comments","review_comment_url":"https://api.github.com/repos/divshot/grunt-divshot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/divshot/grunt-divshot/issues/4/comments","statuses_url":"https://api.github.com/repos/divshot/grunt-divshot/statuses/57280eb7bb66ec7477066bb1069c4805056db915","head":{"label":"appcues:api","ref":"api","sha":"57280eb7bb66ec7477066bb1069c4805056db915","user":{"login":"appcues","id":5355844,"avatar_url":"https://avatars.githubusercontent.com/u/5355844?v=3","gravatar_id":"","url":"https://api.github.com/users/appcues","html_url":"https://github.com/appcues","followers_url":"https://api.github.com/users/appcues/followers","following_url":"https://api.github.com/users/appcues/following{/other_user}","gists_url":"https://api.github.com/users/appcues/gists{/gist_id}","starred_url":"https://api.github.com/users/appcues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcues/subscriptions","organizations_url":"https://api.github.com/users/appcues/orgs","repos_url":"https://api.github.com/users/appcues/repos","events_url":"https://api.github.com/users/appcues/events{/privacy}","received_events_url":"https://api.github.com/users/appcues/received_events","type":"Organization","site_admin":false},"repo":{"id":16180027,"name":"grunt-divshot","full_name":"appcues/grunt-divshot","owner":{"login":"appcues","id":5355844,"avatar_url":"https://avatars.githubusercontent.com/u/5355844?v=3","gravatar_id":"","url":"https://api.github.com/users/appcues","html_url":"https://github.com/appcues","followers_url":"https://api.github.com/users/appcues/followers","following_url":"https://api.github.com/users/appcues/following{/other_user}","gists_url":"https://api.github.com/users/appcues/gists{/gist_id}","starred_url":"https://api.github.com/users/appcues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcues/subscriptions","organizations_url":"https://api.github.com/users/appcues/orgs","repos_url":"https://api.github.com/users/appcues/repos","events_url":"https://api.github.com/users/appcues/events{/privacy}","received_events_url":"https://api.github.com/users/appcues/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcues/grunt-divshot","description":"Deploy to Divshot.io using Grunt","fork":true,"url":"https://api.github.com/repos/appcues/grunt-divshot","forks_url":"https://api.github.com/repos/appcues/grunt-divshot/forks","keys_url":"https://api.github.com/repos/appcues/grunt-divshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcues/grunt-divshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcues/grunt-divshot/teams","hooks_url":"https://api.github.com/repos/appcues/grunt-divshot/hooks","issue_events_url":"https://api.github.com/repos/appcues/grunt-divshot/issues/events{/number}","events_url":"https://api.github.com/repos/appcues/grunt-divshot/events","assignees_url":"https://api.github.com/repos/appcues/grunt-divshot/assignees{/user}","branches_url":"https://api.github.com/repos/appcues/grunt-divshot/branches{/branch}","tags_url":"https://api.github.com/repos/appcues/grunt-divshot/tags","blobs_url":"https://api.github.com/repos/appcues/grunt-divshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcues/grunt-divshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcues/grunt-divshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcues/grunt-divshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcues/grunt-divshot/statuses/{sha}","languages_url":"https://api.github.com/repos/appcues/grunt-divshot/languages","stargazers_url":"https://api.github.com/repos/appcues/grunt-divshot/stargazers","contributors_url":"https://api.github.com/repos/appcues/grunt-divshot/contributors","subscribers_url":"https://api.github.com/repos/appcues/grunt-divshot/subscribers","subscription_url":"https://api.github.com/repos/appcues/grunt-divshot/subscription","commits_url":"https://api.github.com/repos/appcues/grunt-divshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcues/grunt-divshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcues/grunt-divshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcues/grunt-divshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcues/grunt-divshot/contents/{+path}","compare_url":"https://api.github.com/repos/appcues/grunt-divshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcues/grunt-divshot/merges","archive_url":"https://api.github.com/repos/appcues/grunt-divshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcues/grunt-divshot/downloads","issues_url":"https://api.github.com/repos/appcues/grunt-divshot/issues{/number}","pulls_url":"https://api.github.com/repos/appcues/grunt-divshot/pulls{/number}","milestones_url":"https://api.github.com/repos/appcues/grunt-divshot/milestones{/number}","notifications_url":"https://api.github.com/repos/appcues/grunt-divshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcues/grunt-divshot/labels{/name}","releases_url":"https://api.github.com/repos/appcues/grunt-divshot/releases{/id}","deployments_url":"https://api.github.com/repos/appcues/grunt-divshot/deployments","created_at":"2014-01-23T17:42:46Z","updated_at":"2015-02-24T17:15:20Z","pushed_at":"2016-05-13T19:31:51Z","git_url":"git://github.com/appcues/grunt-divshot.git","ssh_url":"git@github.com:appcues/grunt-divshot.git","clone_url":"https://github.com/appcues/grunt-divshot.git","svn_url":"https://github.com/appcues/grunt-divshot","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"divshot:master","ref":"master","sha":"d8e1047fa19f8debe00b3656c3f6a6cdce2c6451","user":{"login":"divshot","id":1644719,"avatar_url":"https://avatars.githubusercontent.com/u/1644719?v=3","gravatar_id":"","url":"https://api.github.com/users/divshot","html_url":"https://github.com/divshot","followers_url":"https://api.github.com/users/divshot/followers","following_url":"https://api.github.com/users/divshot/following{/other_user}","gists_url":"https://api.github.com/users/divshot/gists{/gist_id}","starred_url":"https://api.github.com/users/divshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divshot/subscriptions","organizations_url":"https://api.github.com/users/divshot/orgs","repos_url":"https://api.github.com/users/divshot/repos","events_url":"https://api.github.com/users/divshot/events{/privacy}","received_events_url":"https://api.github.com/users/divshot/received_events","type":"Organization","site_admin":false},"repo":{"id":13229870,"name":"grunt-divshot","full_name":"divshot/grunt-divshot","owner":{"login":"divshot","id":1644719,"avatar_url":"https://avatars.githubusercontent.com/u/1644719?v=3","gravatar_id":"","url":"https://api.github.com/users/divshot","html_url":"https://github.com/divshot","followers_url":"https://api.github.com/users/divshot/followers","following_url":"https://api.github.com/users/divshot/following{/other_user}","gists_url":"https://api.github.com/users/divshot/gists{/gist_id}","starred_url":"https://api.github.com/users/divshot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divshot/subscriptions","organizations_url":"https://api.github.com/users/divshot/orgs","repos_url":"https://api.github.com/users/divshot/repos","events_url":"https://api.github.com/users/divshot/events{/privacy}","received_events_url":"https://api.github.com/users/divshot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/divshot/grunt-divshot","description":"Deploy to Divshot.io using Grunt","fork":false,"url":"https://api.github.com/repos/divshot/grunt-divshot","forks_url":"https://api.github.com/repos/divshot/grunt-divshot/forks","keys_url":"https://api.github.com/repos/divshot/grunt-divshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/divshot/grunt-divshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/divshot/grunt-divshot/teams","hooks_url":"https://api.github.com/repos/divshot/grunt-divshot/hooks","issue_events_url":"https://api.github.com/repos/divshot/grunt-divshot/issues/events{/number}","events_url":"https://api.github.com/repos/divshot/grunt-divshot/events","assignees_url":"https://api.github.com/repos/divshot/grunt-divshot/assignees{/user}","branches_url":"https://api.github.com/repos/divshot/grunt-divshot/branches{/branch}","tags_url":"https://api.github.com/repos/divshot/grunt-divshot/tags","blobs_url":"https://api.github.com/repos/divshot/grunt-divshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/divshot/grunt-divshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/divshot/grunt-divshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/divshot/grunt-divshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/divshot/grunt-divshot/statuses/{sha}","languages_url":"https://api.github.com/repos/divshot/grunt-divshot/languages","stargazers_url":"https://api.github.com/repos/divshot/grunt-divshot/stargazers","contributors_url":"https://api.github.com/repos/divshot/grunt-divshot/contributors","subscribers_url":"https://api.github.com/repos/divshot/grunt-divshot/subscribers","subscription_url":"https://api.github.com/repos/divshot/grunt-divshot/subscription","commits_url":"https://api.github.com/repos/divshot/grunt-divshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/divshot/grunt-divshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/divshot/grunt-divshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/divshot/grunt-divshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/divshot/grunt-divshot/contents/{+path}","compare_url":"https://api.github.com/repos/divshot/grunt-divshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/divshot/grunt-divshot/merges","archive_url":"https://api.github.com/repos/divshot/grunt-divshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/divshot/grunt-divshot/downloads","issues_url":"https://api.github.com/repos/divshot/grunt-divshot/issues{/number}","pulls_url":"https://api.github.com/repos/divshot/grunt-divshot/pulls{/number}","milestones_url":"https://api.github.com/repos/divshot/grunt-divshot/milestones{/number}","notifications_url":"https://api.github.com/repos/divshot/grunt-divshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/divshot/grunt-divshot/labels{/name}","releases_url":"https://api.github.com/repos/divshot/grunt-divshot/releases{/id}","deployments_url":"https://api.github.com/repos/divshot/grunt-divshot/deployments","created_at":"2013-09-30T23:05:23Z","updated_at":"2016-04-22T15:07:23Z","pushed_at":"2015-05-14T03:39:30Z","git_url":"git://github.com/divshot/grunt-divshot.git","ssh_url":"git@github.com:divshot/grunt-divshot.git","clone_url":"https://github.com/divshot/grunt-divshot.git","svn_url":"https://github.com/divshot/grunt-divshot","homepage":null,"size":367,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4"},"html":{"href":"https://github.com/divshot/grunt-divshot/pull/4"},"issue":{"href":"https://api.github.com/repos/divshot/grunt-divshot/issues/4"},"comments":{"href":"https://api.github.com/repos/divshot/grunt-divshot/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/divshot/grunt-divshot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/divshot/grunt-divshot/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/divshot/grunt-divshot/statuses/57280eb7bb66ec7477066bb1069c4805056db915"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":44,"deletions":22,"changed_files":1}}