{"action":"created","comment":{"url":"https://api.github.com/repos/tndatacommons/android-app/pulls/comments/64811587","id":64811587,"diff_hunk":"@@ -434,6 +440,62 @@ public void onClick(View v) {\n     }\n \n     /**\n+     * Detect if the action belongs to a user and has a \"datetime\" external resource.\n+     * See also: sendToCalendar.\n+     *\n+     * @return boolean\n+     */\n+    private boolean hasDatetimeExternalResource() {\n+        if(isUserAction()) {\n+            UserAction userAction = (UserAction) mAction;\n+            String externalResource = userAction.getExternalResource();\n+            String externalResourceName = userAction.getExternalResourceName();","path":"src/main/java/org/tndata/android/compass/activity/ActionActivity.java","position":26,"original_position":26,"commit_id":"38257bbf1bcb35dfa58bbd1bfdd0722dc19a1449","original_commit_id":"38257bbf1bcb35dfa58bbd1bfdd0722dc19a1449","user":{"login":"Revenaunt","id":8737659,"avatar_url":"https://avatars.githubusercontent.com/u/8737659?v=3","gravatar_id":"","url":"https://api.github.com/users/Revenaunt","html_url":"https://github.com/Revenaunt","followers_url":"https://api.github.com/users/Revenaunt/followers","following_url":"https://api.github.com/users/Revenaunt/following{/other_user}","gists_url":"https://api.github.com/users/Revenaunt/gists{/gist_id}","starred_url":"https://api.github.com/users/Revenaunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Revenaunt/subscriptions","organizations_url":"https://api.github.com/users/Revenaunt/orgs","repos_url":"https://api.github.com/users/Revenaunt/repos","events_url":"https://api.github.com/users/Revenaunt/events{/privacy}","received_events_url":"https://api.github.com/users/Revenaunt/received_events","type":"User","site_admin":false},"body":"This might conflict with future attempts of reviving this feature, it may be a good idea to add an `external_resource_type` to the action and include types there.","created_at":"2016-05-26T20:05:34Z","updated_at":"2016-05-26T20:05:34Z","html_url":"https://github.com/tndatacommons/android-app/pull/196#discussion_r64811587","pull_request_url":"https://api.github.com/repos/tndatacommons/android-app/pulls/196","_links":{"self":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/comments/64811587"},"html":{"href":"https://github.com/tndatacommons/android-app/pull/196#discussion_r64811587"},"pull_request":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/196"}}},"pull_request":{"url":"https://api.github.com/repos/tndatacommons/android-app/pulls/196","id":71612427,"html_url":"https://github.com/tndatacommons/android-app/pull/196","diff_url":"https://github.com/tndatacommons/android-app/pull/196.diff","patch_url":"https://github.com/tndatacommons/android-app/pull/196.patch","issue_url":"https://api.github.com/repos/tndatacommons/android-app/issues/196","number":196,"state":"open","locked":false,"title":"Add to Calendar option on ActionActivity","user":{"login":"bradmontgomery","id":103113,"avatar_url":"https://avatars.githubusercontent.com/u/103113?v=3","gravatar_id":"","url":"https://api.github.com/users/bradmontgomery","html_url":"https://github.com/bradmontgomery","followers_url":"https://api.github.com/users/bradmontgomery/followers","following_url":"https://api.github.com/users/bradmontgomery/following{/other_user}","gists_url":"https://api.github.com/users/bradmontgomery/gists{/gist_id}","starred_url":"https://api.github.com/users/bradmontgomery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradmontgomery/subscriptions","organizations_url":"https://api.github.com/users/bradmontgomery/orgs","repos_url":"https://api.github.com/users/bradmontgomery/repos","events_url":"https://api.github.com/users/bradmontgomery/events{/privacy}","received_events_url":"https://api.github.com/users/bradmontgomery/received_events","type":"User","site_admin":false},"body":"If an Action/Notification has a scheduled date & time, we'll give them an option to add it to their calendar. This happens when an `Action`'s `externalResource` includes a datetime formatted string of the form `YYYY-mm-dd HH:MM:SS` and the `externalResourceName` is `datetime`.","created_at":"2016-05-26T19:41:42Z","updated_at":"2016-05-26T20:05:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9fd36e8338163c1f075bdccb7782406db357a1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tndatacommons/android-app/pulls/196/commits","review_comments_url":"https://api.github.com/repos/tndatacommons/android-app/pulls/196/comments","review_comment_url":"https://api.github.com/repos/tndatacommons/android-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tndatacommons/android-app/issues/196/comments","statuses_url":"https://api.github.com/repos/tndatacommons/android-app/statuses/38257bbf1bcb35dfa58bbd1bfdd0722dc19a1449","head":{"label":"bradmontgomery:calendar","ref":"calendar","sha":"38257bbf1bcb35dfa58bbd1bfdd0722dc19a1449","user":{"login":"bradmontgomery","id":103113,"avatar_url":"https://avatars.githubusercontent.com/u/103113?v=3","gravatar_id":"","url":"https://api.github.com/users/bradmontgomery","html_url":"https://github.com/bradmontgomery","followers_url":"https://api.github.com/users/bradmontgomery/followers","following_url":"https://api.github.com/users/bradmontgomery/following{/other_user}","gists_url":"https://api.github.com/users/bradmontgomery/gists{/gist_id}","starred_url":"https://api.github.com/users/bradmontgomery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradmontgomery/subscriptions","organizations_url":"https://api.github.com/users/bradmontgomery/orgs","repos_url":"https://api.github.com/users/bradmontgomery/repos","events_url":"https://api.github.com/users/bradmontgomery/events{/privacy}","received_events_url":"https://api.github.com/users/bradmontgomery/received_events","type":"User","site_admin":false},"repo":{"id":54231138,"name":"android-app","full_name":"bradmontgomery/android-app","owner":{"login":"bradmontgomery","id":103113,"avatar_url":"https://avatars.githubusercontent.com/u/103113?v=3","gravatar_id":"","url":"https://api.github.com/users/bradmontgomery","html_url":"https://github.com/bradmontgomery","followers_url":"https://api.github.com/users/bradmontgomery/followers","following_url":"https://api.github.com/users/bradmontgomery/following{/other_user}","gists_url":"https://api.github.com/users/bradmontgomery/gists{/gist_id}","starred_url":"https://api.github.com/users/bradmontgomery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradmontgomery/subscriptions","organizations_url":"https://api.github.com/users/bradmontgomery/orgs","repos_url":"https://api.github.com/users/bradmontgomery/repos","events_url":"https://api.github.com/users/bradmontgomery/events{/privacy}","received_events_url":"https://api.github.com/users/bradmontgomery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradmontgomery/android-app","description":"An android app to help you choose and achieve your goals. This is a work in progress.","fork":true,"url":"https://api.github.com/repos/bradmontgomery/android-app","forks_url":"https://api.github.com/repos/bradmontgomery/android-app/forks","keys_url":"https://api.github.com/repos/bradmontgomery/android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradmontgomery/android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradmontgomery/android-app/teams","hooks_url":"https://api.github.com/repos/bradmontgomery/android-app/hooks","issue_events_url":"https://api.github.com/repos/bradmontgomery/android-app/issues/events{/number}","events_url":"https://api.github.com/repos/bradmontgomery/android-app/events","assignees_url":"https://api.github.com/repos/bradmontgomery/android-app/assignees{/user}","branches_url":"https://api.github.com/repos/bradmontgomery/android-app/branches{/branch}","tags_url":"https://api.github.com/repos/bradmontgomery/android-app/tags","blobs_url":"https://api.github.com/repos/bradmontgomery/android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradmontgomery/android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradmontgomery/android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradmontgomery/android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradmontgomery/android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/bradmontgomery/android-app/languages","stargazers_url":"https://api.github.com/repos/bradmontgomery/android-app/stargazers","contributors_url":"https://api.github.com/repos/bradmontgomery/android-app/contributors","subscribers_url":"https://api.github.com/repos/bradmontgomery/android-app/subscribers","subscription_url":"https://api.github.com/repos/bradmontgomery/android-app/subscription","commits_url":"https://api.github.com/repos/bradmontgomery/android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradmontgomery/android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradmontgomery/android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradmontgomery/android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradmontgomery/android-app/contents/{+path}","compare_url":"https://api.github.com/repos/bradmontgomery/android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradmontgomery/android-app/merges","archive_url":"https://api.github.com/repos/bradmontgomery/android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradmontgomery/android-app/downloads","issues_url":"https://api.github.com/repos/bradmontgomery/android-app/issues{/number}","pulls_url":"https://api.github.com/repos/bradmontgomery/android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/bradmontgomery/android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/bradmontgomery/android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradmontgomery/android-app/labels{/name}","releases_url":"https://api.github.com/repos/bradmontgomery/android-app/releases{/id}","deployments_url":"https://api.github.com/repos/bradmontgomery/android-app/deployments","created_at":"2016-03-18T20:59:35Z","updated_at":"2016-03-18T20:59:37Z","pushed_at":"2016-05-26T19:39:50Z","git_url":"git://github.com/bradmontgomery/android-app.git","ssh_url":"git@github.com:bradmontgomery/android-app.git","clone_url":"https://github.com/bradmontgomery/android-app.git","svn_url":"https://github.com/bradmontgomery/android-app","homepage":"","size":11639,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tndatacommons:master","ref":"master","sha":"6350d832fb16befbc2c60c0350505ae0e0fbaca5","user":{"login":"tndatacommons","id":11433555,"avatar_url":"https://avatars.githubusercontent.com/u/11433555?v=3","gravatar_id":"","url":"https://api.github.com/users/tndatacommons","html_url":"https://github.com/tndatacommons","followers_url":"https://api.github.com/users/tndatacommons/followers","following_url":"https://api.github.com/users/tndatacommons/following{/other_user}","gists_url":"https://api.github.com/users/tndatacommons/gists{/gist_id}","starred_url":"https://api.github.com/users/tndatacommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tndatacommons/subscriptions","organizations_url":"https://api.github.com/users/tndatacommons/orgs","repos_url":"https://api.github.com/users/tndatacommons/repos","events_url":"https://api.github.com/users/tndatacommons/events{/privacy}","received_events_url":"https://api.github.com/users/tndatacommons/received_events","type":"Organization","site_admin":false},"repo":{"id":32988201,"name":"android-app","full_name":"tndatacommons/android-app","owner":{"login":"tndatacommons","id":11433555,"avatar_url":"https://avatars.githubusercontent.com/u/11433555?v=3","gravatar_id":"","url":"https://api.github.com/users/tndatacommons","html_url":"https://github.com/tndatacommons","followers_url":"https://api.github.com/users/tndatacommons/followers","following_url":"https://api.github.com/users/tndatacommons/following{/other_user}","gists_url":"https://api.github.com/users/tndatacommons/gists{/gist_id}","starred_url":"https://api.github.com/users/tndatacommons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tndatacommons/subscriptions","organizations_url":"https://api.github.com/users/tndatacommons/orgs","repos_url":"https://api.github.com/users/tndatacommons/repos","events_url":"https://api.github.com/users/tndatacommons/events{/privacy}","received_events_url":"https://api.github.com/users/tndatacommons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tndatacommons/android-app","description":"An android app to help you choose and achieve your goals. This is a work in progress.","fork":false,"url":"https://api.github.com/repos/tndatacommons/android-app","forks_url":"https://api.github.com/repos/tndatacommons/android-app/forks","keys_url":"https://api.github.com/repos/tndatacommons/android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tndatacommons/android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tndatacommons/android-app/teams","hooks_url":"https://api.github.com/repos/tndatacommons/android-app/hooks","issue_events_url":"https://api.github.com/repos/tndatacommons/android-app/issues/events{/number}","events_url":"https://api.github.com/repos/tndatacommons/android-app/events","assignees_url":"https://api.github.com/repos/tndatacommons/android-app/assignees{/user}","branches_url":"https://api.github.com/repos/tndatacommons/android-app/branches{/branch}","tags_url":"https://api.github.com/repos/tndatacommons/android-app/tags","blobs_url":"https://api.github.com/repos/tndatacommons/android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tndatacommons/android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tndatacommons/android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/tndatacommons/android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tndatacommons/android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/tndatacommons/android-app/languages","stargazers_url":"https://api.github.com/repos/tndatacommons/android-app/stargazers","contributors_url":"https://api.github.com/repos/tndatacommons/android-app/contributors","subscribers_url":"https://api.github.com/repos/tndatacommons/android-app/subscribers","subscription_url":"https://api.github.com/repos/tndatacommons/android-app/subscription","commits_url":"https://api.github.com/repos/tndatacommons/android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/tndatacommons/android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/tndatacommons/android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/tndatacommons/android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/tndatacommons/android-app/contents/{+path}","compare_url":"https://api.github.com/repos/tndatacommons/android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tndatacommons/android-app/merges","archive_url":"https://api.github.com/repos/tndatacommons/android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tndatacommons/android-app/downloads","issues_url":"https://api.github.com/repos/tndatacommons/android-app/issues{/number}","pulls_url":"https://api.github.com/repos/tndatacommons/android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/tndatacommons/android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/tndatacommons/android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tndatacommons/android-app/labels{/name}","releases_url":"https://api.github.com/repos/tndatacommons/android-app/releases{/id}","deployments_url":"https://api.github.com/repos/tndatacommons/android-app/deployments","created_at":"2015-03-27T13:41:44Z","updated_at":"2016-05-25T10:39:19Z","pushed_at":"2016-05-26T19:41:44Z","git_url":"git://github.com/tndatacommons/android-app.git","ssh_url":"git@github.com:tndatacommons/android-app.git","clone_url":"https://github.com/tndatacommons/android-app.git","svn_url":"https://github.com/tndatacommons/android-app","homepage":"","size":11626,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/196"},"html":{"href":"https://github.com/tndatacommons/android-app/pull/196"},"issue":{"href":"https://api.github.com/repos/tndatacommons/android-app/issues/196"},"comments":{"href":"https://api.github.com/repos/tndatacommons/android-app/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tndatacommons/android-app/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/tndatacommons/android-app/statuses/38257bbf1bcb35dfa58bbd1bfdd0722dc19a1449"}}}}
{"actor":{"display_login":"Revenaunt"}}