{"action":"created","comment":{"url":"https://api.github.com/repos/systemd/systemd/pulls/comments/172484269","pull_request_review_id":101496865,"id":172484269,"diff_hunk":"@@ -95,7 +98,19 @@ int parse_sleep_config(const char *verb, char ***_modes, char ***_states) {\n                 else\n                         states = strv_new(\"disk\", NULL);\n \n-        } else\n+        } else if (streq(verb, \"suspend-to-hibernate\")) {\n+                /* minutes */\n+                if (hibernate_delay)\n+                        USE(modes, hibernate_delay);\n+                else\n+                        modes = strv_new(\"180\", NULL);","path":"src/shared/sleep-config.c","position":36,"original_position":36,"commit_id":"6e0990b61f4c74e2ed004602198fca86cd2047f2","original_commit_id":"6e0990b61f4c74e2ed004602198fca86cd2047f2","user":{"login":"keszybz","id":349618,"avatar_url":"https://avatars1.githubusercontent.com/u/349618?v=4","gravatar_id":"","url":"https://api.github.com/users/keszybz","html_url":"https://github.com/keszybz","followers_url":"https://api.github.com/users/keszybz/followers","following_url":"https://api.github.com/users/keszybz/following{/other_user}","gists_url":"https://api.github.com/users/keszybz/gists{/gist_id}","starred_url":"https://api.github.com/users/keszybz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keszybz/subscriptions","organizations_url":"https://api.github.com/users/keszybz/orgs","repos_url":"https://api.github.com/users/keszybz/repos","events_url":"https://api.github.com/users/keszybz/events{/privacy}","received_events_url":"https://api.github.com/users/keszybz/received_events","type":"User","site_admin":false},"body":"\"180\"?","created_at":"2018-03-06T11:15:29Z","updated_at":"2018-03-06T11:29:29Z","html_url":"https://github.com/systemd/systemd/pull/8274#discussion_r172484269","pull_request_url":"https://api.github.com/repos/systemd/systemd/pulls/8274","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/systemd/systemd/pulls/comments/172484269"},"html":{"href":"https://github.com/systemd/systemd/pull/8274#discussion_r172484269"},"pull_request":{"href":"https://api.github.com/repos/systemd/systemd/pulls/8274"}}},"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/8274","id":171282548,"html_url":"https://github.com/systemd/systemd/pull/8274","diff_url":"https://github.com/systemd/systemd/pull/8274.diff","patch_url":"https://github.com/systemd/systemd/pull/8274.patch","issue_url":"https://api.github.com/repos/systemd/systemd/issues/8274","number":8274,"state":"open","locked":false,"title":"Introduce suspend-to-hibernate","user":{"login":"superm1","id":494526,"avatar_url":"https://avatars0.githubusercontent.com/u/494526?v=4","gravatar_id":"","url":"https://api.github.com/users/superm1","html_url":"https://github.com/superm1","followers_url":"https://api.github.com/users/superm1/followers","following_url":"https://api.github.com/users/superm1/following{/other_user}","gists_url":"https://api.github.com/users/superm1/gists{/gist_id}","starred_url":"https://api.github.com/users/superm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superm1/subscriptions","organizations_url":"https://api.github.com/users/superm1/orgs","repos_url":"https://api.github.com/users/superm1/repos","events_url":"https://api.github.com/users/superm1/events{/privacy}","received_events_url":"https://api.github.com/users/superm1/received_events","type":"User","site_admin":false},"body":"Suspend to Hibernate is a new sleep method that invokes suspend\r\nfor a predefined period of time before automatically waking up\r\nand hibernating the system.\r\n\r\nIt's similar to HybridSleep however there isn't a performance\r\nimpact on every suspend cycle.\r\n\r\nIt's intended to use with systems that may have a higher power\r\ndrain in their supported suspend states to prevent battery and\r\ndata loss over an extended suspend cycle.\r\n\r\n","created_at":"2018-02-26T04:57:16Z","updated_at":"2018-03-06T11:29:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3c79ee9afce2d25bc88a9bdcad1d2f22fd370c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/systemd/systemd/pulls/8274/commits","review_comments_url":"https://api.github.com/repos/systemd/systemd/pulls/8274/comments","review_comment_url":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/8274/comments","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/6e0990b61f4c74e2ed004602198fca86cd2047f2","head":{"label":"dell:suspend-to-hibernate","ref":"suspend-to-hibernate","sha":"6e0990b61f4c74e2ed004602198fca86cd2047f2","user":{"login":"dell","id":20958494,"avatar_url":"https://avatars0.githubusercontent.com/u/20958494?v=4","gravatar_id":"","url":"https://api.github.com/users/dell","html_url":"https://github.com/dell","followers_url":"https://api.github.com/users/dell/followers","following_url":"https://api.github.com/users/dell/following{/other_user}","gists_url":"https://api.github.com/users/dell/gists{/gist_id}","starred_url":"https://api.github.com/users/dell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dell/subscriptions","organizations_url":"https://api.github.com/users/dell/orgs","repos_url":"https://api.github.com/users/dell/repos","events_url":"https://api.github.com/users/dell/events{/privacy}","received_events_url":"https://api.github.com/users/dell/received_events","type":"Organization","site_admin":false},"repo":{"id":122915007,"name":"systemd","full_name":"dell/systemd","owner":{"login":"dell","id":20958494,"avatar_url":"https://avatars0.githubusercontent.com/u/20958494?v=4","gravatar_id":"","url":"https://api.github.com/users/dell","html_url":"https://github.com/dell","followers_url":"https://api.github.com/users/dell/followers","following_url":"https://api.github.com/users/dell/following{/other_user}","gists_url":"https://api.github.com/users/dell/gists{/gist_id}","starred_url":"https://api.github.com/users/dell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dell/subscriptions","organizations_url":"https://api.github.com/users/dell/orgs","repos_url":"https://api.github.com/users/dell/repos","events_url":"https://api.github.com/users/dell/events{/privacy}","received_events_url":"https://api.github.com/users/dell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dell/systemd","description":"🐧 ⚙️ – systemd System and Service Manager ","fork":true,"url":"https://api.github.com/repos/dell/systemd","forks_url":"https://api.github.com/repos/dell/systemd/forks","keys_url":"https://api.github.com/repos/dell/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dell/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dell/systemd/teams","hooks_url":"https://api.github.com/repos/dell/systemd/hooks","issue_events_url":"https://api.github.com/repos/dell/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/dell/systemd/events","assignees_url":"https://api.github.com/repos/dell/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/dell/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/dell/systemd/tags","blobs_url":"https://api.github.com/repos/dell/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dell/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dell/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/dell/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dell/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/dell/systemd/languages","stargazers_url":"https://api.github.com/repos/dell/systemd/stargazers","contributors_url":"https://api.github.com/repos/dell/systemd/contributors","subscribers_url":"https://api.github.com/repos/dell/systemd/subscribers","subscription_url":"https://api.github.com/repos/dell/systemd/subscription","commits_url":"https://api.github.com/repos/dell/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/dell/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/dell/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/dell/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/dell/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/dell/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dell/systemd/merges","archive_url":"https://api.github.com/repos/dell/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dell/systemd/downloads","issues_url":"https://api.github.com/repos/dell/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/dell/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/dell/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/dell/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dell/systemd/labels{/name}","releases_url":"https://api.github.com/repos/dell/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/dell/systemd/deployments","created_at":"2018-02-26T04:52:45Z","updated_at":"2018-02-26T04:52:54Z","pushed_at":"2018-02-26T05:59:48Z","git_url":"git://github.com/dell/systemd.git","ssh_url":"git@github.com:dell/systemd.git","clone_url":"https://github.com/dell/systemd.git","svn_url":"https://github.com/dell/systemd","homepage":"https://www.freedesktop.org/wiki/Software/systemd/","size":85921,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"systemd:master","ref":"master","sha":"3153ded003233b4431ee2fa4cea96cb987c08fd4","user":{"login":"systemd","id":1918868,"avatar_url":"https://avatars0.githubusercontent.com/u/1918868?v=4","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"repo":{"id":32873313,"name":"systemd","full_name":"systemd/systemd","owner":{"login":"systemd","id":1918868,"avatar_url":"https://avatars0.githubusercontent.com/u/1918868?v=4","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemd/systemd","description":"⚙️ 🐧 systemd System and Service Manager ","fork":false,"url":"https://api.github.com/repos/systemd/systemd","forks_url":"https://api.github.com/repos/systemd/systemd/forks","keys_url":"https://api.github.com/repos/systemd/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemd/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemd/systemd/teams","hooks_url":"https://api.github.com/repos/systemd/systemd/hooks","issue_events_url":"https://api.github.com/repos/systemd/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/systemd/systemd/events","assignees_url":"https://api.github.com/repos/systemd/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/systemd/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/systemd/systemd/tags","blobs_url":"https://api.github.com/repos/systemd/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemd/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemd/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemd/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/systemd/systemd/languages","stargazers_url":"https://api.github.com/repos/systemd/systemd/stargazers","contributors_url":"https://api.github.com/repos/systemd/systemd/contributors","subscribers_url":"https://api.github.com/repos/systemd/systemd/subscribers","subscription_url":"https://api.github.com/repos/systemd/systemd/subscription","commits_url":"https://api.github.com/repos/systemd/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemd/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemd/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemd/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemd/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/systemd/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemd/systemd/merges","archive_url":"https://api.github.com/repos/systemd/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemd/systemd/downloads","issues_url":"https://api.github.com/repos/systemd/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/systemd/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/systemd/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/systemd/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemd/systemd/labels{/name}","releases_url":"https://api.github.com/repos/systemd/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/systemd/systemd/deployments","created_at":"2015-03-25T15:27:27Z","updated_at":"2018-03-06T10:48:23Z","pushed_at":"2018-03-06T09:48:26Z","git_url":"git://github.com/systemd/systemd.git","ssh_url":"git@github.com:systemd/systemd.git","clone_url":"https://github.com/systemd/systemd.git","svn_url":"https://github.com/systemd/systemd","homepage":"https://www.freedesktop.org/wiki/Software/systemd/","size":86886,"stargazers_count":2860,"watchers_count":2860,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1162,"mirror_url":null,"archived":false,"open_issues_count":880,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1162,"open_issues":880,"watchers":2860,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemd/systemd/pulls/8274"},"html":{"href":"https://github.com/systemd/systemd/pull/8274"},"issue":{"href":"https://api.github.com/repos/systemd/systemd/issues/8274"},"comments":{"href":"https://api.github.com/repos/systemd/systemd/issues/8274/comments"},"review_comments":{"href":"https://api.github.com/repos/systemd/systemd/pulls/8274/comments"},"review_comment":{"href":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemd/systemd/pulls/8274/commits"},"statuses":{"href":"https://api.github.com/repos/systemd/systemd/statuses/6e0990b61f4c74e2ed004602198fca86cd2047f2"}},"author_association":"NONE"}}
{"actor":{"display_login":"keszybz"}}