{"action":"opened","number":453,"pull_request":{"url":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453","id":209591316,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NTkxMzE2","html_url":"https://github.com/nolanlawson/pinafore/pull/453","diff_url":"https://github.com/nolanlawson/pinafore/pull/453.diff","patch_url":"https://github.com/nolanlawson/pinafore/pull/453.patch","issue_url":"https://api.github.com/repos/nolanlawson/pinafore/issues/453","number":453,"state":"open","locked":false,"title":"Add class names for notification/status types","user":{"login":"dariusk","id":266454,"node_id":"MDQ6VXNlcjI2NjQ1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/266454?v=4","gravatar_id":"","url":"https://api.github.com/users/dariusk","html_url":"https://github.com/dariusk","followers_url":"https://api.github.com/users/dariusk/followers","following_url":"https://api.github.com/users/dariusk/following{/other_user}","gists_url":"https://api.github.com/users/dariusk/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusk/subscriptions","organizations_url":"https://api.github.com/users/dariusk/orgs","repos_url":"https://api.github.com/users/dariusk/repos","events_url":"https://api.github.com/users/dariusk/events{/privacy}","received_events_url":"https://api.github.com/users/dariusk/received_events","type":"User","site_admin":false},"body":"I wanted to add user styles that hide certain notifications, so having class names by type is a big help for that. This commit simply appends the notification type to a \"status-\" class or a \"notification-\" class, depending on if it's a Status or Notification component. As a result you get classes like \"status-mention\", \"status-favourite\", and \"notification-follow\".\r\n\r\nThis could also eventually help with adding a Mastodon-style \"filter your notifications by type\" feature.","created_at":"2018-08-20T17:31:16Z","updated_at":"2018-08-20T17:31:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453/commits","review_comments_url":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453/comments","review_comment_url":"https://api.github.com/repos/nolanlawson/pinafore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nolanlawson/pinafore/issues/453/comments","statuses_url":"https://api.github.com/repos/nolanlawson/pinafore/statuses/314977edde1e90957d3f641180d7529712b47710","head":{"label":"dariusk:notification-type-classes","ref":"notification-type-classes","sha":"314977edde1e90957d3f641180d7529712b47710","user":{"login":"dariusk","id":266454,"node_id":"MDQ6VXNlcjI2NjQ1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/266454?v=4","gravatar_id":"","url":"https://api.github.com/users/dariusk","html_url":"https://github.com/dariusk","followers_url":"https://api.github.com/users/dariusk/followers","following_url":"https://api.github.com/users/dariusk/following{/other_user}","gists_url":"https://api.github.com/users/dariusk/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusk/subscriptions","organizations_url":"https://api.github.com/users/dariusk/orgs","repos_url":"https://api.github.com/users/dariusk/repos","events_url":"https://api.github.com/users/dariusk/events{/privacy}","received_events_url":"https://api.github.com/users/dariusk/received_events","type":"User","site_admin":false},"repo":{"id":145448759,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0NDg3NTk=","name":"pinafore","full_name":"dariusk/pinafore","owner":{"login":"dariusk","id":266454,"node_id":"MDQ6VXNlcjI2NjQ1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/266454?v=4","gravatar_id":"","url":"https://api.github.com/users/dariusk","html_url":"https://github.com/dariusk","followers_url":"https://api.github.com/users/dariusk/followers","following_url":"https://api.github.com/users/dariusk/following{/other_user}","gists_url":"https://api.github.com/users/dariusk/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusk/subscriptions","organizations_url":"https://api.github.com/users/dariusk/orgs","repos_url":"https://api.github.com/users/dariusk/repos","events_url":"https://api.github.com/users/dariusk/events{/privacy}","received_events_url":"https://api.github.com/users/dariusk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dariusk/pinafore","description":"Alternative web client for Mastodon","fork":true,"url":"https://api.github.com/repos/dariusk/pinafore","forks_url":"https://api.github.com/repos/dariusk/pinafore/forks","keys_url":"https://api.github.com/repos/dariusk/pinafore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dariusk/pinafore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dariusk/pinafore/teams","hooks_url":"https://api.github.com/repos/dariusk/pinafore/hooks","issue_events_url":"https://api.github.com/repos/dariusk/pinafore/issues/events{/number}","events_url":"https://api.github.com/repos/dariusk/pinafore/events","assignees_url":"https://api.github.com/repos/dariusk/pinafore/assignees{/user}","branches_url":"https://api.github.com/repos/dariusk/pinafore/branches{/branch}","tags_url":"https://api.github.com/repos/dariusk/pinafore/tags","blobs_url":"https://api.github.com/repos/dariusk/pinafore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dariusk/pinafore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dariusk/pinafore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dariusk/pinafore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dariusk/pinafore/statuses/{sha}","languages_url":"https://api.github.com/repos/dariusk/pinafore/languages","stargazers_url":"https://api.github.com/repos/dariusk/pinafore/stargazers","contributors_url":"https://api.github.com/repos/dariusk/pinafore/contributors","subscribers_url":"https://api.github.com/repos/dariusk/pinafore/subscribers","subscription_url":"https://api.github.com/repos/dariusk/pinafore/subscription","commits_url":"https://api.github.com/repos/dariusk/pinafore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dariusk/pinafore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dariusk/pinafore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dariusk/pinafore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dariusk/pinafore/contents/{+path}","compare_url":"https://api.github.com/repos/dariusk/pinafore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dariusk/pinafore/merges","archive_url":"https://api.github.com/repos/dariusk/pinafore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dariusk/pinafore/downloads","issues_url":"https://api.github.com/repos/dariusk/pinafore/issues{/number}","pulls_url":"https://api.github.com/repos/dariusk/pinafore/pulls{/number}","milestones_url":"https://api.github.com/repos/dariusk/pinafore/milestones{/number}","notifications_url":"https://api.github.com/repos/dariusk/pinafore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dariusk/pinafore/labels{/name}","releases_url":"https://api.github.com/repos/dariusk/pinafore/releases{/id}","deployments_url":"https://api.github.com/repos/dariusk/pinafore/deployments","created_at":"2018-08-20T17:21:25Z","updated_at":"2018-08-20T17:21:27Z","pushed_at":"2018-08-20T17:30:51Z","git_url":"git://github.com/dariusk/pinafore.git","ssh_url":"git@github.com:dariusk/pinafore.git","clone_url":"https://github.com/dariusk/pinafore.git","svn_url":"https://github.com/dariusk/pinafore","homepage":"https://pinafore.social","size":127920,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nolanlawson:master","ref":"master","sha":"c4c70dfd89be9c71fcf9c8e0d7fec324c55db1ac","user":{"login":"nolanlawson","id":283842,"node_id":"MDQ6VXNlcjI4Mzg0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/283842?v=4","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"repo":{"id":116539127,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY1MzkxMjc=","name":"pinafore","full_name":"nolanlawson/pinafore","owner":{"login":"nolanlawson","id":283842,"node_id":"MDQ6VXNlcjI4Mzg0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/283842?v=4","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nolanlawson/pinafore","description":"Alternative web client for Mastodon","fork":false,"url":"https://api.github.com/repos/nolanlawson/pinafore","forks_url":"https://api.github.com/repos/nolanlawson/pinafore/forks","keys_url":"https://api.github.com/repos/nolanlawson/pinafore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nolanlawson/pinafore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nolanlawson/pinafore/teams","hooks_url":"https://api.github.com/repos/nolanlawson/pinafore/hooks","issue_events_url":"https://api.github.com/repos/nolanlawson/pinafore/issues/events{/number}","events_url":"https://api.github.com/repos/nolanlawson/pinafore/events","assignees_url":"https://api.github.com/repos/nolanlawson/pinafore/assignees{/user}","branches_url":"https://api.github.com/repos/nolanlawson/pinafore/branches{/branch}","tags_url":"https://api.github.com/repos/nolanlawson/pinafore/tags","blobs_url":"https://api.github.com/repos/nolanlawson/pinafore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nolanlawson/pinafore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nolanlawson/pinafore/git/refs{/sha}","trees_url":"https://api.github.com/repos/nolanlawson/pinafore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nolanlawson/pinafore/statuses/{sha}","languages_url":"https://api.github.com/repos/nolanlawson/pinafore/languages","stargazers_url":"https://api.github.com/repos/nolanlawson/pinafore/stargazers","contributors_url":"https://api.github.com/repos/nolanlawson/pinafore/contributors","subscribers_url":"https://api.github.com/repos/nolanlawson/pinafore/subscribers","subscription_url":"https://api.github.com/repos/nolanlawson/pinafore/subscription","commits_url":"https://api.github.com/repos/nolanlawson/pinafore/commits{/sha}","git_commits_url":"https://api.github.com/repos/nolanlawson/pinafore/git/commits{/sha}","comments_url":"https://api.github.com/repos/nolanlawson/pinafore/comments{/number}","issue_comment_url":"https://api.github.com/repos/nolanlawson/pinafore/issues/comments{/number}","contents_url":"https://api.github.com/repos/nolanlawson/pinafore/contents/{+path}","compare_url":"https://api.github.com/repos/nolanlawson/pinafore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nolanlawson/pinafore/merges","archive_url":"https://api.github.com/repos/nolanlawson/pinafore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nolanlawson/pinafore/downloads","issues_url":"https://api.github.com/repos/nolanlawson/pinafore/issues{/number}","pulls_url":"https://api.github.com/repos/nolanlawson/pinafore/pulls{/number}","milestones_url":"https://api.github.com/repos/nolanlawson/pinafore/milestones{/number}","notifications_url":"https://api.github.com/repos/nolanlawson/pinafore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nolanlawson/pinafore/labels{/name}","releases_url":"https://api.github.com/repos/nolanlawson/pinafore/releases{/id}","deployments_url":"https://api.github.com/repos/nolanlawson/pinafore/deployments","created_at":"2018-01-07T05:05:53Z","updated_at":"2018-08-20T17:19:54Z","pushed_at":"2018-08-20T03:44:05Z","git_url":"git://github.com/nolanlawson/pinafore.git","ssh_url":"git@github.com:nolanlawson/pinafore.git","clone_url":"https://github.com/nolanlawson/pinafore.git","svn_url":"https://github.com/nolanlawson/pinafore","homepage":"https://pinafore.social","size":127920,"stargazers_count":172,"watchers_count":172,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":84,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":24,"open_issues":84,"watchers":172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453"},"html":{"href":"https://github.com/nolanlawson/pinafore/pull/453"},"issue":{"href":"https://api.github.com/repos/nolanlawson/pinafore/issues/453"},"comments":{"href":"https://api.github.com/repos/nolanlawson/pinafore/issues/453/comments"},"review_comments":{"href":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453/comments"},"review_comment":{"href":"https://api.github.com/repos/nolanlawson/pinafore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nolanlawson/pinafore/pulls/453/commits"},"statuses":{"href":"https://api.github.com/repos/nolanlawson/pinafore/statuses/314977edde1e90957d3f641180d7529712b47710"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"dariusk"}}