{"action":"created","comment":{"url":"https://api.github.com/repos/codeship/documentation/pulls/comments/185033463","pull_request_review_id":116344186,"id":185033463,"diff_hunk":"@@ -0,0 +1,22 @@\n+module Jekyll\n+\tclass NoteTag < Liquid::Block\n+\t\tdef initialize(tag_name, type, tokens)\n+\t\t\tsuper\n+\t\t\t@type = type.strip.downcase unless type.empty?\n+\t\tend\n+\n+\t\tdef render(context)\n+\t\t\tcontent = super\n+\t\t\tcss_classes = \"note-#{@type}\" if @type\n+\n+\t\t\tout = <<~EOF\n+\t\t\t\t<div class=\"note #{css_classes}\">\n+\t\t\t\t\t#{content}\n+\t\t\t\t</div>\n+\t\t\tEOF\n+\t\t\tout\n+\t\tend\n+\tend\n+end\n+\n+Liquid::Template.register_tag('csnote', Jekyll::NoteTag)","path":"_plugins/note_tag.rb","position":22,"original_position":22,"commit_id":"73a1778bb024af6e40ca4bca3f11ecfeaeed568f","original_commit_id":"3a67722cf7560d819a507f0e38f614a8fee4861f","user":{"login":"mlocher","id":7791,"avatar_url":"https://avatars2.githubusercontent.com/u/7791?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocher","html_url":"https://github.com/mlocher","followers_url":"https://api.github.com/users/mlocher/followers","following_url":"https://api.github.com/users/mlocher/following{/other_user}","gists_url":"https://api.github.com/users/mlocher/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocher/subscriptions","organizations_url":"https://api.github.com/users/mlocher/orgs","repos_url":"https://api.github.com/users/mlocher/repos","events_url":"https://api.github.com/users/mlocher/events{/privacy}","received_events_url":"https://api.github.com/users/mlocher/received_events","type":"User","site_admin":false},"body":"Ah, that could very well be the case. Could you link me to the tag definition in Shipyard? Maybe we don't even need my implementation here and can use the one from Shipyard directly?","created_at":"2018-04-30T16:10:51Z","updated_at":"2018-04-30T16:10:51Z","html_url":"https://github.com/codeship/documentation/pull/1261#discussion_r185033463","pull_request_url":"https://api.github.com/repos/codeship/documentation/pulls/1261","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/codeship/documentation/pulls/comments/185033463"},"html":{"href":"https://github.com/codeship/documentation/pull/1261#discussion_r185033463"},"pull_request":{"href":"https://api.github.com/repos/codeship/documentation/pulls/1261"}},"in_reply_to_id":184862194},"pull_request":{"url":"https://api.github.com/repos/codeship/documentation/pulls/1261","id":184799734,"html_url":"https://github.com/codeship/documentation/pull/1261","diff_url":"https://github.com/codeship/documentation/pull/1261.diff","patch_url":"https://github.com/codeship/documentation/pull/1261.patch","issue_url":"https://api.github.com/repos/codeship/documentation/issues/1261","number":1261,"state":"open","locked":false,"title":"Switch to the Shipyard Note component","user":{"login":"mlocher","id":7791,"avatar_url":"https://avatars2.githubusercontent.com/u/7791?v=4","gravatar_id":"","url":"https://api.github.com/users/mlocher","html_url":"https://github.com/mlocher","followers_url":"https://api.github.com/users/mlocher/followers","following_url":"https://api.github.com/users/mlocher/following{/other_user}","gists_url":"https://api.github.com/users/mlocher/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocher/subscriptions","organizations_url":"https://api.github.com/users/mlocher/orgs","repos_url":"https://api.github.com/users/mlocher/repos","events_url":"https://api.github.com/users/mlocher/events{/privacy}","received_events_url":"https://api.github.com/users/mlocher/received_events","type":"User","site_admin":false},"body":"We were previously using a custom component for `info` (and similar) blocks, but [Shipyard](https://codeship.github.io/shipyard/) has since added a [Note component](https://codeship.github.io/shipyard/components/notes) that fits our needs.\r\n\r\nThis PR makes a `csnote` helper available, that optionally takes a single argument detailing which type of note is used:\r\n\r\n* `{% csnote %}...{% endcsnote %}` for a standard (grey) note\r\n* `{% csnote info %}...{% endcsnote %}` for a info (blue) note\r\n* `{% csnote success %}...{% endcsnote %}` for a success (green) note\r\n* `{% csnote warning %}...{% endcsnote %}` for a warning (yellow) note\r\n\r\nInfo, Success and Warning notes are customized with additional icons to make it easier to distinguish those UI elements and not rely on color alone.\r\n\r\nStaging deployment is available at https://documentation.codeship.com/staging/blocks-v1.1/\r\n\r\n## Screenshots\r\n\r\n### Standard Note\r\n\r\n![](https://d.pr/i/Qh4NlA+)\r\n\r\n### Info Note\r\n\r\n![](https://d.pr/i/nm46d8+)\r\n\r\n### Success Note\r\n\r\n(currently not in use)\r\n\r\n### Warning Note\r\n\r\n![](https://d.pr/i/pw9wto+)","created_at":"2018-04-28T18:35:43Z","updated_at":"2018-04-30T16:10:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a9e13a03978bfcdc2ab7763769f7d175085e59c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeship/documentation/pulls/1261/commits","review_comments_url":"https://api.github.com/repos/codeship/documentation/pulls/1261/comments","review_comment_url":"https://api.github.com/repos/codeship/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeship/documentation/issues/1261/comments","statuses_url":"https://api.github.com/repos/codeship/documentation/statuses/73a1778bb024af6e40ca4bca3f11ecfeaeed568f","head":{"label":"codeship:feature/info-blocks","ref":"feature/info-blocks","sha":"73a1778bb024af6e40ca4bca3f11ecfeaeed568f","user":{"login":"codeship","id":2988541,"avatar_url":"https://avatars0.githubusercontent.com/u/2988541?v=4","gravatar_id":"","url":"https://api.github.com/users/codeship","html_url":"https://github.com/codeship","followers_url":"https://api.github.com/users/codeship/followers","following_url":"https://api.github.com/users/codeship/following{/other_user}","gists_url":"https://api.github.com/users/codeship/gists{/gist_id}","starred_url":"https://api.github.com/users/codeship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeship/subscriptions","organizations_url":"https://api.github.com/users/codeship/orgs","repos_url":"https://api.github.com/users/codeship/repos","events_url":"https://api.github.com/users/codeship/events{/privacy}","received_events_url":"https://api.github.com/users/codeship/received_events","type":"Organization","site_admin":false},"repo":{"id":23222325,"name":"documentation","full_name":"codeship/documentation","owner":{"login":"codeship","id":2988541,"avatar_url":"https://avatars0.githubusercontent.com/u/2988541?v=4","gravatar_id":"","url":"https://api.github.com/users/codeship","html_url":"https://github.com/codeship","followers_url":"https://api.github.com/users/codeship/followers","following_url":"https://api.github.com/users/codeship/following{/other_user}","gists_url":"https://api.github.com/users/codeship/gists{/gist_id}","starred_url":"https://api.github.com/users/codeship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeship/subscriptions","organizations_url":"https://api.github.com/users/codeship/orgs","repos_url":"https://api.github.com/users/codeship/repos","events_url":"https://api.github.com/users/codeship/events{/privacy}","received_events_url":"https://api.github.com/users/codeship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeship/documentation","description":"Documentation for Codeship CI & CD service","fork":false,"url":"https://api.github.com/repos/codeship/documentation","forks_url":"https://api.github.com/repos/codeship/documentation/forks","keys_url":"https://api.github.com/repos/codeship/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeship/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeship/documentation/teams","hooks_url":"https://api.github.com/repos/codeship/documentation/hooks","issue_events_url":"https://api.github.com/repos/codeship/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/codeship/documentation/events","assignees_url":"https://api.github.com/repos/codeship/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/codeship/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/codeship/documentation/tags","blobs_url":"https://api.github.com/repos/codeship/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeship/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeship/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeship/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeship/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/codeship/documentation/languages","stargazers_url":"https://api.github.com/repos/codeship/documentation/stargazers","contributors_url":"https://api.github.com/repos/codeship/documentation/contributors","subscribers_url":"https://api.github.com/repos/codeship/documentation/subscribers","subscription_url":"https://api.github.com/repos/codeship/documentation/subscription","commits_url":"https://api.github.com/repos/codeship/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeship/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeship/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeship/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeship/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/codeship/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeship/documentation/merges","archive_url":"https://api.github.com/repos/codeship/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeship/documentation/downloads","issues_url":"https://api.github.com/repos/codeship/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/codeship/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/codeship/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/codeship/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeship/documentation/labels{/name}","releases_url":"https://api.github.com/repos/codeship/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/codeship/documentation/deployments","created_at":"2014-08-22T10:54:44Z","updated_at":"2018-04-23T10:03:01Z","pushed_at":"2018-04-28T18:54:02Z","git_url":"git://github.com/codeship/documentation.git","ssh_url":"git@github.com:codeship/documentation.git","clone_url":"https://github.com/codeship/documentation.git","svn_url":"https://github.com/codeship/documentation","homepage":"https://documentation.codeship.com","size":46690,"stargazers_count":75,"watchers_count":75,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":89,"open_issues":2,"watchers":75,"default_branch":"master"}},"base":{"label":"codeship:master","ref":"master","sha":"d20de89e0e6c18cd3c80266f102ff43b12a29975","user":{"login":"codeship","id":2988541,"avatar_url":"https://avatars0.githubusercontent.com/u/2988541?v=4","gravatar_id":"","url":"https://api.github.com/users/codeship","html_url":"https://github.com/codeship","followers_url":"https://api.github.com/users/codeship/followers","following_url":"https://api.github.com/users/codeship/following{/other_user}","gists_url":"https://api.github.com/users/codeship/gists{/gist_id}","starred_url":"https://api.github.com/users/codeship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeship/subscriptions","organizations_url":"https://api.github.com/users/codeship/orgs","repos_url":"https://api.github.com/users/codeship/repos","events_url":"https://api.github.com/users/codeship/events{/privacy}","received_events_url":"https://api.github.com/users/codeship/received_events","type":"Organization","site_admin":false},"repo":{"id":23222325,"name":"documentation","full_name":"codeship/documentation","owner":{"login":"codeship","id":2988541,"avatar_url":"https://avatars0.githubusercontent.com/u/2988541?v=4","gravatar_id":"","url":"https://api.github.com/users/codeship","html_url":"https://github.com/codeship","followers_url":"https://api.github.com/users/codeship/followers","following_url":"https://api.github.com/users/codeship/following{/other_user}","gists_url":"https://api.github.com/users/codeship/gists{/gist_id}","starred_url":"https://api.github.com/users/codeship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeship/subscriptions","organizations_url":"https://api.github.com/users/codeship/orgs","repos_url":"https://api.github.com/users/codeship/repos","events_url":"https://api.github.com/users/codeship/events{/privacy}","received_events_url":"https://api.github.com/users/codeship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeship/documentation","description":"Documentation for Codeship CI & CD service","fork":false,"url":"https://api.github.com/repos/codeship/documentation","forks_url":"https://api.github.com/repos/codeship/documentation/forks","keys_url":"https://api.github.com/repos/codeship/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeship/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeship/documentation/teams","hooks_url":"https://api.github.com/repos/codeship/documentation/hooks","issue_events_url":"https://api.github.com/repos/codeship/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/codeship/documentation/events","assignees_url":"https://api.github.com/repos/codeship/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/codeship/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/codeship/documentation/tags","blobs_url":"https://api.github.com/repos/codeship/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeship/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeship/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeship/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeship/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/codeship/documentation/languages","stargazers_url":"https://api.github.com/repos/codeship/documentation/stargazers","contributors_url":"https://api.github.com/repos/codeship/documentation/contributors","subscribers_url":"https://api.github.com/repos/codeship/documentation/subscribers","subscription_url":"https://api.github.com/repos/codeship/documentation/subscription","commits_url":"https://api.github.com/repos/codeship/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeship/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeship/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeship/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeship/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/codeship/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeship/documentation/merges","archive_url":"https://api.github.com/repos/codeship/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeship/documentation/downloads","issues_url":"https://api.github.com/repos/codeship/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/codeship/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/codeship/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/codeship/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeship/documentation/labels{/name}","releases_url":"https://api.github.com/repos/codeship/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/codeship/documentation/deployments","created_at":"2014-08-22T10:54:44Z","updated_at":"2018-04-23T10:03:01Z","pushed_at":"2018-04-28T18:54:02Z","git_url":"git://github.com/codeship/documentation.git","ssh_url":"git@github.com:codeship/documentation.git","clone_url":"https://github.com/codeship/documentation.git","svn_url":"https://github.com/codeship/documentation","homepage":"https://documentation.codeship.com","size":46690,"stargazers_count":75,"watchers_count":75,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":89,"open_issues":2,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeship/documentation/pulls/1261"},"html":{"href":"https://github.com/codeship/documentation/pull/1261"},"issue":{"href":"https://api.github.com/repos/codeship/documentation/issues/1261"},"comments":{"href":"https://api.github.com/repos/codeship/documentation/issues/1261/comments"},"review_comments":{"href":"https://api.github.com/repos/codeship/documentation/pulls/1261/comments"},"review_comment":{"href":"https://api.github.com/repos/codeship/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeship/documentation/pulls/1261/commits"},"statuses":{"href":"https://api.github.com/repos/codeship/documentation/statuses/73a1778bb024af6e40ca4bca3f11ecfeaeed568f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mlocher"}}