diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index 91a672e98..d90b5ad8a 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -1274,36 +1274,22 @@ exports.newHttpInterface = function newHttpInterface() { return } - case 'contributeUserProfile': { + case 'UserProfile': { try { - let commitMessage = params.message - const username = params.username - const token = params.token - const currentBranch = params.currentBranch - const contributionsBranch = params.contributionsBranch - - /* - let commitMessage = unescape(requestPath[3]) - const username = unescape(requestPath[4]) - const token = unescape(requestPath[5]) - const currentBranch = unescape(requestPath[6]) - const contributionsBranch = unescape(requestPath[7]) - */ + let mess = unescape(params.commitMessage) + const username = unescape(params.username) + const token = unescape(params.token) + const currentBranch = unescape(params.currentBranch) + const contributionsBranch = unescape(params.contributionsBranch) let error - /* Unsaving # */ - for (let i = 0; i < 10; i++) { - commitMessage = commitMessage.replace('_SLASH_', '/') - commitMessage = commitMessage.replace('_HASHTAG_', '#') - } - await updateUser() async function updateUser() { - await doGithub() + await doGithubUser() if (error !== undefined) { let docs = { @@ -1322,7 +1308,7 @@ exports.newHttpInterface = function newHttpInterface() { } - async function doGithub() { + async function doGithubUser() { const { Octokit } = SA.nodeModules.octokit @@ -1335,7 +1321,7 @@ exports.newHttpInterface = function newHttpInterface() { const owner = 'Superalgos' const head = username + ':' + contributionsBranch const base = currentBranch - const title = 'Contribution: ' + commitMessage + const title = 'Contribution: ' + mess const path = 'Projects/Governance/Plugins/User-Profiles/' + username + '.json' ; const sha = await getSHA(path, octokit); @@ -1362,14 +1348,14 @@ exports.newHttpInterface = function newHttpInterface() { if (err.stack.indexOf('Error User Commit') >= 0) { return } else { - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> Method call produced an error.') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> err.stack = ' + err.stack) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> commitMessage = ' + commitMessage) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> username = ' + username) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch) error = err } } @@ -1386,14 +1372,14 @@ exports.newHttpInterface = function newHttpInterface() { if (err.stack.indexOf('A pull request already exists') >= 0) { return } else { - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> Method call produced an error.') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> err.stack = ' + err.stack) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> commitMessage = ' + commitMessage) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> username = ' + username) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch) error = err } @@ -1417,28 +1403,28 @@ exports.newHttpInterface = function newHttpInterface() { console.log("[User Not Found] -> Creating new user") return sha } else { - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> Method call produced an error.') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> err.stack = ' + err.stack) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> commitMessage = ' + commitMessage) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> username = ' + username) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) - console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch) return sha } } } } catch (err) { - console.log('[ERROR] httpInterface -> App -> Contribute -> Method call produced an error.') - console.log('[ERROR] httpInterface -> App -> Contribute -> err.stack = ' + err.stack) - console.log('[ERROR] httpInterface -> App -> Contribute -> commitMessage = ' + commitMessage) - console.log('[ERROR] httpInterface -> App -> Contribute -> username = ' + username) - console.log('[ERROR] httpInterface -> App -> Contribute -> token starts with = ' + token.substring(0, 10) + '...') - console.log('[ERROR] httpInterface -> App -> Contribute -> token ends with = ' + '...' + token.substring(token.length - 10)) - console.log('[ERROR] httpInterface -> App -> Contribute -> currentBranch = ' + currentBranch) - console.log('[ERROR] httpInterface -> App -> Contribute -> contributionsBranch = ' + contributionsBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> Method call produced an error.') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> err.stack = ' + err.stack) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> commitMessage = ' + mess) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> username = ' + username) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> token starts with = ' + token.substring(0, 10) + '...') + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> token ends with = ' + '...' + token.substring(token.length - 10)) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> currentBranch = ' + currentBranch) + console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> contributionsBranch = ' + contributionsBranch) let error = { result: 'Fail Because', diff --git a/Projects/Governance/Plugins/User-Profiles/Tentacule23.json b/Projects/Governance/Plugins/User-Profiles/Tentacule23.json index 98289b473..c56c692ce 100644 --- a/Projects/Governance/Plugins/User-Profiles/Tentacule23.json +++ b/Projects/Governance/Plugins/User-Profiles/Tentacule23.json @@ -26,12 +26,12 @@ "id": "deaea400-fa7f-48fd-a3fe-653b1bd18650", "savedPayload": { "position": { - "x": 4448.90800640108, - "y": 32513.204681296134 + "x": 26903.112030456607, + "y": 23040.192378864667 }, "targetPosition": { - "x": 4671.8514540442975, - "y": 32713.943863203793 + "x": 27162.91965159194, + "y": 23190.192378864667 }, "floatingObject": { "isPinned": false, @@ -49,12 +49,12 @@ "id": "97ae26ad-542d-4373-806a-593e979e1a1b", "savedPayload": { "position": { - "x": 4671.8514540442975, - "y": 32713.943863203793 + "x": 27162.91965159194, + "y": 23190.192378864667 }, "targetPosition": { - "x": 4894.794901687515, - "y": 32914.68304511145 + "x": 27422.727272727272, + "y": 23340.192378864667 }, "floatingObject": { "isPinned": false, @@ -81,12 +81,12 @@ "id": "54a2fcd6-e80c-4a30-84c0-d80ae9d197e9", "savedPayload": { "position": { - "x": 5019.541916178172, - "y": 32327.79448467117 + "x": 27422.727272727272, + "y": 22740.192378864667 }, "targetPosition": { - "x": 4957.168408932844, - "y": 32621.23876489131 + "x": 27422.727272727272, + "y": 23040.192378864667 }, "floatingObject": { "isPinned": false, @@ -104,12 +104,12 @@ "id": "786e62d1-6b32-49d9-8046-9c8577dbcd87", "savedPayload": { "position": { - "x": 4957.168408932844, - "y": 32621.23876489131 + "x": 27422.727272727272, + "y": 23040.192378864667 }, "targetPosition": { - "x": 4894.794901687515, - "y": 32914.68304511145 + "x": 27422.727272727272, + "y": 23340.192378864667 }, "floatingObject": { "isPinned": false, @@ -127,12 +127,12 @@ "id": "7e7f3e6e-30f4-400d-a1f6-b3611498b7bf", "savedPayload": { "position": { - "x": 4894.794901687515, - "y": 32914.68304511145 + "x": 27422.727272727272, + "y": 23340.192378864667 }, "targetPosition": { - "x": 4987.5, - "y": 33200 + "x": 27572.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -160,7 +160,7 @@ "userReferrers": [ { "type": "User Referrer", - "name": "PLuv", + "name": "", "config": "{}", "project": "Governance", "id": "bdf5f1d1-8441-4171-859f-d6e13f56ebd5", @@ -201,7 +201,7 @@ }, { "type": "User Referrer", - "name": "harrellbm", + "name": "", "config": "{}", "project": "Governance", "id": "67c981c9-f18b-4476-911e-9761b375386a", @@ -283,7 +283,7 @@ }, { "type": "User Referrer", - "name": "Julian-Molina", + "name": "", "config": "{}", "project": "Governance", "id": "b53f989c-8771-4000-81f3-aef821170101", @@ -408,7 +408,7 @@ "userMentors": [ { "type": "User Mentor", - "name": "harrellbm", + "name": "", "config": "{}", "project": "Governance", "id": "41d5d8d6-8562-4fb6-a56d-4953ec7ba2db", @@ -528,12 +528,12 @@ "id": "db99bd94-cded-4ef0-bfb2-979cac295f7f", "savedPayload": { "position": { - "x": 5558.133909777092, - "y": 33014.589803375035 + "x": 28092.342514997934, + "y": 23300 }, "targetPosition": { - "x": 4987.5, - "y": 33200 + "x": 27572.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -578,12 +578,12 @@ "id": "008b3b69-cc01-4e09-9122-ec885a882d76", "savedPayload": { "position": { - "x": 6524.472195592687, - "y": 32643.27984087776 + "x": 28862.43870443027, + "y": 22595.577136594 }, "targetPosition": { - "x": 6190.057024127859, - "y": 32944.38861373925 + "x": 28637.43870443027, + "y": 22985.288568297 }, "floatingObject": { "isPinned": false, @@ -604,12 +604,12 @@ "id": "fb7f7b7e-a2fb-421f-8158-faa5006f4636", "savedPayload": { "position": { - "x": 6190.057024127859, - "y": 32944.38861373925 + "x": 28637.43870443027, + "y": 22985.288568297 }, "targetPosition": { - "x": 5855.641852663031, - "y": 33245.497386600735 + "x": 28412.43870443027, + "y": 23375 }, "floatingObject": { "isPinned": false, @@ -632,12 +632,12 @@ "id": "2bc7d2be-bd4a-47b8-966f-349202f799bf", "savedPayload": { "position": { - "x": 6283.61728499585, - "y": 33384.55503406946 + "x": 28862.43870443027, + "y": 23375 }, "targetPosition": { - "x": 5855.641852663031, - "y": 33245.497386600735 + "x": 28412.43870443027, + "y": 23375 }, "floatingObject": { "isPinned": false, @@ -655,12 +655,12 @@ "id": "f16e524c-4e32-4a6e-840b-bfdd6080f20c", "savedPayload": { "position": { - "x": 5855.641852663031, - "y": 33245.497386600735 + "x": 28412.43870443027, + "y": 23375 }, "targetPosition": { - "x": 5415.475432332819, - "y": 33339.057647468726 + "x": 28022.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -697,12 +697,12 @@ "id": "d7c5da08-3757-46b4-8175-bc9a7b02359f", "savedPayload": { "position": { - "x": 6892.281898350884, - "y": 33257.13643010531 + "x": 29401.938637175394, + "y": 23065.729997001305 }, "targetPosition": { - "x": 6390.659141153643, - "y": 33708.79958939754 + "x": 29064.438637175394, + "y": 23650.2971445558 }, "floatingObject": { "isPinned": false, @@ -756,12 +756,12 @@ "id": "5d6b30bc-4f05-4001-87ba-45cba35fe1ce", "savedPayload": { "position": { - "x": 7064.73407711298, - "y": 33744.126359861526 + "x": 29716.438569920516, + "y": 23475.5942891116 }, "targetPosition": { - "x": 6390.659141153643, - "y": 33708.79958939754 + "x": 29064.438637175394, + "y": 23650.2971445558 }, "floatingObject": { "isPinned": false, @@ -815,12 +815,12 @@ "id": "faa99198-6c04-4722-bbc2-f4dd4f9d297f", "savedPayload": { "position": { - "x": 6842.322300445872, - "y": 34210.42234659478 + "x": 29649.00578472989, + "y": 23987.7971445558 }, "targetPosition": { - "x": 6390.659141153643, - "y": 33708.79958939754 + "x": 29064.438637175394, + "y": 23650.2971445558 }, "floatingObject": { "isPinned": false, @@ -870,12 +870,12 @@ "id": "eb425c2c-6b7c-460d-a74e-650691f52fc7", "savedPayload": { "position": { - "x": 6390.659141153643, - "y": 33708.79958939754 + "x": 29064.438637175394, + "y": 23650.2971445558 }, "targetPosition": { - "x": 5716.5842051943055, - "y": 33673.47281893355 + "x": 28412.43870443027, + "y": 23825 }, "floatingObject": { "isPinned": false, @@ -907,12 +907,12 @@ "id": "9c74a2a8-4bcf-42b7-b53d-7ba68f3acfc2", "savedPayload": { "position": { - "x": 6318.801750917279, - "y": 34342.3031618632 + "x": 29191.86156783627, + "y": 24275 }, "targetPosition": { - "x": 6017.692978055792, - "y": 34007.887990398376 + "x": 28802.15013613327, + "y": 24050 }, "floatingObject": { "isPinned": false, @@ -962,12 +962,12 @@ "id": "be3ab259-2505-4200-a8cc-a373874aedb0", "savedPayload": { "position": { - "x": 6017.692978055792, - "y": 34007.887990398376 + "x": 28802.15013613327, + "y": 24050 }, "targetPosition": { - "x": 5716.5842051943055, - "y": 33673.47281893355 + "x": 28412.43870443027, + "y": 23825 }, "floatingObject": { "isPinned": false, @@ -990,12 +990,12 @@ "id": "9673136d-ac9a-40b7-bd6f-6c8c3fbbb384", "savedPayload": { "position": { - "x": 5693.0330248849805, - "y": 34122.856109573106 + "x": 28528.907274726407, + "y": 24259.66662183008 }, "targetPosition": { - "x": 5716.5842051943055, - "y": 33673.47281893355 + "x": 28412.43870443027, + "y": 23825 }, "floatingObject": { "isPinned": false, @@ -1013,12 +1013,12 @@ "id": "cce1f59a-bb5d-4700-abf8-ab8d2932ff6a", "savedPayload": { "position": { - "x": 5716.5842051943055, - "y": 33673.47281893355 + "x": 28412.43870443027, + "y": 23825 }, "targetPosition": { - "x": 5415.475432332819, - "y": 33339.057647468726 + "x": 28022.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -1036,12 +1036,12 @@ "id": "705bfab3-e851-4469-ab70-ac972950de6c", "savedPayload": { "position": { - "x": 5415.475432332819, - "y": 33339.057647468726 + "x": 28022.727272727272, + "y": 23600 }, "targetPosition": { - "x": 4987.5, - "y": 33200 + "x": 27572.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -1068,8 +1068,8 @@ "y": 33536.70509831249 }, "targetPosition": { - "x": 4987.5, - "y": 33200 + "x": 27572.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": true, @@ -1084,15 +1084,100 @@ } } }, + "liquidityPrograms": { + "type": "Liquidity Programs", + "name": "New Liquidity Programs", + "config": "{}", + "project": "Governance", + "liquidityProgram": [ + { + "type": "Liquidity Program", + "name": "New Liquidity Program", + "config": "{\n\"asset\": \"BTCB\"\n}", + "project": "Governance", + "tokensAwarded": { + "type": "Tokens Awarded", + "name": "New Tokens Awarded", + "project": "Governance", + "id": "9d22ff3c-eff9-42de-8824-81fee7a51a9d", + "savedPayload": { + "position": { + "x": 28641.477272727272, + "y": 25451.129300589237 + }, + "targetPosition": { + "x": 28135.227272727272, + "y": 24574.278579257494 + }, + "floatingObject": { + "isPinned": false, + "isFrozen": false, + "isCollapsed": false, + "angleToParent": 2, + "distanceToParent": 4, + "arrangementStyle": 0 + }, + "uiObject": { + "isRunning": false + } + } + }, + "id": "b8658ca8-482a-4dda-9101-43c22a45caad", + "savedPayload": { + "position": { + "x": 28135.227272727272, + "y": 24574.278579257494 + }, + "targetPosition": { + "x": 27797.727272727272, + "y": 23989.711431703 + }, + "floatingObject": { + "isPinned": false, + "isFrozen": false, + "isCollapsed": false, + "angleToParent": 2, + "distanceToParent": 4, + "arrangementStyle": 0 + }, + "uiObject": { + "isRunning": false + } + } + } + ], + "id": "a46bb98a-4ee4-4801-a0ff-60bc1c7eb1cd", + "savedPayload": { + "position": { + "x": 27797.727272727272, + "y": 23989.711431703 + }, + "targetPosition": { + "x": 27572.727272727272, + "y": 23600 + }, + "floatingObject": { + "isPinned": false, + "isFrozen": false, + "isCollapsed": false, + "angleToParent": 2, + "distanceToParent": 4, + "arrangementStyle": 0 + }, + "uiObject": { + "isRunning": false + } + } + }, "id": "5683e2bf-45ca-4dd6-9ade-53b4cad76ed0", "savedPayload": { "position": { - "x": 4987.5, - "y": 33200 + "x": 27572.727272727272, + "y": 23600 }, "targetPosition": { - "x": 4687.5, - "y": 33200 + "x": 27272.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -1114,12 +1199,12 @@ "id": "96f1c595-f94e-4207-9828-4199c74c4bfd", "savedPayload": { "position": { - "x": 4387.5, - "y": 33200 + "x": 26972.727272727272, + "y": 23600 }, "targetPosition": { - "x": 4687.5, - "y": 33200 + "x": 27272.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, @@ -1137,17 +1222,17 @@ "id": "7af21baa-ebc0-436f-94a7-a1746209418e", "savedPayload": { "position": { - "x": 9230.76923076923, - "y": 28400 + "x": 27272.727272727272, + "y": 23600 }, "targetPosition": { - "x": 9230.76923076923, - "y": 28400 + "x": 27272.727272727272, + "y": 23600 }, "floatingObject": { "isPinned": false, "isFrozen": false, - "isCollapsed": true, + "isCollapsed": false, "angleToParent": 1, "distanceToParent": 3, "arrangementStyle": 0 diff --git a/Projects/Governance/UI/Spaces/Reports-Space/CommandInterface.js b/Projects/Governance/UI/Spaces/Reports-Space/CommandInterface.js index 4fb090822..c38ba481d 100644 --- a/Projects/Governance/UI/Spaces/Reports-Space/CommandInterface.js +++ b/Projects/Governance/UI/Spaces/Reports-Space/CommandInterface.js @@ -120,16 +120,19 @@ function newGovernanceReportsCommmandInterface() { } function checkUserUpdateCommand() { - if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'gov.help gov.contributeUserProfile') { + + let command = UI.projects.governance.spaces.reportsSpace.commandInterface.command.toLowerCase() + + if (command === 'gov.help gov.userprofile') { UI.projects.education.spaces.docsSpace.navigateTo('Governance', 'Topic', 'Gov Contribute User Profile Command') return } - if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('gov.contributeUserProfile') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('gov.contributeuserprofile') !== 0) { return 'Not Contribute Commands' } + if (command.indexOf('gov.userprofile') !== 0 ) { return 'Not User Contribute Commands' } /* Set up the commit message */ - let message = UI.projects.education.spaces.docsSpace.commandInterface.command.trim().substring(UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf(' ') + 1, UI.projects.education.spaces.docsSpace.commandInterface.command.length) - if (message.toLowerCase() === 'gov.contributeuserprofile') { - message = 'This is my Contribute User Profile to Superalgos' + let message = command.trim().substring(command.indexOf(' ') + 1, command.length) + if (message.toLowerCase() === 'gov.userprofile') { + message = 'Automated Userprofile contribute process.' } UI.projects.governance.spaces.reportsSpace.sidePanelTab.close() @@ -160,7 +163,7 @@ function newGovernanceReportsCommmandInterface() { message = message.replaceAll('/', '_SLASH_') let params = { - method: 'contributeUserProfile', + method: 'UserProfile', commitMessage: message, username: config.username, token: config.token,