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 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);