{"action":"created","comment":{"url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/comments/63253899","id":63253899,"diff_hunk":"@@ -0,0 +1,21 @@\n+import $ from 'jquery'\n+\n+var maxLength = 140;\n+\n+//\n+// catch for legacy content with cut off story excerpts - adds ellipsis to any story excerpt appearing in the content grids or picture grids\n+//\n+export default function addAllStoryExcerptEllipsis() {\n+\tfunction addEllipsis() {\n+\t\tvar text = $(this).text();\n+\t\tif (text.length >= maxLength) {","path":"mysite/assets/js/modules/story-excerpt-ellipsis/index.js","position":11,"original_position":11,"commit_id":"8ac683c8d892e04b1952a5818ab36bcf8e7ebbb7","original_commit_id":"8ac683c8d892e04b1952a5818ab36bcf8e7ebbb7","user":{"login":"sanajaved7","id":7397798,"avatar_url":"https://avatars.githubusercontent.com/u/7397798?v=3","gravatar_id":"","url":"https://api.github.com/users/sanajaved7","html_url":"https://github.com/sanajaved7","followers_url":"https://api.github.com/users/sanajaved7/followers","following_url":"https://api.github.com/users/sanajaved7/following{/other_user}","gists_url":"https://api.github.com/users/sanajaved7/gists{/gist_id}","starred_url":"https://api.github.com/users/sanajaved7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanajaved7/subscriptions","organizations_url":"https://api.github.com/users/sanajaved7/orgs","repos_url":"https://api.github.com/users/sanajaved7/repos","events_url":"https://api.github.com/users/sanajaved7/events{/privacy}","received_events_url":"https://api.github.com/users/sanajaved7/received_events","type":"User","site_admin":false},"body":"Well I'm just wondering if the length check is actually redundant. If there's punctuation at the end (which we're checking for) then that means the summary was adequate otherwise, we add the  ellipses. Thoughts?","created_at":"2016-05-13T21:30:06Z","updated_at":"2016-05-13T21:30:06Z","html_url":"https://github.com/newamericafoundation/newamerica-cms/pull/720#discussion_r63253899","pull_request_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720","_links":{"self":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/comments/63253899"},"html":{"href":"https://github.com/newamericafoundation/newamerica-cms/pull/720#discussion_r63253899"},"pull_request":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720"}}},"pull_request":{"url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720","id":69184289,"html_url":"https://github.com/newamericafoundation/newamerica-cms/pull/720","diff_url":"https://github.com/newamericafoundation/newamerica-cms/pull/720.diff","patch_url":"https://github.com/newamericafoundation/newamerica-cms/pull/720.patch","issue_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/720","number":720,"state":"open","locked":false,"title":"Implemented Ellipsis for Story Excerpts at Character Limit","user":{"login":"kjacks","id":6720200,"avatar_url":"https://avatars.githubusercontent.com/u/6720200?v=3","gravatar_id":"","url":"https://api.github.com/users/kjacks","html_url":"https://github.com/kjacks","followers_url":"https://api.github.com/users/kjacks/followers","following_url":"https://api.github.com/users/kjacks/following{/other_user}","gists_url":"https://api.github.com/users/kjacks/gists{/gist_id}","starred_url":"https://api.github.com/users/kjacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjacks/subscriptions","organizations_url":"https://api.github.com/users/kjacks/orgs","repos_url":"https://api.github.com/users/kjacks/repos","events_url":"https://api.github.com/users/kjacks/events{/privacy}","received_events_url":"https://api.github.com/users/kjacks/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-06T17:36:51Z","updated_at":"2016-05-13T21:30:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72cefd83de9995f5a55c5c98ff0f15caddabc09c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720/commits","review_comments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720/comments","review_comment_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/720/comments","statuses_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/statuses/8ac683c8d892e04b1952a5818ab36bcf8e7ebbb7","head":{"label":"newamericafoundation:story-excerpt-elipsis","ref":"story-excerpt-elipsis","sha":"8ac683c8d892e04b1952a5818ab36bcf8e7ebbb7","user":{"login":"newamericafoundation","id":1356691,"avatar_url":"https://avatars.githubusercontent.com/u/1356691?v=3","gravatar_id":"","url":"https://api.github.com/users/newamericafoundation","html_url":"https://github.com/newamericafoundation","followers_url":"https://api.github.com/users/newamericafoundation/followers","following_url":"https://api.github.com/users/newamericafoundation/following{/other_user}","gists_url":"https://api.github.com/users/newamericafoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/newamericafoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newamericafoundation/subscriptions","organizations_url":"https://api.github.com/users/newamericafoundation/orgs","repos_url":"https://api.github.com/users/newamericafoundation/repos","events_url":"https://api.github.com/users/newamericafoundation/events{/privacy}","received_events_url":"https://api.github.com/users/newamericafoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":48380991,"name":"newamerica-cms","full_name":"newamericafoundation/newamerica-cms","owner":{"login":"newamericafoundation","id":1356691,"avatar_url":"https://avatars.githubusercontent.com/u/1356691?v=3","gravatar_id":"","url":"https://api.github.com/users/newamericafoundation","html_url":"https://github.com/newamericafoundation","followers_url":"https://api.github.com/users/newamericafoundation/followers","following_url":"https://api.github.com/users/newamericafoundation/following{/other_user}","gists_url":"https://api.github.com/users/newamericafoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/newamericafoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newamericafoundation/subscriptions","organizations_url":"https://api.github.com/users/newamericafoundation/orgs","repos_url":"https://api.github.com/users/newamericafoundation/repos","events_url":"https://api.github.com/users/newamericafoundation/events{/privacy}","received_events_url":"https://api.github.com/users/newamericafoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/newamericafoundation/newamerica-cms","description":"CMS for New America","fork":false,"url":"https://api.github.com/repos/newamericafoundation/newamerica-cms","forks_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/forks","keys_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/teams","hooks_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/hooks","issue_events_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/events{/number}","events_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/events","assignees_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/assignees{/user}","branches_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/branches{/branch}","tags_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/tags","blobs_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/languages","stargazers_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/stargazers","contributors_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/contributors","subscribers_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/subscribers","subscription_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/subscription","commits_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/contents/{+path}","compare_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/merges","archive_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/downloads","issues_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues{/number}","pulls_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/labels{/name}","releases_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/releases{/id}","deployments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/deployments","created_at":"2015-12-21T16:04:46Z","updated_at":"2016-04-04T15:16:04Z","pushed_at":"2016-05-13T21:22:11Z","git_url":"git://github.com/newamericafoundation/newamerica-cms.git","ssh_url":"git@github.com:newamericafoundation/newamerica-cms.git","clone_url":"https://github.com/newamericafoundation/newamerica-cms.git","svn_url":"https://github.com/newamericafoundation/newamerica-cms","homepage":"","size":88870,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":113,"forks":0,"open_issues":113,"watchers":1,"default_branch":"staging"}},"base":{"label":"newamericafoundation:staging","ref":"staging","sha":"3289110bf470f25ef830fa2ad50fa71c76cbc5d6","user":{"login":"newamericafoundation","id":1356691,"avatar_url":"https://avatars.githubusercontent.com/u/1356691?v=3","gravatar_id":"","url":"https://api.github.com/users/newamericafoundation","html_url":"https://github.com/newamericafoundation","followers_url":"https://api.github.com/users/newamericafoundation/followers","following_url":"https://api.github.com/users/newamericafoundation/following{/other_user}","gists_url":"https://api.github.com/users/newamericafoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/newamericafoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newamericafoundation/subscriptions","organizations_url":"https://api.github.com/users/newamericafoundation/orgs","repos_url":"https://api.github.com/users/newamericafoundation/repos","events_url":"https://api.github.com/users/newamericafoundation/events{/privacy}","received_events_url":"https://api.github.com/users/newamericafoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":48380991,"name":"newamerica-cms","full_name":"newamericafoundation/newamerica-cms","owner":{"login":"newamericafoundation","id":1356691,"avatar_url":"https://avatars.githubusercontent.com/u/1356691?v=3","gravatar_id":"","url":"https://api.github.com/users/newamericafoundation","html_url":"https://github.com/newamericafoundation","followers_url":"https://api.github.com/users/newamericafoundation/followers","following_url":"https://api.github.com/users/newamericafoundation/following{/other_user}","gists_url":"https://api.github.com/users/newamericafoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/newamericafoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newamericafoundation/subscriptions","organizations_url":"https://api.github.com/users/newamericafoundation/orgs","repos_url":"https://api.github.com/users/newamericafoundation/repos","events_url":"https://api.github.com/users/newamericafoundation/events{/privacy}","received_events_url":"https://api.github.com/users/newamericafoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/newamericafoundation/newamerica-cms","description":"CMS for New America","fork":false,"url":"https://api.github.com/repos/newamericafoundation/newamerica-cms","forks_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/forks","keys_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/teams","hooks_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/hooks","issue_events_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/events{/number}","events_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/events","assignees_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/assignees{/user}","branches_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/branches{/branch}","tags_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/tags","blobs_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/languages","stargazers_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/stargazers","contributors_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/contributors","subscribers_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/subscribers","subscription_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/subscription","commits_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/contents/{+path}","compare_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/merges","archive_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/downloads","issues_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues{/number}","pulls_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/labels{/name}","releases_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/releases{/id}","deployments_url":"https://api.github.com/repos/newamericafoundation/newamerica-cms/deployments","created_at":"2015-12-21T16:04:46Z","updated_at":"2016-04-04T15:16:04Z","pushed_at":"2016-05-13T21:22:11Z","git_url":"git://github.com/newamericafoundation/newamerica-cms.git","ssh_url":"git@github.com:newamericafoundation/newamerica-cms.git","clone_url":"https://github.com/newamericafoundation/newamerica-cms.git","svn_url":"https://github.com/newamericafoundation/newamerica-cms","homepage":"","size":88870,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":113,"forks":0,"open_issues":113,"watchers":1,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720"},"html":{"href":"https://github.com/newamericafoundation/newamerica-cms/pull/720"},"issue":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/720"},"comments":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/issues/720/comments"},"review_comments":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720/comments"},"review_comment":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/pulls/720/commits"},"statuses":{"href":"https://api.github.com/repos/newamericafoundation/newamerica-cms/statuses/8ac683c8d892e04b1952a5818ab36bcf8e7ebbb7"}}}}