{"action":"created","issue":{"url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/112","repository_url":"https://api.github.com/repos/semantic-rs/semantic-rs","labels_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/112/comments","events_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/112/events","html_url":"https://github.com/semantic-rs/semantic-rs/issues/112","id":177651647,"number":112,"title":"refactor main function","user":{"login":"schultyy","id":235808,"avatar_url":"https://avatars.githubusercontent.com/u/235808?v=3","gravatar_id":"","url":"https://api.github.com/users/schultyy","html_url":"https://github.com/schultyy","followers_url":"https://api.github.com/users/schultyy/followers","following_url":"https://api.github.com/users/schultyy/following{/other_user}","gists_url":"https://api.github.com/users/schultyy/gists{/gist_id}","starred_url":"https://api.github.com/users/schultyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schultyy/subscriptions","organizations_url":"https://api.github.com/users/schultyy/orgs","repos_url":"https://api.github.com/users/schultyy/repos","events_url":"https://api.github.com/users/schultyy/events{/privacy}","received_events_url":"https://api.github.com/users/schultyy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-18T13:24:16Z","updated_at":"2016-09-18T13:48:12Z","closed_at":null,"body":"Right now the main function is over 150 lines long. Adding new features gets more and more tedious so this needs to be refactored.\r\n\r\nA first step could be to move all big blocks of functionality into their own function. The problem here though is that right now we do have some sort of global state. This circumstance prevents us from moving stuff into functions easily. For example the `config` object gets assembled over at least 50 LoC before it actually can be used."},"comment":{"url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/comments/247848710","html_url":"https://github.com/semantic-rs/semantic-rs/issues/112#issuecomment-247848710","issue_url":"https://api.github.com/repos/semantic-rs/semantic-rs/issues/112","id":247848710,"user":{"login":"schultyy","id":235808,"avatar_url":"https://avatars.githubusercontent.com/u/235808?v=3","gravatar_id":"","url":"https://api.github.com/users/schultyy","html_url":"https://github.com/schultyy","followers_url":"https://api.github.com/users/schultyy/followers","following_url":"https://api.github.com/users/schultyy/following{/other_user}","gists_url":"https://api.github.com/users/schultyy/gists{/gist_id}","starred_url":"https://api.github.com/users/schultyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schultyy/subscriptions","organizations_url":"https://api.github.com/users/schultyy/orgs","repos_url":"https://api.github.com/users/schultyy/repos","events_url":"https://api.github.com/users/schultyy/events{/privacy}","received_events_url":"https://api.github.com/users/schultyy/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T13:48:11Z","updated_at":"2016-09-18T13:48:11Z","body":"The `ConfigBuilder` needs the following:\r\n- user\r\n- repository name\r\n- branch\r\n- repository path\r\n- Git Repository Handle\r\n- write mode\r\n- release mode\r\n- GitHub Token\r\n- User git signature\r\n- Cargo Token"}}
{"actor":{"display_login":"schultyy"}}