{"action":"created","issue":{"url":"https://api.github.com/repos/opsdroid/opsdroid/issues/495","repository_url":"https://api.github.com/repos/opsdroid/opsdroid","labels_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/495/comments","events_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/495/events","html_url":"https://github.com/opsdroid/opsdroid/pull/495","id":306961291,"number":495,"title":"Maintainer scripts","user":{"login":"FabioRosado","id":3131401,"avatar_url":"https://avatars0.githubusercontent.com/u/3131401?v=4","gravatar_id":"","url":"https://api.github.com/users/FabioRosado","html_url":"https://github.com/FabioRosado","followers_url":"https://api.github.com/users/FabioRosado/followers","following_url":"https://api.github.com/users/FabioRosado/following{/other_user}","gists_url":"https://api.github.com/users/FabioRosado/gists{/gist_id}","starred_url":"https://api.github.com/users/FabioRosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabioRosado/subscriptions","organizations_url":"https://api.github.com/users/FabioRosado/orgs","repos_url":"https://api.github.com/users/FabioRosado/repos","events_url":"https://api.github.com/users/FabioRosado/events{/privacy}","received_events_url":"https://api.github.com/users/FabioRosado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T17:18:24Z","updated_at":"2018-03-20T19:48:01Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/opsdroid/opsdroid/pulls/495","html_url":"https://github.com/opsdroid/opsdroid/pull/495","diff_url":"https://github.com/opsdroid/opsdroid/pull/495.diff","patch_url":"https://github.com/opsdroid/opsdroid/pull/495.patch"},"body":"# Description\r\n\r\nI've noticed that the `example_configuration.yaml` as been outdated for a while so I tried to run the maintainer script, it was breaking in a lot of places so I've been fixing bit by bit and finally I was able to make it update the file.\r\n\r\nThings that got changed:\r\n- Had to update the path to  `configuration.j2` file - before I kept getting a templateNotFound exception when running the script from the command line and in the root directory of opsdroid.\r\n- Added a print statement just to let the maintainer know that the script is running and not just hanging.\r\n- Had to update the default path of  `example_configuration.yaml`, since the script was being run from the script folder the path was looking in this folder for the file `opsdroid/configuration/example_configuration.yaml`\r\n- Changed the open mode in the function `update_config` so a maintainer could create a file elsewhere if the path was provided when running the script command.\r\n- Updated the Readme to provide a bit more information on how to use this script - might be useful in the future for other maintainers (more documentation is good right? 😄 )\r\n\r\nThis is a short fix to the issues with the script. It probably took me way longer to fix due to running the command in pycharm and then being broken in the command line (file paths are funny).\r\n\r\nI'm also thinking to update this script in the future to add all the new parsers to the new updated file since the script only updates skills atm. Let me know what do you think and if I should have done things different with the file paths (i'm sure there is a better way of doing with the os module).\r\n\r\n\r\nFixes # n/a\r\n\r\n\r\n## Status\r\n**READY** | **UNDER DEVELOPMENT** | **ON HOLD**\r\n\r\n\r\n## Type of change\r\n\r\n_Please delete options that are not relevant._\r\n\r\n- Bug fix (non-breaking change which fixes an issue)\r\n- Documentation (fix or adds documentation)\r\n\r\n\r\n# How Has This Been Tested?\r\n\r\n_Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration._\r\n\r\n-  Successfully updated the file `example_configuration.yaml` \r\n\r\n\r\n# Checklist:\r\n\r\n- [ ] I have performed a self-review of my own code\r\n- [x] I have made corresponding changes to the documentation (if applicable)\r\n- [ ] I have added tests that prove my fix is effective or that my feature works\r\n- [x] New and existing unit tests pass locally with my changes"},"comment":{"url":"https://api.github.com/repos/opsdroid/opsdroid/issues/comments/374732828","html_url":"https://github.com/opsdroid/opsdroid/pull/495#issuecomment-374732828","issue_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/495","id":374732828,"user":{"login":"jacobtomlinson","id":1610850,"avatar_url":"https://avatars3.githubusercontent.com/u/1610850?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobtomlinson","html_url":"https://github.com/jacobtomlinson","followers_url":"https://api.github.com/users/jacobtomlinson/followers","following_url":"https://api.github.com/users/jacobtomlinson/following{/other_user}","gists_url":"https://api.github.com/users/jacobtomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobtomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobtomlinson/subscriptions","organizations_url":"https://api.github.com/users/jacobtomlinson/orgs","repos_url":"https://api.github.com/users/jacobtomlinson/repos","events_url":"https://api.github.com/users/jacobtomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/jacobtomlinson/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T19:48:01Z","updated_at":"2018-03-20T19:48:01Z","author_association":"OWNER","body":"Good stuff!"}}
{"actor":{"display_login":"jacobtomlinson"}}