{"action":"created","comment":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/comments/42947064","id":42947064,"diff_hunk":"@@ -0,0 +1,63 @@\n+cmake_minimum_required(VERSION 2.8)\n+\n+project(AG)\n+\n+#get the version from configure.ac\n+set(EXECUTE_COMMAND grep -Po \"(?<=\\\\[)([0-9.]+.[0-9]+.[0-9]+)(?=\\\\])\" ${AG_SOURCE_DIR}/configure.ac)\n+execute_process(COMMAND ${EXECUTE_COMMAND} OUTPUT_VARIABLE AG_VERSION)","path":"CMakeLists.txt","position":7,"original_position":7,"commit_id":"0d7fb2ce633e569da4e151741f533de1ba90212d","original_commit_id":"0d7fb2ce633e569da4e151741f533de1ba90212d","user":{"login":"rphillips","id":1963,"avatar_url":"https://avatars.githubusercontent.com/u/1963?v=3","gravatar_id":"","url":"https://api.github.com/users/rphillips","html_url":"https://github.com/rphillips","followers_url":"https://api.github.com/users/rphillips/followers","following_url":"https://api.github.com/users/rphillips/following{/other_user}","gists_url":"https://api.github.com/users/rphillips/gists{/gist_id}","starred_url":"https://api.github.com/users/rphillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rphillips/subscriptions","organizations_url":"https://api.github.com/users/rphillips/orgs","repos_url":"https://api.github.com/users/rphillips/repos","events_url":"https://api.github.com/users/rphillips/events{/privacy}","received_events_url":"https://api.github.com/users/rphillips/received_events","type":"User","site_admin":false},"body":"it would be portable to use cmake's file read and cmake's string match support to pull out the version.","created_at":"2015-10-25T16:54:44Z","updated_at":"2015-10-25T16:54:44Z","html_url":"https://github.com/ggreer/the_silver_searcher/pull/774#discussion_r42947064","pull_request_url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774","_links":{"self":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/comments/42947064"},"html":{"href":"https://github.com/ggreer/the_silver_searcher/pull/774#discussion_r42947064"},"pull_request":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774"}}},"pull_request":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774","id":48679457,"html_url":"https://github.com/ggreer/the_silver_searcher/pull/774","diff_url":"https://github.com/ggreer/the_silver_searcher/pull/774.diff","patch_url":"https://github.com/ggreer/the_silver_searcher/pull/774.patch","issue_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/774","number":774,"state":"open","locked":false,"title":"Adding CMake build","user":{"login":"coreylowman","id":7787278,"avatar_url":"https://avatars.githubusercontent.com/u/7787278?v=3","gravatar_id":"","url":"https://api.github.com/users/coreylowman","html_url":"https://github.com/coreylowman","followers_url":"https://api.github.com/users/coreylowman/followers","following_url":"https://api.github.com/users/coreylowman/following{/other_user}","gists_url":"https://api.github.com/users/coreylowman/gists{/gist_id}","starred_url":"https://api.github.com/users/coreylowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreylowman/subscriptions","organizations_url":"https://api.github.com/users/coreylowman/orgs","repos_url":"https://api.github.com/users/coreylowman/repos","events_url":"https://api.github.com/users/coreylowman/events{/privacy}","received_events_url":"https://api.github.com/users/coreylowman/received_events","type":"User","site_admin":false},"body":"Added a CMakeLists.txt file to enable building with cmake.","created_at":"2015-10-25T14:27:56Z","updated_at":"2015-10-25T16:54:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54eb28dd362971defca43518a27a83208908bf7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774/commits","review_comments_url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774/comments","review_comment_url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/774/comments","statuses_url":"https://api.github.com/repos/ggreer/the_silver_searcher/statuses/0d7fb2ce633e569da4e151741f533de1ba90212d","head":{"label":"coreylowman:master","ref":"master","sha":"0d7fb2ce633e569da4e151741f533de1ba90212d","user":{"login":"coreylowman","id":7787278,"avatar_url":"https://avatars.githubusercontent.com/u/7787278?v=3","gravatar_id":"","url":"https://api.github.com/users/coreylowman","html_url":"https://github.com/coreylowman","followers_url":"https://api.github.com/users/coreylowman/followers","following_url":"https://api.github.com/users/coreylowman/following{/other_user}","gists_url":"https://api.github.com/users/coreylowman/gists{/gist_id}","starred_url":"https://api.github.com/users/coreylowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreylowman/subscriptions","organizations_url":"https://api.github.com/users/coreylowman/orgs","repos_url":"https://api.github.com/users/coreylowman/repos","events_url":"https://api.github.com/users/coreylowman/events{/privacy}","received_events_url":"https://api.github.com/users/coreylowman/received_events","type":"User","site_admin":false},"repo":{"id":44913264,"name":"the_silver_searcher","full_name":"coreylowman/the_silver_searcher","owner":{"login":"coreylowman","id":7787278,"avatar_url":"https://avatars.githubusercontent.com/u/7787278?v=3","gravatar_id":"","url":"https://api.github.com/users/coreylowman","html_url":"https://github.com/coreylowman","followers_url":"https://api.github.com/users/coreylowman/followers","following_url":"https://api.github.com/users/coreylowman/following{/other_user}","gists_url":"https://api.github.com/users/coreylowman/gists{/gist_id}","starred_url":"https://api.github.com/users/coreylowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreylowman/subscriptions","organizations_url":"https://api.github.com/users/coreylowman/orgs","repos_url":"https://api.github.com/users/coreylowman/repos","events_url":"https://api.github.com/users/coreylowman/events{/privacy}","received_events_url":"https://api.github.com/users/coreylowman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coreylowman/the_silver_searcher","description":"A code-searching tool similar to ack, but faster.","fork":true,"url":"https://api.github.com/repos/coreylowman/the_silver_searcher","forks_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/forks","keys_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/teams","hooks_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/hooks","issue_events_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/issues/events{/number}","events_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/events","assignees_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/assignees{/user}","branches_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/branches{/branch}","tags_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/tags","blobs_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/statuses/{sha}","languages_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/languages","stargazers_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/stargazers","contributors_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/contributors","subscribers_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/subscribers","subscription_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/subscription","commits_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/contents/{+path}","compare_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/merges","archive_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/downloads","issues_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/issues{/number}","pulls_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/pulls{/number}","milestones_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/milestones{/number}","notifications_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/labels{/name}","releases_url":"https://api.github.com/repos/coreylowman/the_silver_searcher/releases{/id}","created_at":"2015-10-25T14:24:07Z","updated_at":"2015-10-25T14:24:10Z","pushed_at":"2015-10-25T14:25:56Z","git_url":"git://github.com/coreylowman/the_silver_searcher.git","ssh_url":"git@github.com:coreylowman/the_silver_searcher.git","clone_url":"https://github.com/coreylowman/the_silver_searcher.git","svn_url":"https://github.com/coreylowman/the_silver_searcher","homepage":"http://geoff.greer.fm/ag/","size":6381,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ggreer:master","ref":"master","sha":"7fb7a9a9e3ae7c55bc946a9c04ad13ffbf91459c","user":{"login":"ggreer","id":200121,"avatar_url":"https://avatars.githubusercontent.com/u/200121?v=3","gravatar_id":"","url":"https://api.github.com/users/ggreer","html_url":"https://github.com/ggreer","followers_url":"https://api.github.com/users/ggreer/followers","following_url":"https://api.github.com/users/ggreer/following{/other_user}","gists_url":"https://api.github.com/users/ggreer/gists{/gist_id}","starred_url":"https://api.github.com/users/ggreer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggreer/subscriptions","organizations_url":"https://api.github.com/users/ggreer/orgs","repos_url":"https://api.github.com/users/ggreer/repos","events_url":"https://api.github.com/users/ggreer/events{/privacy}","received_events_url":"https://api.github.com/users/ggreer/received_events","type":"User","site_admin":false},"repo":{"id":2810455,"name":"the_silver_searcher","full_name":"ggreer/the_silver_searcher","owner":{"login":"ggreer","id":200121,"avatar_url":"https://avatars.githubusercontent.com/u/200121?v=3","gravatar_id":"","url":"https://api.github.com/users/ggreer","html_url":"https://github.com/ggreer","followers_url":"https://api.github.com/users/ggreer/followers","following_url":"https://api.github.com/users/ggreer/following{/other_user}","gists_url":"https://api.github.com/users/ggreer/gists{/gist_id}","starred_url":"https://api.github.com/users/ggreer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggreer/subscriptions","organizations_url":"https://api.github.com/users/ggreer/orgs","repos_url":"https://api.github.com/users/ggreer/repos","events_url":"https://api.github.com/users/ggreer/events{/privacy}","received_events_url":"https://api.github.com/users/ggreer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ggreer/the_silver_searcher","description":"A code-searching tool similar to ack, but faster.","fork":false,"url":"https://api.github.com/repos/ggreer/the_silver_searcher","forks_url":"https://api.github.com/repos/ggreer/the_silver_searcher/forks","keys_url":"https://api.github.com/repos/ggreer/the_silver_searcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ggreer/the_silver_searcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ggreer/the_silver_searcher/teams","hooks_url":"https://api.github.com/repos/ggreer/the_silver_searcher/hooks","issue_events_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/events{/number}","events_url":"https://api.github.com/repos/ggreer/the_silver_searcher/events","assignees_url":"https://api.github.com/repos/ggreer/the_silver_searcher/assignees{/user}","branches_url":"https://api.github.com/repos/ggreer/the_silver_searcher/branches{/branch}","tags_url":"https://api.github.com/repos/ggreer/the_silver_searcher/tags","blobs_url":"https://api.github.com/repos/ggreer/the_silver_searcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ggreer/the_silver_searcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ggreer/the_silver_searcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ggreer/the_silver_searcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ggreer/the_silver_searcher/statuses/{sha}","languages_url":"https://api.github.com/repos/ggreer/the_silver_searcher/languages","stargazers_url":"https://api.github.com/repos/ggreer/the_silver_searcher/stargazers","contributors_url":"https://api.github.com/repos/ggreer/the_silver_searcher/contributors","subscribers_url":"https://api.github.com/repos/ggreer/the_silver_searcher/subscribers","subscription_url":"https://api.github.com/repos/ggreer/the_silver_searcher/subscription","commits_url":"https://api.github.com/repos/ggreer/the_silver_searcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ggreer/the_silver_searcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ggreer/the_silver_searcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ggreer/the_silver_searcher/contents/{+path}","compare_url":"https://api.github.com/repos/ggreer/the_silver_searcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ggreer/the_silver_searcher/merges","archive_url":"https://api.github.com/repos/ggreer/the_silver_searcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ggreer/the_silver_searcher/downloads","issues_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues{/number}","pulls_url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls{/number}","milestones_url":"https://api.github.com/repos/ggreer/the_silver_searcher/milestones{/number}","notifications_url":"https://api.github.com/repos/ggreer/the_silver_searcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ggreer/the_silver_searcher/labels{/name}","releases_url":"https://api.github.com/repos/ggreer/the_silver_searcher/releases{/id}","created_at":"2011-11-19T19:50:47Z","updated_at":"2015-10-25T16:01:23Z","pushed_at":"2015-10-25T14:27:57Z","git_url":"git://github.com/ggreer/the_silver_searcher.git","ssh_url":"git@github.com:ggreer/the_silver_searcher.git","clone_url":"https://github.com/ggreer/the_silver_searcher.git","svn_url":"https://github.com/ggreer/the_silver_searcher","homepage":"http://geoff.greer.fm/ag/","size":6381,"stargazers_count":7184,"watchers_count":7184,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":513,"mirror_url":null,"open_issues_count":179,"forks":513,"open_issues":179,"watchers":7184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774"},"html":{"href":"https://github.com/ggreer/the_silver_searcher/pull/774"},"issue":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/774"},"comments":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/774/comments"},"review_comments":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774/comments"},"review_comment":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/774/commits"},"statuses":{"href":"https://api.github.com/repos/ggreer/the_silver_searcher/statuses/0d7fb2ce633e569da4e151741f533de1ba90212d"}}}}