From 2bc0a05c9b26ff800792b891c47af466bde28fec Mon Sep 17 00:00:00 2001 From: John Losito Date: Fri, 12 Apr 2024 14:16:11 -0400 Subject: [PATCH 1/2] chore: fix linting error --- src/functions/slack-command-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/slack-command-handler.ts b/src/functions/slack-command-handler.ts index 0be812b..10c6e12 100644 --- a/src/functions/slack-command-handler.ts +++ b/src/functions/slack-command-handler.ts @@ -79,7 +79,7 @@ export const handler = async ( } let commandStatus; - if (body.command.startsWith('/new_conv')) { + if (body.command.startsWith('/new_conv')) { const channelKey = getChannelKey('message', body.team_id, body.channel_id, 'n/a'); logger.debug(`Slash command: ${body.command} - deleting channel metadata for '${channelKey}'`); await deleteChannelMetadata(channelKey, dependencies, slackEventsEnv); From 6527735f6cdefcdda053cc4c77f54af2d078bc04 Mon Sep 17 00:00:00 2001 From: John Losito Date: Fri, 12 Apr 2024 14:21:20 -0400 Subject: [PATCH 2/2] chore: add github workflow for pull request validation checks --- .github/workflows/validate.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..d6b6d88 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,14 @@ +name: Validate +on: + pull_request: + branches: + - main +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + - run: npm ci + - run: npm run lint + - run: npm run test