GitHub PullRequestEvent at 2014-08-25 02:18:59
Repository: grunt-docs
Actor: bucaran
Payload: {"action":"opened","number":92,"pull_request":{"url":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92","id":20226919,"html_url":"https://github.com/gruntjs/grunt-docs/pull/92","diff_url":"https://github.com/gruntjs/grunt-docs/pull/92.diff","patch_url":"https://github.com/gruntjs/grunt-docs/pull/92.patch","issue_url":"https://api.github.com/repos/gruntjs/grunt-docs/issues/92","number":92,"state":"open","locked":false,"title":"Added info and example to the grunt.config.merge doc blurb.","user":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=2","gravatar_id":"749bc04c9edfd5d5ad5799afbc0e5e62","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"body":"### Tiny add to the ```grunt.config.merge``` documentation.\r\nI was trying to append a target to a task and it took me a while to figure out this can be done with ```grunt.config.merge```. I wasn't so sure about how to do it either so a simple example would have helped too. I propose this tiny add to fix that.\r\n\r\nAnd just for reference, here is my code:\r\n\r\n```coffeescript\r\n  grunt.registerTask \"samples\", ->\r\n    samples = grunt.file.readJSON(\"package.json\").samples\r\n    return unless samples.enabled\r\n    grunt.config \"jade\",\r\n      samples: files: [\r\n        expand: true\r\n        cwd: samples.path\r\n        src: [\"*.jade\"]\r\n        dest: samples.local\r\n        ext: \".php\"\r\n      ]\r\n    grunt.config.merge\r\n      watch:\r\n        files: [samples.path + \"*.jade\"]\r\n        tasks: [\"samples\"]\r\n    grunt.task.run \"jade\"\r\n```","created_at":"2014-08-25T02:18:59Z","updated_at":"2014-08-25T02:18:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92/commits","review_comments_url":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92/comments","review_comment_url":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gruntjs/grunt-docs/issues/92/comments","statuses_url":"https://api.github.com/repos/gruntjs/grunt-docs/statuses/6b7f0ffbc782ccc21a562b75ffea338e919c1838","head":{"label":"bucaran:patch-1","ref":"patch-1","sha":"6b7f0ffbc782ccc21a562b75ffea338e919c1838","user":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=2","gravatar_id":"749bc04c9edfd5d5ad5799afbc0e5e62","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"repo":{"id":23298466,"name":"grunt-docs","full_name":"bucaran/grunt-docs","owner":{"login":"bucaran","id":8317250,"avatar_url":"https://avatars.githubusercontent.com/u/8317250?v=2","gravatar_id":"749bc04c9edfd5d5ad5799afbc0e5e62","url":"https://api.github.com/users/bucaran","html_url":"https://github.com/bucaran","followers_url":"https://api.github.com/users/bucaran/followers","following_url":"https://api.github.com/users/bucaran/following{/other_user}","gists_url":"https://api.github.com/users/bucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/bucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bucaran/subscriptions","organizations_url":"https://api.github.com/users/bucaran/orgs","repos_url":"https://api.github.com/users/bucaran/repos","events_url":"https://api.github.com/users/bucaran/events{/privacy}","received_events_url":"https://api.github.com/users/bucaran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bucaran/grunt-docs","description":"Grunt documentation.","fork":true,"url":"https://api.github.com/repos/bucaran/grunt-docs","forks_url":"https://api.github.com/repos/bucaran/grunt-docs/forks","keys_url":"https://api.github.com/repos/bucaran/grunt-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bucaran/grunt-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bucaran/grunt-docs/teams","hooks_url":"https://api.github.com/repos/bucaran/grunt-docs/hooks","issue_events_url":"https://api.github.com/repos/bucaran/grunt-docs/issues/events{/number}","events_url":"https://api.github.com/repos/bucaran/grunt-docs/events","assignees_url":"https://api.github.com/repos/bucaran/grunt-docs/assignees{/user}","branches_url":"https://api.github.com/repos/bucaran/grunt-docs/branches{/branch}","tags_url":"https://api.github.com/repos/bucaran/grunt-docs/tags","blobs_url":"https://api.github.com/repos/bucaran/grunt-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bucaran/grunt-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bucaran/grunt-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bucaran/grunt-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bucaran/grunt-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/bucaran/grunt-docs/languages","stargazers_url":"https://api.github.com/repos/bucaran/grunt-docs/stargazers","contributors_url":"https://api.github.com/repos/bucaran/grunt-docs/contributors","subscribers_url":"https://api.github.com/repos/bucaran/grunt-docs/subscribers","subscription_url":"https://api.github.com/repos/bucaran/grunt-docs/subscription","commits_url":"https://api.github.com/repos/bucaran/grunt-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bucaran/grunt-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bucaran/grunt-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bucaran/grunt-docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/bucaran/grunt-docs/contents/{+path}","compare_url":"https://api.github.com/repos/bucaran/grunt-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bucaran/grunt-docs/merges","archive_url":"https://api.github.com/repos/bucaran/grunt-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bucaran/grunt-docs/downloads","issues_url":"https://api.github.com/repos/bucaran/grunt-docs/issues{/number}","pulls_url":"https://api.github.com/repos/bucaran/grunt-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/bucaran/grunt-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/bucaran/grunt-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bucaran/grunt-docs/labels{/name}","releases_url":"https://api.github.com/repos/bucaran/grunt-docs/releases{/id}","created_at":"2014-08-25T01:51:19Z","updated_at":"2014-08-19T13:38:33Z","pushed_at":"2014-08-25T02:06:15Z","git_url":"git://github.com/bucaran/grunt-docs.git","ssh_url":"git@github.com:bucaran/grunt-docs.git","clone_url":"https://github.com/bucaran/grunt-docs.git","svn_url":"https://github.com/bucaran/grunt-docs","homepage":null,"size":630,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gruntjs:master","ref":"master","sha":"d9ac537df12882f8bd25ec4b0f3d5b8325fea820","user":{"login":"gruntjs","id":1630826,"avatar_url":"https://avatars.githubusercontent.com/u/1630826?v=2","gravatar_id":"801a04ad77406f5ba958a607f2b27880","url":"https://api.github.com/users/gruntjs","html_url":"https://github.com/gruntjs","followers_url":"https://api.github.com/users/gruntjs/followers","following_url":"https://api.github.com/users/gruntjs/following{/other_user}","gists_url":"https://api.github.com/users/gruntjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gruntjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruntjs/subscriptions","organizations_url":"https://api.github.com/users/gruntjs/orgs","repos_url":"https://api.github.com/users/gruntjs/repos","events_url":"https://api.github.com/users/gruntjs/events{/privacy}","received_events_url":"https://api.github.com/users/gruntjs/received_events","type":"Organization","site_admin":false},"repo":{"id":10774743,"name":"grunt-docs","full_name":"gruntjs/grunt-docs","owner":{"login":"gruntjs","id":1630826,"avatar_url":"https://avatars.githubusercontent.com/u/1630826?v=2","gravatar_id":"801a04ad77406f5ba958a607f2b27880","url":"https://api.github.com/users/gruntjs","html_url":"https://github.com/gruntjs","followers_url":"https://api.github.com/users/gruntjs/followers","following_url":"https://api.github.com/users/gruntjs/following{/other_user}","gists_url":"https://api.github.com/users/gruntjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gruntjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruntjs/subscriptions","organizations_url":"https://api.github.com/users/gruntjs/orgs","repos_url":"https://api.github.com/users/gruntjs/repos","events_url":"https://api.github.com/users/gruntjs/events{/privacy}","received_events_url":"https://api.github.com/users/gruntjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gruntjs/grunt-docs","description":"Grunt documentation.","fork":false,"url":"https://api.github.com/repos/gruntjs/grunt-docs","forks_url":"https://api.github.com/repos/gruntjs/grunt-docs/forks","keys_url":"https://api.github.com/repos/gruntjs/grunt-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gruntjs/grunt-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gruntjs/grunt-docs/teams","hooks_url":"https://api.github.com/repos/gruntjs/grunt-docs/hooks","issue_events_url":"https://api.github.com/repos/gruntjs/grunt-docs/issues/events{/number}","events_url":"https://api.github.com/repos/gruntjs/grunt-docs/events","assignees_url":"https://api.github.com/repos/gruntjs/grunt-docs/assignees{/user}","branches_url":"https://api.github.com/repos/gruntjs/grunt-docs/branches{/branch}","tags_url":"https://api.github.com/repos/gruntjs/grunt-docs/tags","blobs_url":"https://api.github.com/repos/gruntjs/grunt-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gruntjs/grunt-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gruntjs/grunt-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gruntjs/grunt-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gruntjs/grunt-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/gruntjs/grunt-docs/languages","stargazers_url":"https://api.github.com/repos/gruntjs/grunt-docs/stargazers","contributors_url":"https://api.github.com/repos/gruntjs/grunt-docs/contributors","subscribers_url":"https://api.github.com/repos/gruntjs/grunt-docs/subscribers","subscription_url":"https://api.github.com/repos/gruntjs/grunt-docs/subscription","commits_url":"https://api.github.com/repos/gruntjs/grunt-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gruntjs/grunt-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gruntjs/grunt-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gruntjs/grunt-docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/gruntjs/grunt-docs/contents/{+path}","compare_url":"https://api.github.com/repos/gruntjs/grunt-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gruntjs/grunt-docs/merges","archive_url":"https://api.github.com/repos/gruntjs/grunt-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gruntjs/grunt-docs/downloads","issues_url":"https://api.github.com/repos/gruntjs/grunt-docs/issues{/number}","pulls_url":"https://api.github.com/repos/gruntjs/grunt-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/gruntjs/grunt-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/gruntjs/grunt-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gruntjs/grunt-docs/labels{/name}","releases_url":"https://api.github.com/repos/gruntjs/grunt-docs/releases{/id}","created_at":"2013-06-18T22:18:36Z","updated_at":"2014-08-19T13:38:33Z","pushed_at":"2014-08-07T05:17:15Z","git_url":"git://github.com/gruntjs/grunt-docs.git","ssh_url":"git@github.com:gruntjs/grunt-docs.git","clone_url":"https://github.com/gruntjs/grunt-docs.git","svn_url":"https://github.com/gruntjs/grunt-docs","homepage":null,"size":1906,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":83,"mirror_url":null,"open_issues_count":9,"forks":83,"open_issues":9,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92"},"html":{"href":"https://github.com/gruntjs/grunt-docs/pull/92"},"issue":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/issues/92"},"comments":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/gruntjs/grunt-docs/statuses/6b7f0ffbc782ccc21a562b75ffea338e919c1838"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":1}}