{"action":"created","comment":{"url":"https://api.github.com/repos/agileseason/agileseason/pulls/comments/30947420","id":30947420,"diff_hunk":"@@ -0,0 +1,44 @@\n+describe ApplicationHelper do\n+  describe '.markdown' do\n+    subject { helper.markdown(text, repo_url) }\n+    let(:repo_url) { 'http://github.com/a/b' }\n+\n+    context 'blank' do\n+      let(:text) {}\n+      it { is_expected.to be_nil }\n+    end\n+\n+    context 'empty' do\n+      let(:text) { '' }\n+      it { is_expected.to eq '' }\n+    end\n+\n+    context 'simple text' do\n+      let(:text) { 'text' }\n+      it { is_expected.to eq \"<p>text</p>\\n\" }\n+    end\n+\n+    context 'with #number' do\n+      let(:text) { \"##{number}\" }\n+      let(:number) { 10 }\n+      it { is_expected.to eq \"<p><a href='#{repo_url}/issues/#{number}' target='_blank'>##{number}</a></p>\\n\" }\n+    end\n+\n+    context 'with #abs' do\n+      let(:text) { \"#abs\" }","path":"spec/helpers/application_helper_spec.rb","position":28,"original_position":28,"commit_id":"a2d6b5adb4da52b689b7cb91316a0a40ad81de7a","original_commit_id":"a2d6b5adb4da52b689b7cb91316a0a40ad81de7a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2015-05-23T19:16:30Z","updated_at":"2015-05-23T19:16:30Z","html_url":"https://github.com/agileseason/agileseason/pull/339#discussion_r30947420","pull_request_url":"https://api.github.com/repos/agileseason/agileseason/pulls/339","_links":{"self":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/comments/30947420"},"html":{"href":"https://github.com/agileseason/agileseason/pull/339#discussion_r30947420"},"pull_request":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/339"}}},"pull_request":{"url":"https://api.github.com/repos/agileseason/agileseason/pulls/339","id":36092192,"html_url":"https://github.com/agileseason/agileseason/pull/339","diff_url":"https://github.com/agileseason/agileseason/pull/339.diff","patch_url":"https://github.com/agileseason/agileseason/pull/339.patch","issue_url":"https://api.github.com/repos/agileseason/agileseason/issues/339","number":339,"state":"open","locked":false,"title":"#num as link in body and comments #336","user":{"login":"blackchestnut","id":2400100,"avatar_url":"https://avatars.githubusercontent.com/u/2400100?v=3","gravatar_id":"","url":"https://api.github.com/users/blackchestnut","html_url":"https://github.com/blackchestnut","followers_url":"https://api.github.com/users/blackchestnut/followers","following_url":"https://api.github.com/users/blackchestnut/following{/other_user}","gists_url":"https://api.github.com/users/blackchestnut/gists{/gist_id}","starred_url":"https://api.github.com/users/blackchestnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackchestnut/subscriptions","organizations_url":"https://api.github.com/users/blackchestnut/orgs","repos_url":"https://api.github.com/users/blackchestnut/repos","events_url":"https://api.github.com/users/blackchestnut/events{/privacy}","received_events_url":"https://api.github.com/users/blackchestnut/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-23T19:16:25Z","updated_at":"2015-05-23T19:16:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e97bd73c0ba688f15d54992d68389d95472d29c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/agileseason/agileseason/pulls/339/commits","review_comments_url":"https://api.github.com/repos/agileseason/agileseason/pulls/339/comments","review_comment_url":"https://api.github.com/repos/agileseason/agileseason/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agileseason/agileseason/issues/339/comments","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/a2d6b5adb4da52b689b7cb91316a0a40ad81de7a","head":{"label":"agileseason:fix/issue_number_in_modal","ref":"fix/issue_number_in_modal","sha":"a2d6b5adb4da52b689b7cb91316a0a40ad81de7a","user":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"repo":{"id":26205980,"name":"agileseason","full_name":"agileseason/agileseason","owner":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agileseason/agileseason","description":"Agile board with management stats for github issues","fork":false,"url":"https://api.github.com/repos/agileseason/agileseason","forks_url":"https://api.github.com/repos/agileseason/agileseason/forks","keys_url":"https://api.github.com/repos/agileseason/agileseason/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agileseason/agileseason/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agileseason/agileseason/teams","hooks_url":"https://api.github.com/repos/agileseason/agileseason/hooks","issue_events_url":"https://api.github.com/repos/agileseason/agileseason/issues/events{/number}","events_url":"https://api.github.com/repos/agileseason/agileseason/events","assignees_url":"https://api.github.com/repos/agileseason/agileseason/assignees{/user}","branches_url":"https://api.github.com/repos/agileseason/agileseason/branches{/branch}","tags_url":"https://api.github.com/repos/agileseason/agileseason/tags","blobs_url":"https://api.github.com/repos/agileseason/agileseason/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agileseason/agileseason/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agileseason/agileseason/git/refs{/sha}","trees_url":"https://api.github.com/repos/agileseason/agileseason/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/{sha}","languages_url":"https://api.github.com/repos/agileseason/agileseason/languages","stargazers_url":"https://api.github.com/repos/agileseason/agileseason/stargazers","contributors_url":"https://api.github.com/repos/agileseason/agileseason/contributors","subscribers_url":"https://api.github.com/repos/agileseason/agileseason/subscribers","subscription_url":"https://api.github.com/repos/agileseason/agileseason/subscription","commits_url":"https://api.github.com/repos/agileseason/agileseason/commits{/sha}","git_commits_url":"https://api.github.com/repos/agileseason/agileseason/git/commits{/sha}","comments_url":"https://api.github.com/repos/agileseason/agileseason/comments{/number}","issue_comment_url":"https://api.github.com/repos/agileseason/agileseason/issues/comments{/number}","contents_url":"https://api.github.com/repos/agileseason/agileseason/contents/{+path}","compare_url":"https://api.github.com/repos/agileseason/agileseason/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agileseason/agileseason/merges","archive_url":"https://api.github.com/repos/agileseason/agileseason/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agileseason/agileseason/downloads","issues_url":"https://api.github.com/repos/agileseason/agileseason/issues{/number}","pulls_url":"https://api.github.com/repos/agileseason/agileseason/pulls{/number}","milestones_url":"https://api.github.com/repos/agileseason/agileseason/milestones{/number}","notifications_url":"https://api.github.com/repos/agileseason/agileseason/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agileseason/agileseason/labels{/name}","releases_url":"https://api.github.com/repos/agileseason/agileseason/releases{/id}","created_at":"2014-11-05T06:11:09Z","updated_at":"2015-05-15T10:37:53Z","pushed_at":"2015-05-23T19:16:25Z","git_url":"git://github.com/agileseason/agileseason.git","ssh_url":"git@github.com:agileseason/agileseason.git","clone_url":"https://github.com/agileseason/agileseason.git","svn_url":"https://github.com/agileseason/agileseason","homepage":"http://agileseason.com","size":6104,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":3,"default_branch":"master"}},"base":{"label":"agileseason:master","ref":"master","sha":"b665593b71be37234300eea010a90f0fc5f3dd5c","user":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"repo":{"id":26205980,"name":"agileseason","full_name":"agileseason/agileseason","owner":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agileseason/agileseason","description":"Agile board with management stats for github issues","fork":false,"url":"https://api.github.com/repos/agileseason/agileseason","forks_url":"https://api.github.com/repos/agileseason/agileseason/forks","keys_url":"https://api.github.com/repos/agileseason/agileseason/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agileseason/agileseason/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agileseason/agileseason/teams","hooks_url":"https://api.github.com/repos/agileseason/agileseason/hooks","issue_events_url":"https://api.github.com/repos/agileseason/agileseason/issues/events{/number}","events_url":"https://api.github.com/repos/agileseason/agileseason/events","assignees_url":"https://api.github.com/repos/agileseason/agileseason/assignees{/user}","branches_url":"https://api.github.com/repos/agileseason/agileseason/branches{/branch}","tags_url":"https://api.github.com/repos/agileseason/agileseason/tags","blobs_url":"https://api.github.com/repos/agileseason/agileseason/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agileseason/agileseason/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agileseason/agileseason/git/refs{/sha}","trees_url":"https://api.github.com/repos/agileseason/agileseason/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/{sha}","languages_url":"https://api.github.com/repos/agileseason/agileseason/languages","stargazers_url":"https://api.github.com/repos/agileseason/agileseason/stargazers","contributors_url":"https://api.github.com/repos/agileseason/agileseason/contributors","subscribers_url":"https://api.github.com/repos/agileseason/agileseason/subscribers","subscription_url":"https://api.github.com/repos/agileseason/agileseason/subscription","commits_url":"https://api.github.com/repos/agileseason/agileseason/commits{/sha}","git_commits_url":"https://api.github.com/repos/agileseason/agileseason/git/commits{/sha}","comments_url":"https://api.github.com/repos/agileseason/agileseason/comments{/number}","issue_comment_url":"https://api.github.com/repos/agileseason/agileseason/issues/comments{/number}","contents_url":"https://api.github.com/repos/agileseason/agileseason/contents/{+path}","compare_url":"https://api.github.com/repos/agileseason/agileseason/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agileseason/agileseason/merges","archive_url":"https://api.github.com/repos/agileseason/agileseason/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agileseason/agileseason/downloads","issues_url":"https://api.github.com/repos/agileseason/agileseason/issues{/number}","pulls_url":"https://api.github.com/repos/agileseason/agileseason/pulls{/number}","milestones_url":"https://api.github.com/repos/agileseason/agileseason/milestones{/number}","notifications_url":"https://api.github.com/repos/agileseason/agileseason/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agileseason/agileseason/labels{/name}","releases_url":"https://api.github.com/repos/agileseason/agileseason/releases{/id}","created_at":"2014-11-05T06:11:09Z","updated_at":"2015-05-15T10:37:53Z","pushed_at":"2015-05-23T19:16:25Z","git_url":"git://github.com/agileseason/agileseason.git","ssh_url":"git@github.com:agileseason/agileseason.git","clone_url":"https://github.com/agileseason/agileseason.git","svn_url":"https://github.com/agileseason/agileseason","homepage":"http://agileseason.com","size":6104,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/339"},"html":{"href":"https://github.com/agileseason/agileseason/pull/339"},"issue":{"href":"https://api.github.com/repos/agileseason/agileseason/issues/339"},"comments":{"href":"https://api.github.com/repos/agileseason/agileseason/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/agileseason/agileseason/statuses/a2d6b5adb4da52b689b7cb91316a0a40ad81de7a"}}}}