{"action":"opened","number":520,"pull_request":{"url":"https://api.github.com/repos/YunoHost/yunohost/pulls/520","id":211211492,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMjExNDky","html_url":"https://github.com/YunoHost/yunohost/pull/520","diff_url":"https://github.com/YunoHost/yunohost/pull/520.diff","patch_url":"https://github.com/YunoHost/yunohost/pull/520.patch","issue_url":"https://api.github.com/repos/YunoHost/yunohost/issues/520","number":520,"state":"open","locked":false,"title":"Add the internal helper ynh_handle_getopts_args","user":{"login":"maniackcrudelis","id":8302225,"node_id":"MDQ6VXNlcjgzMDIyMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/8302225?v=4","gravatar_id":"","url":"https://api.github.com/users/maniackcrudelis","html_url":"https://github.com/maniackcrudelis","followers_url":"https://api.github.com/users/maniackcrudelis/followers","following_url":"https://api.github.com/users/maniackcrudelis/following{/other_user}","gists_url":"https://api.github.com/users/maniackcrudelis/gists{/gist_id}","starred_url":"https://api.github.com/users/maniackcrudelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniackcrudelis/subscriptions","organizations_url":"https://api.github.com/users/maniackcrudelis/orgs","repos_url":"https://api.github.com/users/maniackcrudelis/repos","events_url":"https://api.github.com/users/maniackcrudelis/events{/privacy}","received_events_url":"https://api.github.com/users/maniackcrudelis/received_events","type":"User","site_admin":false},"body":"## The problem\r\n\r\nAs said here, https://github.com/YunoHost/yunohost/pull/455, using positional arguments could be a problem when we're adding new options to a helper.\r\n\r\n## Solution\r\n\r\nUse a helper to allow to use easily getopts to manage arguments.\r\n\r\n## PR Status\r\n\r\nReady to be reviewed.\r\n\r\n## How to test\r\n\r\nHave a look to [experimental helpers](https://github.com/YunoHost-Apps/Experimental_helpers), which already use getopts.\r\n\r\n## Validation\r\n\r\n- [ ] Principle agreement 0/2 : \r\n- [ ] Quick review 0/1 : \r\n- [ ] Simple test 0/1 : \r\n- [ ] Deep review 0/1 : \r\n","created_at":"2018-08-27T19:48:33Z","updated_at":"2018-08-27T19:48:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":568553012,"node_id":"MDU6TGFiZWw1Njg1NTMwMTI=","url":"https://api.github.com/repos/YunoHost/yunohost/labels/helper","name":"helper","color":"e8a2d8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/YunoHost/yunohost/pulls/520/commits","review_comments_url":"https://api.github.com/repos/YunoHost/yunohost/pulls/520/comments","review_comment_url":"https://api.github.com/repos/YunoHost/yunohost/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YunoHost/yunohost/issues/520/comments","statuses_url":"https://api.github.com/repos/YunoHost/yunohost/statuses/45ad53eb431c4c73245deeb6dc21c3fa07b0f51f","head":{"label":"YunoHost:add_helper_ynh_handle_getopts_args","ref":"add_helper_ynh_handle_getopts_args","sha":"45ad53eb431c4c73245deeb6dc21c3fa07b0f51f","user":{"login":"YunoHost","id":1519495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTk0OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1519495?v=4","gravatar_id":"","url":"https://api.github.com/users/YunoHost","html_url":"https://github.com/YunoHost","followers_url":"https://api.github.com/users/YunoHost/followers","following_url":"https://api.github.com/users/YunoHost/following{/other_user}","gists_url":"https://api.github.com/users/YunoHost/gists{/gist_id}","starred_url":"https://api.github.com/users/YunoHost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunoHost/subscriptions","organizations_url":"https://api.github.com/users/YunoHost/orgs","repos_url":"https://api.github.com/users/YunoHost/repos","events_url":"https://api.github.com/users/YunoHost/events{/privacy}","received_events_url":"https://api.github.com/users/YunoHost/received_events","type":"Organization","site_admin":false},"repo":{"id":19854246,"node_id":"MDEwOlJlcG9zaXRvcnkxOTg1NDI0Ng==","name":"yunohost","full_name":"YunoHost/yunohost","owner":{"login":"YunoHost","id":1519495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTk0OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1519495?v=4","gravatar_id":"","url":"https://api.github.com/users/YunoHost","html_url":"https://github.com/YunoHost","followers_url":"https://api.github.com/users/YunoHost/followers","following_url":"https://api.github.com/users/YunoHost/following{/other_user}","gists_url":"https://api.github.com/users/YunoHost/gists{/gist_id}","starred_url":"https://api.github.com/users/YunoHost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunoHost/subscriptions","organizations_url":"https://api.github.com/users/YunoHost/orgs","repos_url":"https://api.github.com/users/YunoHost/repos","events_url":"https://api.github.com/users/YunoHost/events{/privacy}","received_events_url":"https://api.github.com/users/YunoHost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YunoHost/yunohost","description":"YunoHost Python scripts core","fork":false,"url":"https://api.github.com/repos/YunoHost/yunohost","forks_url":"https://api.github.com/repos/YunoHost/yunohost/forks","keys_url":"https://api.github.com/repos/YunoHost/yunohost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YunoHost/yunohost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YunoHost/yunohost/teams","hooks_url":"https://api.github.com/repos/YunoHost/yunohost/hooks","issue_events_url":"https://api.github.com/repos/YunoHost/yunohost/issues/events{/number}","events_url":"https://api.github.com/repos/YunoHost/yunohost/events","assignees_url":"https://api.github.com/repos/YunoHost/yunohost/assignees{/user}","branches_url":"https://api.github.com/repos/YunoHost/yunohost/branches{/branch}","tags_url":"https://api.github.com/repos/YunoHost/yunohost/tags","blobs_url":"https://api.github.com/repos/YunoHost/yunohost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YunoHost/yunohost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YunoHost/yunohost/git/refs{/sha}","trees_url":"https://api.github.com/repos/YunoHost/yunohost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YunoHost/yunohost/statuses/{sha}","languages_url":"https://api.github.com/repos/YunoHost/yunohost/languages","stargazers_url":"https://api.github.com/repos/YunoHost/yunohost/stargazers","contributors_url":"https://api.github.com/repos/YunoHost/yunohost/contributors","subscribers_url":"https://api.github.com/repos/YunoHost/yunohost/subscribers","subscription_url":"https://api.github.com/repos/YunoHost/yunohost/subscription","commits_url":"https://api.github.com/repos/YunoHost/yunohost/commits{/sha}","git_commits_url":"https://api.github.com/repos/YunoHost/yunohost/git/commits{/sha}","comments_url":"https://api.github.com/repos/YunoHost/yunohost/comments{/number}","issue_comment_url":"https://api.github.com/repos/YunoHost/yunohost/issues/comments{/number}","contents_url":"https://api.github.com/repos/YunoHost/yunohost/contents/{+path}","compare_url":"https://api.github.com/repos/YunoHost/yunohost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YunoHost/yunohost/merges","archive_url":"https://api.github.com/repos/YunoHost/yunohost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YunoHost/yunohost/downloads","issues_url":"https://api.github.com/repos/YunoHost/yunohost/issues{/number}","pulls_url":"https://api.github.com/repos/YunoHost/yunohost/pulls{/number}","milestones_url":"https://api.github.com/repos/YunoHost/yunohost/milestones{/number}","notifications_url":"https://api.github.com/repos/YunoHost/yunohost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YunoHost/yunohost/labels{/name}","releases_url":"https://api.github.com/repos/YunoHost/yunohost/releases{/id}","deployments_url":"https://api.github.com/repos/YunoHost/yunohost/deployments","created_at":"2014-05-16T11:29:11Z","updated_at":"2018-08-27T05:51:31Z","pushed_at":"2018-08-27T19:44:23Z","git_url":"git://github.com/YunoHost/yunohost.git","ssh_url":"git@github.com:YunoHost/yunohost.git","clone_url":"https://github.com/YunoHost/yunohost.git","svn_url":"https://github.com/YunoHost/yunohost","homepage":"https://yunohost.org","size":3378,"stargazers_count":285,"watchers_count":285,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":81,"open_issues":58,"watchers":285,"default_branch":"stretch-unstable"}},"base":{"label":"YunoHost:stretch-unstable","ref":"stretch-unstable","sha":"cdd510642f4268a630060afc083253cd86d2e8fb","user":{"login":"YunoHost","id":1519495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTk0OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1519495?v=4","gravatar_id":"","url":"https://api.github.com/users/YunoHost","html_url":"https://github.com/YunoHost","followers_url":"https://api.github.com/users/YunoHost/followers","following_url":"https://api.github.com/users/YunoHost/following{/other_user}","gists_url":"https://api.github.com/users/YunoHost/gists{/gist_id}","starred_url":"https://api.github.com/users/YunoHost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunoHost/subscriptions","organizations_url":"https://api.github.com/users/YunoHost/orgs","repos_url":"https://api.github.com/users/YunoHost/repos","events_url":"https://api.github.com/users/YunoHost/events{/privacy}","received_events_url":"https://api.github.com/users/YunoHost/received_events","type":"Organization","site_admin":false},"repo":{"id":19854246,"node_id":"MDEwOlJlcG9zaXRvcnkxOTg1NDI0Ng==","name":"yunohost","full_name":"YunoHost/yunohost","owner":{"login":"YunoHost","id":1519495,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTk0OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1519495?v=4","gravatar_id":"","url":"https://api.github.com/users/YunoHost","html_url":"https://github.com/YunoHost","followers_url":"https://api.github.com/users/YunoHost/followers","following_url":"https://api.github.com/users/YunoHost/following{/other_user}","gists_url":"https://api.github.com/users/YunoHost/gists{/gist_id}","starred_url":"https://api.github.com/users/YunoHost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunoHost/subscriptions","organizations_url":"https://api.github.com/users/YunoHost/orgs","repos_url":"https://api.github.com/users/YunoHost/repos","events_url":"https://api.github.com/users/YunoHost/events{/privacy}","received_events_url":"https://api.github.com/users/YunoHost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YunoHost/yunohost","description":"YunoHost Python scripts core","fork":false,"url":"https://api.github.com/repos/YunoHost/yunohost","forks_url":"https://api.github.com/repos/YunoHost/yunohost/forks","keys_url":"https://api.github.com/repos/YunoHost/yunohost/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YunoHost/yunohost/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YunoHost/yunohost/teams","hooks_url":"https://api.github.com/repos/YunoHost/yunohost/hooks","issue_events_url":"https://api.github.com/repos/YunoHost/yunohost/issues/events{/number}","events_url":"https://api.github.com/repos/YunoHost/yunohost/events","assignees_url":"https://api.github.com/repos/YunoHost/yunohost/assignees{/user}","branches_url":"https://api.github.com/repos/YunoHost/yunohost/branches{/branch}","tags_url":"https://api.github.com/repos/YunoHost/yunohost/tags","blobs_url":"https://api.github.com/repos/YunoHost/yunohost/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YunoHost/yunohost/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YunoHost/yunohost/git/refs{/sha}","trees_url":"https://api.github.com/repos/YunoHost/yunohost/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YunoHost/yunohost/statuses/{sha}","languages_url":"https://api.github.com/repos/YunoHost/yunohost/languages","stargazers_url":"https://api.github.com/repos/YunoHost/yunohost/stargazers","contributors_url":"https://api.github.com/repos/YunoHost/yunohost/contributors","subscribers_url":"https://api.github.com/repos/YunoHost/yunohost/subscribers","subscription_url":"https://api.github.com/repos/YunoHost/yunohost/subscription","commits_url":"https://api.github.com/repos/YunoHost/yunohost/commits{/sha}","git_commits_url":"https://api.github.com/repos/YunoHost/yunohost/git/commits{/sha}","comments_url":"https://api.github.com/repos/YunoHost/yunohost/comments{/number}","issue_comment_url":"https://api.github.com/repos/YunoHost/yunohost/issues/comments{/number}","contents_url":"https://api.github.com/repos/YunoHost/yunohost/contents/{+path}","compare_url":"https://api.github.com/repos/YunoHost/yunohost/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YunoHost/yunohost/merges","archive_url":"https://api.github.com/repos/YunoHost/yunohost/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YunoHost/yunohost/downloads","issues_url":"https://api.github.com/repos/YunoHost/yunohost/issues{/number}","pulls_url":"https://api.github.com/repos/YunoHost/yunohost/pulls{/number}","milestones_url":"https://api.github.com/repos/YunoHost/yunohost/milestones{/number}","notifications_url":"https://api.github.com/repos/YunoHost/yunohost/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YunoHost/yunohost/labels{/name}","releases_url":"https://api.github.com/repos/YunoHost/yunohost/releases{/id}","deployments_url":"https://api.github.com/repos/YunoHost/yunohost/deployments","created_at":"2014-05-16T11:29:11Z","updated_at":"2018-08-27T05:51:31Z","pushed_at":"2018-08-27T19:44:23Z","git_url":"git://github.com/YunoHost/yunohost.git","ssh_url":"git@github.com:YunoHost/yunohost.git","clone_url":"https://github.com/YunoHost/yunohost.git","svn_url":"https://github.com/YunoHost/yunohost","homepage":"https://yunohost.org","size":3378,"stargazers_count":285,"watchers_count":285,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":81,"open_issues":58,"watchers":285,"default_branch":"stretch-unstable"}},"_links":{"self":{"href":"https://api.github.com/repos/YunoHost/yunohost/pulls/520"},"html":{"href":"https://github.com/YunoHost/yunohost/pull/520"},"issue":{"href":"https://api.github.com/repos/YunoHost/yunohost/issues/520"},"comments":{"href":"https://api.github.com/repos/YunoHost/yunohost/issues/520/comments"},"review_comments":{"href":"https://api.github.com/repos/YunoHost/yunohost/pulls/520/comments"},"review_comment":{"href":"https://api.github.com/repos/YunoHost/yunohost/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YunoHost/yunohost/pulls/520/commits"},"statuses":{"href":"https://api.github.com/repos/YunoHost/yunohost/statuses/45ad53eb431c4c73245deeb6dc21c3fa07b0f51f"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":194,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"maniackcrudelis"}}