From b60ba803d7ca01ca8414be93604c27bcae707333 Mon Sep 17 00:00:00 2001 From: Joey Guerra Date: Sat, 29 Jul 2023 18:51:30 -0500 Subject: [PATCH] fix: set hubot peer depdency to the one that works (#17) * fix: set hubot peer depdency to the one that works * fix: align hubot version * fix: install latest hubot for test * Missed one. --- .github/workflows/ci-build.yml | 4 ++-- package-lock.json | 8 ++++---- package.json | 2 +- test/bot.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index dfba03fc..2f2aa48d 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: npm ci - name: Install hubot - run: npm i hubot@5.x + run: npm i hubot - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures test: @@ -50,7 +50,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: npm i hubot@5.x + - run: npm i hubot - run: npm test release: needs: [build, test] diff --git a/package-lock.json b/package-lock.json index 78ae9623..bf44fd20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "npm": ">= 9.5.1" }, "peerDependencies": { - "hubot": "^6.x.x" + "hubot": "^7.x.x" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -2456,9 +2456,9 @@ } }, "node_modules/hubot": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/hubot/-/hubot-6.0.0.tgz", - "integrity": "sha512-Tk7/AoLEmtDU/zyGNpEH5oCrkJDZSpEDQ6AByPS974aLkufyGTjtrrBOhoavQgJZm7s43Z9Rh0Nbkof2M+FETQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/hubot/-/hubot-7.0.0.tgz", + "integrity": "sha512-zwBCeibIJdESYUy64wz2adN4rxdAaayIUV3lc9Ut1W9N5X1nj+yYbuOV0bJSStQazGfACUXdCeirKJ7orxL/ow==", "peer": true, "dependencies": { "async": "^3.2.4", diff --git a/package.json b/package.json index 81efd604..9ffd295b 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@slack/web-api": "^6.8.1" }, "peerDependencies": { - "hubot": "^6.x.x" + "hubot": "^7.x.x" }, "engines": { "node": ">= 18.16.0", diff --git a/test/bot.js b/test/bot.js index b795ddf4..b784df47 100644 --- a/test/bot.js +++ b/test/bot.js @@ -33,7 +33,7 @@ describe('Adapter', function() { process.env.HUBOT_SLACK_APP_TOKEN = 'xapp-faketoken'; process.env.HUBOT_SLACK_BOT_TOKEN = 'xoxb-faketoken'; - const loadedRobot = loadBot('slack', false, 'Hubot'); + const loadedRobot = loadBot('hubot-slack', false, 'Hubot'); await loadedRobot.loadAdapter(); assert.ok(loadedRobot.hearReaction instanceof Function);