sympy-bot
sympy-bot copied to clipboard
Create the wiki page if it doesn't exist
Currently if the wiki page doesn't exist it will fail. It should create it automatically if it doesn't exist yet.
I want to claim this issue
Go for it. I'm not presently working on any bot stuff.
I actually new to it. Thats' why I need bit help. I am having few doubts.
On Thu, Nov 22, 2018 at 11:21 PM Aaron Meurer [email protected] wrote:
Go for it. I'm not presently working on any bot stuff.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sympy/sympy-bot/issues/26#issuecomment-441094601, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae4_jmoWG2jRd5YXswWK9KEbdKlALvCwks5uxuQEgaJpZM4V03Vv .
The code to write to the wiki is already there. It should be modified to check if the file exists, and if it doesn't, write out a template, which would be the like the current release notes file minus the changes.
Specifically, currently if the page doesn't exist this line will result in an error https://github.com/sympy/sympy-bot/blob/770679d1ece3572b8a18f4278f1c10024df03884/sympy_bot/update_wiki.py#L65