From 7e62df8f17f3a8fe82c08abc34694c45cf2bcd22 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 6 Jan 2021 14:12:19 +0100 Subject: [PATCH] Test3 --- Client/httpInterface.js | 20 ++++++++++++------- ...-app-error-github-credentials-missing.json | 4 ++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 54c875dbf..f89deb570 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -567,13 +567,19 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE const base = 'in-app-documentation' const title = 'Contribution to Superalgos' - await octokit.pulls.create({ - owner, - repo, - title, - head, - base, - }); + try { + await octokit.pulls.create({ + owner, + repo, + title, + head, + base, + }); + } catch (err) { + if (err.stack.indexOf('A pull request already exists') <0) { + throw(err) + } + } } } catch (err) { diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-002-app-error-github-credentials-missing.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-002-app-error-github-credentials-missing.json index 680bc524a..30b8cfff5 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-002-app-error-github-credentials-missing.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-002-app-error-github-credentials-missing.json @@ -3,8 +3,8 @@ "pageNumber": "2", "type": "App Error Github Credentials Missing", "definition": { - "text": "In order to manage contributions from within the app, you first need to provide your Github.com credentials so that we can get authenticated when pushing your changes to the remote repository. 2", - "updated": 1609938311079 + "text": "In order to manage contributions from within the app, you first need to provide your Github.com credentials so that we can get authenticated when pushing your changes to the remote repository. 3", + "updated": 1609938644926 }, "paragraphs": [ {