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": [ {