{"action":"created","comment":{"url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/comments/59317990","id":59317990,"diff_hunk":"@@ -0,0 +1,46 @@\n+﻿namespace DatNET\n+\n+module Targets =\n+  open Fake\n+  open Fake.FileSystem\n+  open System.IO\n+\n+  let private RootDir = Directory.GetCurrentDirectory()\n+\n+  type ConfigParams =\n+    {\n+      SolutionFile : FileIncludes\n+      MSBuildArtifacts : FileIncludes\n+    }\n+\n+  let ConfigDefaults() =\n+    {\n+      SolutionFile = !! (Path.Combine(RootDir, \"*.sln\"))\n+      MSBuildArtifacts = !! \"**/bin/**.*\" ++ \"**/obj/**.*\"\n+    }\n+\n+  let private _CreateTarget targetName parameters targetFunc =\n+    Target targetName targetFunc\n+    parameters\n+\n+  let private _MSBuildTarget parameters =\n+    _CreateTarget \"MSBuild\" parameters (fun _ ->\n+        parameters.SolutionFile\n+            |> MSBuildRelease null \"Build\"\n+            |> ignore\n+    )\n+\n+  let private _CleanTarget parameters =\n+    _CreateTarget \"Clean\" parameters (fun _ ->\n+         CleanDirs parameters.MSBuildArtifacts\n+    )\n+\n+  let Initialize setParams =\n+    let parameters = ConfigDefaults() |> setParams\n+\n+    parameters\n+        |> _MSBuildTarget\n+        |> _CleanTarget\n+\n+  let InitializeDefault () =\n+    Initialize id","path":"src/FSharpFakeTargets/targets.fs","position":46,"original_position":46,"commit_id":"84189128271cd902abad57173bc99f3d31f157a8","original_commit_id":"84189128271cd902abad57173bc99f3d31f157a8","user":{"login":"awseward","id":901035,"avatar_url":"https://avatars.githubusercontent.com/u/901035?v=3","gravatar_id":"","url":"https://api.github.com/users/awseward","html_url":"https://github.com/awseward","followers_url":"https://api.github.com/users/awseward/followers","following_url":"https://api.github.com/users/awseward/following{/other_user}","gists_url":"https://api.github.com/users/awseward/gists{/gist_id}","starred_url":"https://api.github.com/users/awseward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awseward/subscriptions","organizations_url":"https://api.github.com/users/awseward/orgs","repos_url":"https://api.github.com/users/awseward/repos","events_url":"https://api.github.com/users/awseward/events{/privacy}","received_events_url":"https://api.github.com/users/awseward/received_events","type":"User","site_admin":false},"body":"Can we just one-line this?","created_at":"2016-04-12T04:00:11Z","updated_at":"2016-04-12T04:00:11Z","html_url":"https://github.com/datNET/fs-fake-targets/pull/1#discussion_r59317990","pull_request_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/comments/59317990"},"html":{"href":"https://github.com/datNET/fs-fake-targets/pull/1#discussion_r59317990"},"pull_request":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1","id":66097449,"html_url":"https://github.com/datNET/fs-fake-targets/pull/1","diff_url":"https://github.com/datNET/fs-fake-targets/pull/1.diff","patch_url":"https://github.com/datNET/fs-fake-targets/pull/1.patch","issue_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/1","number":1,"state":"open","locked":false,"title":"Start creating ConfigParams type","user":{"login":"mglodack","id":3950171,"avatar_url":"https://avatars.githubusercontent.com/u/3950171?v=3","gravatar_id":"","url":"https://api.github.com/users/mglodack","html_url":"https://github.com/mglodack","followers_url":"https://api.github.com/users/mglodack/followers","following_url":"https://api.github.com/users/mglodack/following{/other_user}","gists_url":"https://api.github.com/users/mglodack/gists{/gist_id}","starred_url":"https://api.github.com/users/mglodack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mglodack/subscriptions","organizations_url":"https://api.github.com/users/mglodack/orgs","repos_url":"https://api.github.com/users/mglodack/repos","events_url":"https://api.github.com/users/mglodack/events{/privacy}","received_events_url":"https://api.github.com/users/mglodack/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T03:56:15Z","updated_at":"2016-04-12T04:00:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ced59014969488b7abed8bbef407e79ddc7c3969","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1/commits","review_comments_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1/comments","review_comment_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/1/comments","statuses_url":"https://api.github.com/repos/datNET/fs-fake-targets/statuses/84189128271cd902abad57173bc99f3d31f157a8","head":{"label":"datNET:try-it-out","ref":"try-it-out","sha":"84189128271cd902abad57173bc99f3d31f157a8","user":{"login":"datNET","id":17077433,"avatar_url":"https://avatars.githubusercontent.com/u/17077433?v=3","gravatar_id":"","url":"https://api.github.com/users/datNET","html_url":"https://github.com/datNET","followers_url":"https://api.github.com/users/datNET/followers","following_url":"https://api.github.com/users/datNET/following{/other_user}","gists_url":"https://api.github.com/users/datNET/gists{/gist_id}","starred_url":"https://api.github.com/users/datNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datNET/subscriptions","organizations_url":"https://api.github.com/users/datNET/orgs","repos_url":"https://api.github.com/users/datNET/repos","events_url":"https://api.github.com/users/datNET/events{/privacy}","received_events_url":"https://api.github.com/users/datNET/received_events","type":"Organization","site_admin":false},"repo":{"id":53219881,"name":"fs-fake-targets","full_name":"datNET/fs-fake-targets","owner":{"login":"datNET","id":17077433,"avatar_url":"https://avatars.githubusercontent.com/u/17077433?v=3","gravatar_id":"","url":"https://api.github.com/users/datNET","html_url":"https://github.com/datNET","followers_url":"https://api.github.com/users/datNET/followers","following_url":"https://api.github.com/users/datNET/following{/other_user}","gists_url":"https://api.github.com/users/datNET/gists{/gist_id}","starred_url":"https://api.github.com/users/datNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datNET/subscriptions","organizations_url":"https://api.github.com/users/datNET/orgs","repos_url":"https://api.github.com/users/datNET/repos","events_url":"https://api.github.com/users/datNET/events{/privacy}","received_events_url":"https://api.github.com/users/datNET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datNET/fs-fake-targets","description":"","fork":false,"url":"https://api.github.com/repos/datNET/fs-fake-targets","forks_url":"https://api.github.com/repos/datNET/fs-fake-targets/forks","keys_url":"https://api.github.com/repos/datNET/fs-fake-targets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datNET/fs-fake-targets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datNET/fs-fake-targets/teams","hooks_url":"https://api.github.com/repos/datNET/fs-fake-targets/hooks","issue_events_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/events{/number}","events_url":"https://api.github.com/repos/datNET/fs-fake-targets/events","assignees_url":"https://api.github.com/repos/datNET/fs-fake-targets/assignees{/user}","branches_url":"https://api.github.com/repos/datNET/fs-fake-targets/branches{/branch}","tags_url":"https://api.github.com/repos/datNET/fs-fake-targets/tags","blobs_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/refs{/sha}","trees_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datNET/fs-fake-targets/statuses/{sha}","languages_url":"https://api.github.com/repos/datNET/fs-fake-targets/languages","stargazers_url":"https://api.github.com/repos/datNET/fs-fake-targets/stargazers","contributors_url":"https://api.github.com/repos/datNET/fs-fake-targets/contributors","subscribers_url":"https://api.github.com/repos/datNET/fs-fake-targets/subscribers","subscription_url":"https://api.github.com/repos/datNET/fs-fake-targets/subscription","commits_url":"https://api.github.com/repos/datNET/fs-fake-targets/commits{/sha}","git_commits_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/commits{/sha}","comments_url":"https://api.github.com/repos/datNET/fs-fake-targets/comments{/number}","issue_comment_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/comments{/number}","contents_url":"https://api.github.com/repos/datNET/fs-fake-targets/contents/{+path}","compare_url":"https://api.github.com/repos/datNET/fs-fake-targets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datNET/fs-fake-targets/merges","archive_url":"https://api.github.com/repos/datNET/fs-fake-targets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datNET/fs-fake-targets/downloads","issues_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues{/number}","pulls_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls{/number}","milestones_url":"https://api.github.com/repos/datNET/fs-fake-targets/milestones{/number}","notifications_url":"https://api.github.com/repos/datNET/fs-fake-targets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datNET/fs-fake-targets/labels{/name}","releases_url":"https://api.github.com/repos/datNET/fs-fake-targets/releases{/id}","deployments_url":"https://api.github.com/repos/datNET/fs-fake-targets/deployments","created_at":"2016-03-05T19:43:18Z","updated_at":"2016-04-12T02:14:25Z","pushed_at":"2016-04-12T03:59:29Z","git_url":"git://github.com/datNET/fs-fake-targets.git","ssh_url":"git@github.com:datNET/fs-fake-targets.git","clone_url":"https://github.com/datNET/fs-fake-targets.git","svn_url":"https://github.com/datNET/fs-fake-targets","homepage":null,"size":21,"stargazers_count":1,"watchers_count":1,"language":"F#","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"datNET:master","ref":"master","sha":"504a8a6f5d6840a485ca766ac928ce69a49e87b3","user":{"login":"datNET","id":17077433,"avatar_url":"https://avatars.githubusercontent.com/u/17077433?v=3","gravatar_id":"","url":"https://api.github.com/users/datNET","html_url":"https://github.com/datNET","followers_url":"https://api.github.com/users/datNET/followers","following_url":"https://api.github.com/users/datNET/following{/other_user}","gists_url":"https://api.github.com/users/datNET/gists{/gist_id}","starred_url":"https://api.github.com/users/datNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datNET/subscriptions","organizations_url":"https://api.github.com/users/datNET/orgs","repos_url":"https://api.github.com/users/datNET/repos","events_url":"https://api.github.com/users/datNET/events{/privacy}","received_events_url":"https://api.github.com/users/datNET/received_events","type":"Organization","site_admin":false},"repo":{"id":53219881,"name":"fs-fake-targets","full_name":"datNET/fs-fake-targets","owner":{"login":"datNET","id":17077433,"avatar_url":"https://avatars.githubusercontent.com/u/17077433?v=3","gravatar_id":"","url":"https://api.github.com/users/datNET","html_url":"https://github.com/datNET","followers_url":"https://api.github.com/users/datNET/followers","following_url":"https://api.github.com/users/datNET/following{/other_user}","gists_url":"https://api.github.com/users/datNET/gists{/gist_id}","starred_url":"https://api.github.com/users/datNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datNET/subscriptions","organizations_url":"https://api.github.com/users/datNET/orgs","repos_url":"https://api.github.com/users/datNET/repos","events_url":"https://api.github.com/users/datNET/events{/privacy}","received_events_url":"https://api.github.com/users/datNET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datNET/fs-fake-targets","description":"","fork":false,"url":"https://api.github.com/repos/datNET/fs-fake-targets","forks_url":"https://api.github.com/repos/datNET/fs-fake-targets/forks","keys_url":"https://api.github.com/repos/datNET/fs-fake-targets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datNET/fs-fake-targets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datNET/fs-fake-targets/teams","hooks_url":"https://api.github.com/repos/datNET/fs-fake-targets/hooks","issue_events_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/events{/number}","events_url":"https://api.github.com/repos/datNET/fs-fake-targets/events","assignees_url":"https://api.github.com/repos/datNET/fs-fake-targets/assignees{/user}","branches_url":"https://api.github.com/repos/datNET/fs-fake-targets/branches{/branch}","tags_url":"https://api.github.com/repos/datNET/fs-fake-targets/tags","blobs_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/refs{/sha}","trees_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datNET/fs-fake-targets/statuses/{sha}","languages_url":"https://api.github.com/repos/datNET/fs-fake-targets/languages","stargazers_url":"https://api.github.com/repos/datNET/fs-fake-targets/stargazers","contributors_url":"https://api.github.com/repos/datNET/fs-fake-targets/contributors","subscribers_url":"https://api.github.com/repos/datNET/fs-fake-targets/subscribers","subscription_url":"https://api.github.com/repos/datNET/fs-fake-targets/subscription","commits_url":"https://api.github.com/repos/datNET/fs-fake-targets/commits{/sha}","git_commits_url":"https://api.github.com/repos/datNET/fs-fake-targets/git/commits{/sha}","comments_url":"https://api.github.com/repos/datNET/fs-fake-targets/comments{/number}","issue_comment_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues/comments{/number}","contents_url":"https://api.github.com/repos/datNET/fs-fake-targets/contents/{+path}","compare_url":"https://api.github.com/repos/datNET/fs-fake-targets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datNET/fs-fake-targets/merges","archive_url":"https://api.github.com/repos/datNET/fs-fake-targets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datNET/fs-fake-targets/downloads","issues_url":"https://api.github.com/repos/datNET/fs-fake-targets/issues{/number}","pulls_url":"https://api.github.com/repos/datNET/fs-fake-targets/pulls{/number}","milestones_url":"https://api.github.com/repos/datNET/fs-fake-targets/milestones{/number}","notifications_url":"https://api.github.com/repos/datNET/fs-fake-targets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datNET/fs-fake-targets/labels{/name}","releases_url":"https://api.github.com/repos/datNET/fs-fake-targets/releases{/id}","deployments_url":"https://api.github.com/repos/datNET/fs-fake-targets/deployments","created_at":"2016-03-05T19:43:18Z","updated_at":"2016-04-12T02:14:25Z","pushed_at":"2016-04-12T03:59:29Z","git_url":"git://github.com/datNET/fs-fake-targets.git","ssh_url":"git@github.com:datNET/fs-fake-targets.git","clone_url":"https://github.com/datNET/fs-fake-targets.git","svn_url":"https://github.com/datNET/fs-fake-targets","homepage":null,"size":21,"stargazers_count":1,"watchers_count":1,"language":"F#","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1"},"html":{"href":"https://github.com/datNET/fs-fake-targets/pull/1"},"issue":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/issues/1"},"comments":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/datNET/fs-fake-targets/statuses/84189128271cd902abad57173bc99f3d31f157a8"}}}}