Skip to content

Commit

Permalink
Merge branch 'develop' v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrahan committed Jan 26, 2024
2 parents e97a188 + 9e5ff45 commit 9d92f3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.3] - 2023-01-26
### Fixed
- Merged #25 - adds flexibility to accomodate multiple slack applications with unique variations of the
`/new_conversation` slash command. The command may be now customized to have any name starting with `/new_conv` -
e.g. `/new_conv_appa`, `/new_conv_appb`, etc.


## [0.1.2] - 2023-01-11
### Fixed
- Prebuild CloudFormation template region parameter default now matches template region for us-west-2
Expand All @@ -30,7 +37,8 @@ Initial release
- Process up to 5 attached files for document question answering, summaries, etc.
- Reset and start new conversation in DM channel by using `/new_conversation`

[Unreleased]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/compare/v0.1.2...develop
[Unreleased]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/compare/v0.1.3...develop
[0.1.3]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.3
[0.1.2]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.2
[0.1.1]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.1
[0.1.0]: https://github.com/aws-samples/qnabot-on-aws-plugin-samples/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my_amazon_q_slack_bot",
"version": "0.1.2",
"version": "0.1.3",
"bin": {
"my_enterprise_q_slack_bot": "bin/my_amazon_q_slack_bot.js"
},
Expand Down
2 changes: 1 addition & 1 deletion src/functions/slack-command-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const handler = async (
}

let commandStatus;
if (body.command === '/new_conversation') {
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);
Expand Down

0 comments on commit 9d92f3c

Please sign in to comment.