sympy-bot icon indicating copy to clipboard operation
sympy-bot copied to clipboard

Create the wiki page if it doesn't exist

Open asmeurer opened this issue 6 years ago • 5 comments

Currently if the wiki page doesn't exist it will fail. It should create it automatically if it doesn't exist yet.

asmeurer avatar Aug 09 '18 00:08 asmeurer

I want to claim this issue

NupurMunda avatar Nov 22 '18 16:11 NupurMunda

Go for it. I'm not presently working on any bot stuff.

asmeurer avatar Nov 22 '18 17:11 asmeurer

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 .

NupurMunda avatar Nov 22 '18 18:11 NupurMunda

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.

asmeurer avatar Nov 27 '18 18:11 asmeurer

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

asmeurer avatar Nov 27 '18 18:11 asmeurer