{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/badgeyay/issues/59","repository_url":"https://api.github.com/repos/fossasia/badgeyay","labels_url":"https://api.github.com/repos/fossasia/badgeyay/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/badgeyay/issues/59/comments","events_url":"https://api.github.com/repos/fossasia/badgeyay/issues/59/events","html_url":"https://github.com/fossasia/badgeyay/pull/59","id":257648256,"number":59,"title":"solves 500 error on missing folder","user":{"login":"gabru-md","id":25414121,"avatar_url":"https://avatars1.githubusercontent.com/u/25414121?v=4","gravatar_id":"","url":"https://api.github.com/users/gabru-md","html_url":"https://github.com/gabru-md","followers_url":"https://api.github.com/users/gabru-md/followers","following_url":"https://api.github.com/users/gabru-md/following{/other_user}","gists_url":"https://api.github.com/users/gabru-md/gists{/gist_id}","starred_url":"https://api.github.com/users/gabru-md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabru-md/subscriptions","organizations_url":"https://api.github.com/users/gabru-md/orgs","repos_url":"https://api.github.com/users/gabru-md/repos","events_url":"https://api.github.com/users/gabru-md/events{/privacy}","received_events_url":"https://api.github.com/users/gabru-md/received_events","type":"User","site_admin":false},"labels":[{"id":688183209,"url":"https://api.github.com/repos/fossasia/badgeyay/labels/needs-review","name":"needs-review","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"gabru-md","id":25414121,"avatar_url":"https://avatars1.githubusercontent.com/u/25414121?v=4","gravatar_id":"","url":"https://api.github.com/users/gabru-md","html_url":"https://github.com/gabru-md","followers_url":"https://api.github.com/users/gabru-md/followers","following_url":"https://api.github.com/users/gabru-md/following{/other_user}","gists_url":"https://api.github.com/users/gabru-md/gists{/gist_id}","starred_url":"https://api.github.com/users/gabru-md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabru-md/subscriptions","organizations_url":"https://api.github.com/users/gabru-md/orgs","repos_url":"https://api.github.com/users/gabru-md/repos","events_url":"https://api.github.com/users/gabru-md/events{/privacy}","received_events_url":"https://api.github.com/users/gabru-md/received_events","type":"User","site_admin":false},"assignees":[{"login":"gabru-md","id":25414121,"avatar_url":"https://avatars1.githubusercontent.com/u/25414121?v=4","gravatar_id":"","url":"https://api.github.com/users/gabru-md","html_url":"https://github.com/gabru-md","followers_url":"https://api.github.com/users/gabru-md/followers","following_url":"https://api.github.com/users/gabru-md/following{/other_user}","gists_url":"https://api.github.com/users/gabru-md/gists{/gist_id}","starred_url":"https://api.github.com/users/gabru-md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabru-md/subscriptions","organizations_url":"https://api.github.com/users/gabru-md/orgs","repos_url":"https://api.github.com/users/gabru-md/repos","events_url":"https://api.github.com/users/gabru-md/events{/privacy}","received_events_url":"https://api.github.com/users/gabru-md/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-14T09:12:10Z","updated_at":"2017-09-14T09:30:47Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/fossasia/badgeyay/pulls/59","html_url":"https://github.com/fossasia/badgeyay/pull/59","diff_url":"https://github.com/fossasia/badgeyay/pull/59.diff","patch_url":"https://github.com/fossasia/badgeyay/pull/59.patch"},"body":"added a snippet to check for the badges folder everytime. and make the folder if it does not exists.\r\n\r\nFixes https://github.com/fossasia/badgeyay/issues/58\r\n\r\n<!--\r\n(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)\r\n-->\r\n<!-- Add the issue number that is fixed by this PR (In the form Fixes #123) -->\r\n\r\n\r\n\r\n#### Checklist\r\n\r\n- [x] I have read the [Contribution & Best practices Guide](https://blog.fossasia.org/open-source-developer-guide-and-best-practices-at-fossasia) and my PR follows them.\r\n- [x] My branch is up-to-date with the Upstream `development` branch.\r\n- [x] I have added tests that prove my fix is effective or that my feature works\r\n- [x] I have added necessary documentation (if appropriate)\r\n<!-- If an existing function does not have a docstring, please add one -->\r\n- [x] All the functions created/modified in this PR contain relevant docstrings.\r\n\r\n#### Short description of what this resolves:\r\nIt resolves the 500-Internal server error on the application, caused by missing badges folder.\r\n\r\n#### Changes proposed in this pull request:\r\n\r\n- import-ed `os` module\r\n- check for missing folder\r\n- make the `badges` folder if it does not exists\r\n\r\nThanks ! :D\r\n"},"comment":{"url":"https://api.github.com/repos/fossasia/badgeyay/issues/comments/329427501","html_url":"https://github.com/fossasia/badgeyay/pull/59#issuecomment-329427501","issue_url":"https://api.github.com/repos/fossasia/badgeyay/issues/59","id":329427501,"user":{"login":"gabru-md","id":25414121,"avatar_url":"https://avatars1.githubusercontent.com/u/25414121?v=4","gravatar_id":"","url":"https://api.github.com/users/gabru-md","html_url":"https://github.com/gabru-md","followers_url":"https://api.github.com/users/gabru-md/followers","following_url":"https://api.github.com/users/gabru-md/following{/other_user}","gists_url":"https://api.github.com/users/gabru-md/gists{/gist_id}","starred_url":"https://api.github.com/users/gabru-md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabru-md/subscriptions","organizations_url":"https://api.github.com/users/gabru-md/orgs","repos_url":"https://api.github.com/users/gabru-md/repos","events_url":"https://api.github.com/users/gabru-md/events{/privacy}","received_events_url":"https://api.github.com/users/gabru-md/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T09:30:47Z","updated_at":"2017-09-14T09:30:47Z","author_association":"MEMBER","body":"I am happy to contribute as well. Looking for more :D"}}
{"actor":{"display_login":"gabru-md"}}