diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72524255..4d638d81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,10 +50,10 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - run: | - docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/cot/slack-help-bot:pr-${{github.event.number}}-${{ steps.get-short-sha.outputs.shortSha }} - docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/cot/slack-help-bot:pr-${{github.event.number}}-${{ steps.get-short-sha.outputs.shortSha }} + docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/possessions/slack-help-bot:pr-${{github.event.number}}-${{ steps.get-short-sha.outputs.shortSha }} + docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/possessions/slack-help-bot:pr-${{github.event.number}}-${{ steps.get-short-sha.outputs.shortSha }} if: startsWith(github.ref, 'refs/pull') - run: | - docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/cot/slack-help-bot:prod-${{ steps.get-short-sha.outputs.shortSha }}-${{ steps.get-timestamp.outputs.timestamp }} - docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/cot/slack-help-bot:prod-${{ steps.get-short-sha.outputs.shortSha }}-${{ steps.get-timestamp.outputs.timestamp }} + docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/possessions/slack-help-bot:prod-${{ steps.get-short-sha.outputs.shortSha }}-${{ steps.get-timestamp.outputs.timestamp }} + docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/possessions/slack-help-bot:prod-${{ steps.get-short-sha.outputs.shortSha }}-${{ steps.get-timestamp.outputs.timestamp }} if: github.ref == 'refs/heads/main' diff --git a/app.js b/app.js index ef040807..98af0203 100755 --- a/app.js +++ b/app.js @@ -81,7 +81,7 @@ const server = http.createServer((req, res) => { } res.end('OK'); } else if (req.url === '/health/readiness') { - res.end(`

cot-slack-help-bot

`) + res.end(`

possessions-slack-help-bot

`) } else if (req.url === '/health/error') { // Dummy error page res.statusCode = 500; @@ -481,7 +481,7 @@ app.event('app_mention', async ({ event, context, client, say }) => { } else { await say({ - text: `Hi <@${event.user}>, if you want to escalate a request please tag \`cot-support\`, to see what else I can do reply back with \`help\``, + text: `Hi <@${event.user}>, if you want to escalate a request please tag \`possessions-support\`, to see what else I can do reply back with \`help\``, thread_ts: event.thread_ts }); } diff --git a/package-lock.json b/package-lock.json index 0387ae63..687ee779 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "cot-slack-help-bot", + "name": "possessions-slack-help-bot", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "cot-slack-help-bot", + "name": "possessions-slack-help-bot", "version": "1.0.0", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 2fb1313b..987adc8a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "cot-slack-help-bot", + "name": "possessions-slack-help-bot", "version": "1.0.0", "description": "", "main": "app.js", diff --git a/src/messages.js b/src/messages.js index 78609fb0..cc44d4a3 100644 --- a/src/messages.js +++ b/src/messages.js @@ -291,7 +291,7 @@ function openHelpRequestBlocks() { return { "title": { "type": "plain_text", - "text": "COT Support Request" + "text": "Possessions Support Request" }, "submit": { "type": "plain_text", diff --git a/src/setupSecrets.js b/src/setupSecrets.js index a9c9d91a..b840d95f 100644 --- a/src/setupSecrets.js +++ b/src/setupSecrets.js @@ -13,8 +13,8 @@ const setup = () => { if (config.has('secrets.cftptl-intsvc')) { setSecret('secrets.cftptl-intsvc.jira-username', 'jira.username'); setSecret('secrets.cftptl-intsvc.jira-api-token', 'jira.api_token'); - setSecret('secrets.cftptl-intsvc.cot-slack-bot-token', 'slack.bot_token'); - setSecret('secrets.cftptl-intsvc.cot-slack-app-token', 'slack.app_token'); + setSecret('secrets.cftptl-intsvc.possessions-slack-bot-token', 'slack.bot_token'); + setSecret('secrets.cftptl-intsvc.possessions-slack-app-token', 'slack.app_token'); } };