{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/projectatomic/libdnf/pulls/5","id":207696779,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3Njk2Nzc5","html_url":"https://github.com/projectatomic/libdnf/pull/5","diff_url":"https://github.com/projectatomic/libdnf/pull/5.diff","patch_url":"https://github.com/projectatomic/libdnf/pull/5.patch","issue_url":"https://api.github.com/repos/projectatomic/libdnf/issues/5","number":5,"state":"open","locked":false,"title":"rpmts: Use `rpmProblemString()` rather than reinventing it","user":{"login":"jlebon","id":11934099,"node_id":"MDQ6VXNlcjExOTM0MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/11934099?v=4","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"body":"I looked back through git history and couldn't find a reason\r\nwe weren't using this from the start.  The API exists in RHEL7\r\n`rpm-4.11.3-32.el7.x86_64`.\r\n\r\nI'm writing this in particular because librpm recently added\r\n`RPMPROB_VERIFY` and in that scenario we'd just walk off the end\r\nof the switch and return `NULL`.\r\n\r\nRef: https://github.com/projectatomic/rpm-ostree/issues/1462","created_at":"2018-08-10T19:02:02Z","updated_at":"2018-08-10T19:02:02Z","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/projectatomic/libdnf/pulls/5/commits","review_comments_url":"https://api.github.com/repos/projectatomic/libdnf/pulls/5/comments","review_comment_url":"https://api.github.com/repos/projectatomic/libdnf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/libdnf/issues/5/comments","statuses_url":"https://api.github.com/repos/projectatomic/libdnf/statuses/7e36b241a30ffc2515a3de2d5fb8ffce01c4dee5","head":{"label":"jlebon:pr/problem-string","ref":"pr/problem-string","sha":"7e36b241a30ffc2515a3de2d5fb8ffce01c4dee5","user":{"login":"jlebon","id":11934099,"node_id":"MDQ6VXNlcjExOTM0MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/11934099?v=4","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"repo":{"id":80767527,"node_id":"MDEwOlJlcG9zaXRvcnk4MDc2NzUyNw==","name":"libdnf","full_name":"jlebon/libdnf","owner":{"login":"jlebon","id":11934099,"node_id":"MDQ6VXNlcjExOTM0MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/11934099?v=4","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlebon/libdnf","description":"Simple package manager built on top of hawkey and librepo","fork":true,"url":"https://api.github.com/repos/jlebon/libdnf","forks_url":"https://api.github.com/repos/jlebon/libdnf/forks","keys_url":"https://api.github.com/repos/jlebon/libdnf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlebon/libdnf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlebon/libdnf/teams","hooks_url":"https://api.github.com/repos/jlebon/libdnf/hooks","issue_events_url":"https://api.github.com/repos/jlebon/libdnf/issues/events{/number}","events_url":"https://api.github.com/repos/jlebon/libdnf/events","assignees_url":"https://api.github.com/repos/jlebon/libdnf/assignees{/user}","branches_url":"https://api.github.com/repos/jlebon/libdnf/branches{/branch}","tags_url":"https://api.github.com/repos/jlebon/libdnf/tags","blobs_url":"https://api.github.com/repos/jlebon/libdnf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlebon/libdnf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlebon/libdnf/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlebon/libdnf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlebon/libdnf/statuses/{sha}","languages_url":"https://api.github.com/repos/jlebon/libdnf/languages","stargazers_url":"https://api.github.com/repos/jlebon/libdnf/stargazers","contributors_url":"https://api.github.com/repos/jlebon/libdnf/contributors","subscribers_url":"https://api.github.com/repos/jlebon/libdnf/subscribers","subscription_url":"https://api.github.com/repos/jlebon/libdnf/subscription","commits_url":"https://api.github.com/repos/jlebon/libdnf/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlebon/libdnf/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlebon/libdnf/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlebon/libdnf/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlebon/libdnf/contents/{+path}","compare_url":"https://api.github.com/repos/jlebon/libdnf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlebon/libdnf/merges","archive_url":"https://api.github.com/repos/jlebon/libdnf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlebon/libdnf/downloads","issues_url":"https://api.github.com/repos/jlebon/libdnf/issues{/number}","pulls_url":"https://api.github.com/repos/jlebon/libdnf/pulls{/number}","milestones_url":"https://api.github.com/repos/jlebon/libdnf/milestones{/number}","notifications_url":"https://api.github.com/repos/jlebon/libdnf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlebon/libdnf/labels{/name}","releases_url":"https://api.github.com/repos/jlebon/libdnf/releases{/id}","deployments_url":"https://api.github.com/repos/jlebon/libdnf/deployments","created_at":"2017-02-02T20:50:49Z","updated_at":"2017-02-02T20:50:51Z","pushed_at":"2018-08-10T19:01:32Z","git_url":"git://github.com/jlebon/libdnf.git","ssh_url":"git@github.com:jlebon/libdnf.git","clone_url":"https://github.com/jlebon/libdnf.git","svn_url":"https://github.com/jlebon/libdnf","homepage":null,"size":5584,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectatomic:rpmostree-branch","ref":"rpmostree-branch","sha":"1cad4373cfa142571cdd78b926814451cdcc25c3","user":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":113085431,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwODU0MzE=","name":"libdnf","full_name":"projectatomic/libdnf","owner":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/libdnf","description":"Simple package manager built on top of hawkey and librepo","fork":true,"url":"https://api.github.com/repos/projectatomic/libdnf","forks_url":"https://api.github.com/repos/projectatomic/libdnf/forks","keys_url":"https://api.github.com/repos/projectatomic/libdnf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/libdnf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/libdnf/teams","hooks_url":"https://api.github.com/repos/projectatomic/libdnf/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/libdnf/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/libdnf/events","assignees_url":"https://api.github.com/repos/projectatomic/libdnf/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/libdnf/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/libdnf/tags","blobs_url":"https://api.github.com/repos/projectatomic/libdnf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/libdnf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/libdnf/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/libdnf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/libdnf/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/libdnf/languages","stargazers_url":"https://api.github.com/repos/projectatomic/libdnf/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/libdnf/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/libdnf/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/libdnf/subscription","commits_url":"https://api.github.com/repos/projectatomic/libdnf/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/libdnf/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/libdnf/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/libdnf/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/libdnf/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/libdnf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/libdnf/merges","archive_url":"https://api.github.com/repos/projectatomic/libdnf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/libdnf/downloads","issues_url":"https://api.github.com/repos/projectatomic/libdnf/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/libdnf/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/libdnf/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/libdnf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/libdnf/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/libdnf/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/libdnf/deployments","created_at":"2017-12-04T19:27:28Z","updated_at":"2018-08-02T14:57:47Z","pushed_at":"2018-07-31T13:36:21Z","git_url":"git://github.com/projectatomic/libdnf.git","ssh_url":"git@github.com:projectatomic/libdnf.git","clone_url":"https://github.com/projectatomic/libdnf.git","svn_url":"https://github.com/projectatomic/libdnf","homepage":null,"size":5104,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/libdnf/pulls/5"},"html":{"href":"https://github.com/projectatomic/libdnf/pull/5"},"issue":{"href":"https://api.github.com/repos/projectatomic/libdnf/issues/5"},"comments":{"href":"https://api.github.com/repos/projectatomic/libdnf/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/libdnf/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/libdnf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/libdnf/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/libdnf/statuses/7e36b241a30ffc2515a3de2d5fb8ffce01c4dee5"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":82,"changed_files":1}}
{"actor":{"display_login":"jlebon"}}