{"action":"created","comment":{"url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/comments/197348961","pull_request_review_id":131076129,"id":197348961,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzM0ODk2MQ==","diff_hunk":"@@ -0,0 +1,11 @@\n+import contextlib\n+import os\n+\n+@contextlib.contextmanager\n+def pushd(new_dir):","path":"test/helpers.py","position":null,"original_position":5,"commit_id":"83584cea02eaa69934924808dbca5826428d3f5c","original_commit_id":"8c460fbefe0af955932e877d5ce8605029e0cd57","user":{"login":"yan12125","id":1937689,"node_id":"MDQ6VXNlcjE5Mzc2ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1937689?v=4","gravatar_id":"","url":"https://api.github.com/users/yan12125","html_url":"https://github.com/yan12125","followers_url":"https://api.github.com/users/yan12125/followers","following_url":"https://api.github.com/users/yan12125/following{/other_user}","gists_url":"https://api.github.com/users/yan12125/gists{/gist_id}","starred_url":"https://api.github.com/users/yan12125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan12125/subscriptions","organizations_url":"https://api.github.com/users/yan12125/orgs","repos_url":"https://api.github.com/users/yan12125/repos","events_url":"https://api.github.com/users/yan12125/events{/privacy}","received_events_url":"https://api.github.com/users/yan12125/received_events","type":"User","site_admin":false},"body":"Thanks for the hint. Updated.","created_at":"2018-06-22T06:10:40Z","updated_at":"2018-06-22T06:10:40Z","html_url":"https://github.com/archlinuxcn/lilac/pull/64#discussion_r197348961","pull_request_url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/comments/197348961"},"html":{"href":"https://github.com/archlinuxcn/lilac/pull/64#discussion_r197348961"},"pull_request":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64"}},"in_reply_to_id":197331397},"pull_request":{"url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64","id":196502053,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NTAyMDUz","html_url":"https://github.com/archlinuxcn/lilac/pull/64","diff_url":"https://github.com/archlinuxcn/lilac/pull/64.diff","patch_url":"https://github.com/archlinuxcn/lilac/pull/64.patch","issue_url":"https://api.github.com/repos/archlinuxcn/lilac/issues/64","number":64,"state":"open","locked":false,"title":"lilaclib: fix update_pkgrel() for pkgrel >= 10 and add tests","user":{"login":"yan12125","id":1937689,"node_id":"MDQ6VXNlcjE5Mzc2ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1937689?v=4","gravatar_id":"","url":"https://api.github.com/users/yan12125","html_url":"https://github.com/yan12125","followers_url":"https://api.github.com/users/yan12125/followers","following_url":"https://api.github.com/users/yan12125/following{/other_user}","gists_url":"https://api.github.com/users/yan12125/gists{/gist_id}","starred_url":"https://api.github.com/users/yan12125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan12125/subscriptions","organizations_url":"https://api.github.com/users/yan12125/orgs","repos_url":"https://api.github.com/users/yan12125/repos","events_url":"https://api.github.com/users/yan12125/events{/privacy}","received_events_url":"https://api.github.com/users/yan12125/received_events","type":"User","site_admin":false},"body":"For example, a `PKGBUILD` with `pkgrel=10` should become `pkgrel=11` after calling `update_pkgrel()`.\r\n\r\nThe test suite uses pytest. A sample run:\r\n```\r\n$ py.test-3.6 -v\r\n===================================================== test session starts ======================================================\r\nplatform darwin -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6\r\ncachedir: .pytest_cache\r\nrootdir: /Users/yen/Projects/lilac, inifile:\r\ncollected 5 items\r\n\r\ntest/test_lilaclib.py::test_update_pkgrel[pkgrel=1-pkgrel=2-kwargs0] PASSED                                              [ 20%]\r\ntest/test_lilaclib.py::test_update_pkgrel[pkgrel=10-pkgrel=11-kwargs1] PASSED                                            [ 40%]\r\ntest/test_lilaclib.py::test_update_pkgrel[pkgrel=1.1-pkgrel=2-kwargs2] PASSED                                            [ 60%]\r\ntest/test_lilaclib.py::test_update_pkgrel[pkgrel=\"1\"-pkgrel=2-kwargs3] PASSED                                            [ 80%]\r\ntest/test_lilaclib.py::test_update_pkgrel[pkgrel=1-pkgrel=3-kwargs4] PASSED                                              [100%]\r\n\r\n=================================================== 5 passed in 0.22 seconds ===================================================\r\n```","created_at":"2018-06-21T16:03:44Z","updated_at":"2018-06-22T06:10:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57514128cad0a247b1d453900d4c3979607ed204","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64/commits","review_comments_url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64/comments","review_comment_url":"https://api.github.com/repos/archlinuxcn/lilac/pulls/comments{/number}","comments_url":"https://api.github.com/repos/archlinuxcn/lilac/issues/64/comments","statuses_url":"https://api.github.com/repos/archlinuxcn/lilac/statuses/83584cea02eaa69934924808dbca5826428d3f5c","head":{"label":"yan12125:fix-update-pkgrel","ref":"fix-update-pkgrel","sha":"83584cea02eaa69934924808dbca5826428d3f5c","user":{"login":"yan12125","id":1937689,"node_id":"MDQ6VXNlcjE5Mzc2ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1937689?v=4","gravatar_id":"","url":"https://api.github.com/users/yan12125","html_url":"https://github.com/yan12125","followers_url":"https://api.github.com/users/yan12125/followers","following_url":"https://api.github.com/users/yan12125/following{/other_user}","gists_url":"https://api.github.com/users/yan12125/gists{/gist_id}","starred_url":"https://api.github.com/users/yan12125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan12125/subscriptions","organizations_url":"https://api.github.com/users/yan12125/orgs","repos_url":"https://api.github.com/users/yan12125/repos","events_url":"https://api.github.com/users/yan12125/events{/privacy}","received_events_url":"https://api.github.com/users/yan12125/received_events","type":"User","site_admin":false},"repo":{"id":138179936,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxNzk5MzY=","name":"lilac","full_name":"yan12125/lilac","owner":{"login":"yan12125","id":1937689,"node_id":"MDQ6VXNlcjE5Mzc2ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/1937689?v=4","gravatar_id":"","url":"https://api.github.com/users/yan12125","html_url":"https://github.com/yan12125","followers_url":"https://api.github.com/users/yan12125/followers","following_url":"https://api.github.com/users/yan12125/following{/other_user}","gists_url":"https://api.github.com/users/yan12125/gists{/gist_id}","starred_url":"https://api.github.com/users/yan12125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan12125/subscriptions","organizations_url":"https://api.github.com/users/yan12125/orgs","repos_url":"https://api.github.com/users/yan12125/repos","events_url":"https://api.github.com/users/yan12125/events{/privacy}","received_events_url":"https://api.github.com/users/yan12125/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yan12125/lilac","description":"Lilac is the build bot for archlinuxcn","fork":true,"url":"https://api.github.com/repos/yan12125/lilac","forks_url":"https://api.github.com/repos/yan12125/lilac/forks","keys_url":"https://api.github.com/repos/yan12125/lilac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yan12125/lilac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yan12125/lilac/teams","hooks_url":"https://api.github.com/repos/yan12125/lilac/hooks","issue_events_url":"https://api.github.com/repos/yan12125/lilac/issues/events{/number}","events_url":"https://api.github.com/repos/yan12125/lilac/events","assignees_url":"https://api.github.com/repos/yan12125/lilac/assignees{/user}","branches_url":"https://api.github.com/repos/yan12125/lilac/branches{/branch}","tags_url":"https://api.github.com/repos/yan12125/lilac/tags","blobs_url":"https://api.github.com/repos/yan12125/lilac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yan12125/lilac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yan12125/lilac/git/refs{/sha}","trees_url":"https://api.github.com/repos/yan12125/lilac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yan12125/lilac/statuses/{sha}","languages_url":"https://api.github.com/repos/yan12125/lilac/languages","stargazers_url":"https://api.github.com/repos/yan12125/lilac/stargazers","contributors_url":"https://api.github.com/repos/yan12125/lilac/contributors","subscribers_url":"https://api.github.com/repos/yan12125/lilac/subscribers","subscription_url":"https://api.github.com/repos/yan12125/lilac/subscription","commits_url":"https://api.github.com/repos/yan12125/lilac/commits{/sha}","git_commits_url":"https://api.github.com/repos/yan12125/lilac/git/commits{/sha}","comments_url":"https://api.github.com/repos/yan12125/lilac/comments{/number}","issue_comment_url":"https://api.github.com/repos/yan12125/lilac/issues/comments{/number}","contents_url":"https://api.github.com/repos/yan12125/lilac/contents/{+path}","compare_url":"https://api.github.com/repos/yan12125/lilac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yan12125/lilac/merges","archive_url":"https://api.github.com/repos/yan12125/lilac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yan12125/lilac/downloads","issues_url":"https://api.github.com/repos/yan12125/lilac/issues{/number}","pulls_url":"https://api.github.com/repos/yan12125/lilac/pulls{/number}","milestones_url":"https://api.github.com/repos/yan12125/lilac/milestones{/number}","notifications_url":"https://api.github.com/repos/yan12125/lilac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yan12125/lilac/labels{/name}","releases_url":"https://api.github.com/repos/yan12125/lilac/releases{/id}","deployments_url":"https://api.github.com/repos/yan12125/lilac/deployments","created_at":"2018-06-21T14:18:44Z","updated_at":"2018-06-21T14:18:46Z","pushed_at":"2018-06-22T06:10:20Z","git_url":"git://github.com/yan12125/lilac.git","ssh_url":"git@github.com:yan12125/lilac.git","clone_url":"https://github.com/yan12125/lilac.git","svn_url":"https://github.com/yan12125/lilac","homepage":null,"size":352,"stargazers_count":0,"watchers_count":0,"language":"Python","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"archlinuxcn:master","ref":"master","sha":"3068c4785cb03994b226463e474c9c5acc38d67e","user":{"login":"archlinuxcn","id":3817598,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTc1OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3817598?v=4","gravatar_id":"","url":"https://api.github.com/users/archlinuxcn","html_url":"https://github.com/archlinuxcn","followers_url":"https://api.github.com/users/archlinuxcn/followers","following_url":"https://api.github.com/users/archlinuxcn/following{/other_user}","gists_url":"https://api.github.com/users/archlinuxcn/gists{/gist_id}","starred_url":"https://api.github.com/users/archlinuxcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archlinuxcn/subscriptions","organizations_url":"https://api.github.com/users/archlinuxcn/orgs","repos_url":"https://api.github.com/users/archlinuxcn/repos","events_url":"https://api.github.com/users/archlinuxcn/events{/privacy}","received_events_url":"https://api.github.com/users/archlinuxcn/received_events","type":"Organization","site_admin":false},"repo":{"id":23785082,"node_id":"MDEwOlJlcG9zaXRvcnkyMzc4NTA4Mg==","name":"lilac","full_name":"archlinuxcn/lilac","owner":{"login":"archlinuxcn","id":3817598,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTc1OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3817598?v=4","gravatar_id":"","url":"https://api.github.com/users/archlinuxcn","html_url":"https://github.com/archlinuxcn","followers_url":"https://api.github.com/users/archlinuxcn/followers","following_url":"https://api.github.com/users/archlinuxcn/following{/other_user}","gists_url":"https://api.github.com/users/archlinuxcn/gists{/gist_id}","starred_url":"https://api.github.com/users/archlinuxcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archlinuxcn/subscriptions","organizations_url":"https://api.github.com/users/archlinuxcn/orgs","repos_url":"https://api.github.com/users/archlinuxcn/repos","events_url":"https://api.github.com/users/archlinuxcn/events{/privacy}","received_events_url":"https://api.github.com/users/archlinuxcn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/archlinuxcn/lilac","description":"Lilac is the build bot for archlinuxcn","fork":false,"url":"https://api.github.com/repos/archlinuxcn/lilac","forks_url":"https://api.github.com/repos/archlinuxcn/lilac/forks","keys_url":"https://api.github.com/repos/archlinuxcn/lilac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/archlinuxcn/lilac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/archlinuxcn/lilac/teams","hooks_url":"https://api.github.com/repos/archlinuxcn/lilac/hooks","issue_events_url":"https://api.github.com/repos/archlinuxcn/lilac/issues/events{/number}","events_url":"https://api.github.com/repos/archlinuxcn/lilac/events","assignees_url":"https://api.github.com/repos/archlinuxcn/lilac/assignees{/user}","branches_url":"https://api.github.com/repos/archlinuxcn/lilac/branches{/branch}","tags_url":"https://api.github.com/repos/archlinuxcn/lilac/tags","blobs_url":"https://api.github.com/repos/archlinuxcn/lilac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/archlinuxcn/lilac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/archlinuxcn/lilac/git/refs{/sha}","trees_url":"https://api.github.com/repos/archlinuxcn/lilac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/archlinuxcn/lilac/statuses/{sha}","languages_url":"https://api.github.com/repos/archlinuxcn/lilac/languages","stargazers_url":"https://api.github.com/repos/archlinuxcn/lilac/stargazers","contributors_url":"https://api.github.com/repos/archlinuxcn/lilac/contributors","subscribers_url":"https://api.github.com/repos/archlinuxcn/lilac/subscribers","subscription_url":"https://api.github.com/repos/archlinuxcn/lilac/subscription","commits_url":"https://api.github.com/repos/archlinuxcn/lilac/commits{/sha}","git_commits_url":"https://api.github.com/repos/archlinuxcn/lilac/git/commits{/sha}","comments_url":"https://api.github.com/repos/archlinuxcn/lilac/comments{/number}","issue_comment_url":"https://api.github.com/repos/archlinuxcn/lilac/issues/comments{/number}","contents_url":"https://api.github.com/repos/archlinuxcn/lilac/contents/{+path}","compare_url":"https://api.github.com/repos/archlinuxcn/lilac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/archlinuxcn/lilac/merges","archive_url":"https://api.github.com/repos/archlinuxcn/lilac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/archlinuxcn/lilac/downloads","issues_url":"https://api.github.com/repos/archlinuxcn/lilac/issues{/number}","pulls_url":"https://api.github.com/repos/archlinuxcn/lilac/pulls{/number}","milestones_url":"https://api.github.com/repos/archlinuxcn/lilac/milestones{/number}","notifications_url":"https://api.github.com/repos/archlinuxcn/lilac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/archlinuxcn/lilac/labels{/name}","releases_url":"https://api.github.com/repos/archlinuxcn/lilac/releases{/id}","deployments_url":"https://api.github.com/repos/archlinuxcn/lilac/deployments","created_at":"2014-09-08T09:19:35Z","updated_at":"2018-06-17T14:08:30Z","pushed_at":"2018-06-22T06:10:21Z","git_url":"git://github.com/archlinuxcn/lilac.git","ssh_url":"git@github.com:archlinuxcn/lilac.git","clone_url":"https://github.com/archlinuxcn/lilac.git","svn_url":"https://github.com/archlinuxcn/lilac","homepage":null,"size":346,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":13,"open_issues":10,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64"},"html":{"href":"https://github.com/archlinuxcn/lilac/pull/64"},"issue":{"href":"https://api.github.com/repos/archlinuxcn/lilac/issues/64"},"comments":{"href":"https://api.github.com/repos/archlinuxcn/lilac/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/archlinuxcn/lilac/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/archlinuxcn/lilac/statuses/83584cea02eaa69934924808dbca5826428d3f5c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"yan12125"}}