{"action":"created","comment":{"url":"https://api.github.com/repos/yast/yast-yast2/pulls/comments/34018318","id":34018318,"diff_hunk":"@@ -65,6 +65,9 @@ class FsSnapshot\n     LIST_SNAPSHOTS_CMD = \"LANG=en_US.UTF-8 /usr/bin/snapper --no-dbus --root=%{root} list\"\n     VALID_LINE_REGEX = /\\A\\w+\\s+\\| \\d+/\n \n+    # Predefined snapshot cleanup strategies (the user can define custom ones, too)","path":"library/system/src/lib/yast2/fs_snapshot.rb","position":4,"original_position":4,"commit_id":"319d73627cfa66bbac2516189254d15a2311c870","original_commit_id":"319d73627cfa66bbac2516189254d15a2311c870","user":{"login":"shundhammer","id":11538225,"avatar_url":"https://avatars.githubusercontent.com/u/11538225?v=3","gravatar_id":"","url":"https://api.github.com/users/shundhammer","html_url":"https://github.com/shundhammer","followers_url":"https://api.github.com/users/shundhammer/followers","following_url":"https://api.github.com/users/shundhammer/following{/other_user}","gists_url":"https://api.github.com/users/shundhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/shundhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shundhammer/subscriptions","organizations_url":"https://api.github.com/users/shundhammer/orgs","repos_url":"https://api.github.com/users/shundhammer/repos","events_url":"https://api.github.com/users/shundhammer/events{/privacy}","received_events_url":"https://api.github.com/users/shundhammer/received_events","type":"User","site_admin":false},"body":"Not in the context of this Ruby class, but in general, he can. Snapper comes with those predefined ones you see here, but a user can write his own scripts and make snapper use them on request. Arvin knows more details about that.","created_at":"2015-07-07T08:38:28Z","updated_at":"2015-07-07T08:38:28Z","html_url":"https://github.com/yast/yast-yast2/pull/378#discussion_r34018318","pull_request_url":"https://api.github.com/repos/yast/yast-yast2/pulls/378","_links":{"self":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/comments/34018318"},"html":{"href":"https://github.com/yast/yast-yast2/pull/378#discussion_r34018318"},"pull_request":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/378"}}},"pull_request":{"url":"https://api.github.com/repos/yast/yast-yast2/pulls/378","id":39345907,"html_url":"https://github.com/yast/yast-yast2/pull/378","diff_url":"https://github.com/yast/yast-yast2/pull/378.diff","patch_url":"https://github.com/yast/yast-yast2/pull/378.patch","issue_url":"https://api.github.com/repos/yast/yast-yast2/issues/378","number":378,"state":"open","locked":false,"title":"Huha snapshot cleanup","user":{"login":"shundhammer","id":11538225,"avatar_url":"https://avatars.githubusercontent.com/u/11538225?v=3","gravatar_id":"","url":"https://api.github.com/users/shundhammer","html_url":"https://github.com/shundhammer","followers_url":"https://api.github.com/users/shundhammer/followers","following_url":"https://api.github.com/users/shundhammer/following{/other_user}","gists_url":"https://api.github.com/users/shundhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/shundhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shundhammer/subscriptions","organizations_url":"https://api.github.com/users/shundhammer/orgs","repos_url":"https://api.github.com/users/shundhammer/repos","events_url":"https://api.github.com/users/shundhammer/events{/privacy}","received_events_url":"https://api.github.com/users/shundhammer/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/YDDWzV5X","created_at":"2015-07-07T08:29:10Z","updated_at":"2015-07-07T08:38:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48fc15c58ad7cfadafe233ee5b7bf44b1995e411","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yast/yast-yast2/pulls/378/commits","review_comments_url":"https://api.github.com/repos/yast/yast-yast2/pulls/378/comments","review_comment_url":"https://api.github.com/repos/yast/yast-yast2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yast/yast-yast2/issues/378/comments","statuses_url":"https://api.github.com/repos/yast/yast-yast2/statuses/319d73627cfa66bbac2516189254d15a2311c870","head":{"label":"shundhammer:huha-snapshot-cleanup","ref":"huha-snapshot-cleanup","sha":"319d73627cfa66bbac2516189254d15a2311c870","user":{"login":"shundhammer","id":11538225,"avatar_url":"https://avatars.githubusercontent.com/u/11538225?v=3","gravatar_id":"","url":"https://api.github.com/users/shundhammer","html_url":"https://github.com/shundhammer","followers_url":"https://api.github.com/users/shundhammer/followers","following_url":"https://api.github.com/users/shundhammer/following{/other_user}","gists_url":"https://api.github.com/users/shundhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/shundhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shundhammer/subscriptions","organizations_url":"https://api.github.com/users/shundhammer/orgs","repos_url":"https://api.github.com/users/shundhammer/repos","events_url":"https://api.github.com/users/shundhammer/events{/privacy}","received_events_url":"https://api.github.com/users/shundhammer/received_events","type":"User","site_admin":false},"repo":{"id":38038947,"name":"yast-yast2","full_name":"shundhammer/yast-yast2","owner":{"login":"shundhammer","id":11538225,"avatar_url":"https://avatars.githubusercontent.com/u/11538225?v=3","gravatar_id":"","url":"https://api.github.com/users/shundhammer","html_url":"https://github.com/shundhammer","followers_url":"https://api.github.com/users/shundhammer/followers","following_url":"https://api.github.com/users/shundhammer/following{/other_user}","gists_url":"https://api.github.com/users/shundhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/shundhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shundhammer/subscriptions","organizations_url":"https://api.github.com/users/shundhammer/orgs","repos_url":"https://api.github.com/users/shundhammer/repos","events_url":"https://api.github.com/users/shundhammer/events{/privacy}","received_events_url":"https://api.github.com/users/shundhammer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shundhammer/yast-yast2","description":"YaST module yast2","fork":true,"url":"https://api.github.com/repos/shundhammer/yast-yast2","forks_url":"https://api.github.com/repos/shundhammer/yast-yast2/forks","keys_url":"https://api.github.com/repos/shundhammer/yast-yast2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shundhammer/yast-yast2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shundhammer/yast-yast2/teams","hooks_url":"https://api.github.com/repos/shundhammer/yast-yast2/hooks","issue_events_url":"https://api.github.com/repos/shundhammer/yast-yast2/issues/events{/number}","events_url":"https://api.github.com/repos/shundhammer/yast-yast2/events","assignees_url":"https://api.github.com/repos/shundhammer/yast-yast2/assignees{/user}","branches_url":"https://api.github.com/repos/shundhammer/yast-yast2/branches{/branch}","tags_url":"https://api.github.com/repos/shundhammer/yast-yast2/tags","blobs_url":"https://api.github.com/repos/shundhammer/yast-yast2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shundhammer/yast-yast2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shundhammer/yast-yast2/git/refs{/sha}","trees_url":"https://api.github.com/repos/shundhammer/yast-yast2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shundhammer/yast-yast2/statuses/{sha}","languages_url":"https://api.github.com/repos/shundhammer/yast-yast2/languages","stargazers_url":"https://api.github.com/repos/shundhammer/yast-yast2/stargazers","contributors_url":"https://api.github.com/repos/shundhammer/yast-yast2/contributors","subscribers_url":"https://api.github.com/repos/shundhammer/yast-yast2/subscribers","subscription_url":"https://api.github.com/repos/shundhammer/yast-yast2/subscription","commits_url":"https://api.github.com/repos/shundhammer/yast-yast2/commits{/sha}","git_commits_url":"https://api.github.com/repos/shundhammer/yast-yast2/git/commits{/sha}","comments_url":"https://api.github.com/repos/shundhammer/yast-yast2/comments{/number}","issue_comment_url":"https://api.github.com/repos/shundhammer/yast-yast2/issues/comments{/number}","contents_url":"https://api.github.com/repos/shundhammer/yast-yast2/contents/{+path}","compare_url":"https://api.github.com/repos/shundhammer/yast-yast2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shundhammer/yast-yast2/merges","archive_url":"https://api.github.com/repos/shundhammer/yast-yast2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shundhammer/yast-yast2/downloads","issues_url":"https://api.github.com/repos/shundhammer/yast-yast2/issues{/number}","pulls_url":"https://api.github.com/repos/shundhammer/yast-yast2/pulls{/number}","milestones_url":"https://api.github.com/repos/shundhammer/yast-yast2/milestones{/number}","notifications_url":"https://api.github.com/repos/shundhammer/yast-yast2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shundhammer/yast-yast2/labels{/name}","releases_url":"https://api.github.com/repos/shundhammer/yast-yast2/releases{/id}","created_at":"2015-06-25T08:57:19Z","updated_at":"2015-06-25T08:57:23Z","pushed_at":"2015-07-07T08:27:17Z","git_url":"git://github.com/shundhammer/yast-yast2.git","ssh_url":"git@github.com:shundhammer/yast-yast2.git","clone_url":"https://github.com/shundhammer/yast-yast2.git","svn_url":"https://github.com/shundhammer/yast-yast2","homepage":"http://en.opensuse.org/Portal:YaST","size":23367,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"yast:master","ref":"master","sha":"4797b32b764168fb03e505ef764d6afc8bf859fe","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368244,"name":"yast-yast2","full_name":"yast/yast-yast2","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-yast2","description":"YaST module yast2","fork":false,"url":"https://api.github.com/repos/yast/yast-yast2","forks_url":"https://api.github.com/repos/yast/yast-yast2/forks","keys_url":"https://api.github.com/repos/yast/yast-yast2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-yast2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-yast2/teams","hooks_url":"https://api.github.com/repos/yast/yast-yast2/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-yast2/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-yast2/events","assignees_url":"https://api.github.com/repos/yast/yast-yast2/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-yast2/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-yast2/tags","blobs_url":"https://api.github.com/repos/yast/yast-yast2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-yast2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-yast2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-yast2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-yast2/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-yast2/languages","stargazers_url":"https://api.github.com/repos/yast/yast-yast2/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-yast2/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-yast2/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-yast2/subscription","commits_url":"https://api.github.com/repos/yast/yast-yast2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-yast2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-yast2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-yast2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-yast2/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-yast2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-yast2/merges","archive_url":"https://api.github.com/repos/yast/yast-yast2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-yast2/downloads","issues_url":"https://api.github.com/repos/yast/yast-yast2/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-yast2/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-yast2/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-yast2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-yast2/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-yast2/releases{/id}","created_at":"2012-05-18T10:27:22Z","updated_at":"2015-06-10T07:55:29Z","pushed_at":"2015-07-07T08:29:10Z","git_url":"git://github.com/yast/yast-yast2.git","ssh_url":"git@github.com:yast/yast-yast2.git","clone_url":"https://github.com/yast/yast-yast2.git","svn_url":"https://github.com/yast/yast-yast2","homepage":"http://en.opensuse.org/Portal:YaST","size":26689,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":4,"forks":25,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/378"},"html":{"href":"https://github.com/yast/yast-yast2/pull/378"},"issue":{"href":"https://api.github.com/repos/yast/yast-yast2/issues/378"},"comments":{"href":"https://api.github.com/repos/yast/yast-yast2/issues/378/comments"},"review_comments":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/378/comments"},"review_comment":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yast/yast-yast2/pulls/378/commits"},"statuses":{"href":"https://api.github.com/repos/yast/yast-yast2/statuses/319d73627cfa66bbac2516189254d15a2311c870"}}}}