You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New: [AEA-5544] - Modify Slackbot to respond to mentions rather than slash commands (#16)
## Summary
🎫 [AEA-5544](https://nhsd-jira.digital.nhs.uk/browse/AEA-5544) Modify
Slackbot to respond to mentions rather than slash commands
:sparkles: New Feature
### Details
This pull request modifies the Slackbot to respond to @mentions rather
than slash commands, aligning with updated interaction requirements.
Changes Included
- Removed support for Slack slash commands.
- Updated Slackbot Lambda to handle @mentions and reply in thread.
- Added linting for Python code.
- Integrated AWS Powertools for:
- Logging
- Fetching parameters from SSM
- Added unit tests using pytest.
- Configured a dev container for testing and development setup.
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ When the token expires, you may need to reauthorise using `make aws-login`
103
103
For deployment, the following environment variables are required:
104
104
105
105
-`ACCOUNT_ID`: AWS Account ID
106
-
-`stack_name`: Name of the CloudFormation stack
106
+
-`STACK_NAME`: Name of the CloudFormation stack
107
107
-`VERSION_NUMBER`: Version number for the deployment
108
108
-`COMMIT_ID`: Git commit ID
109
109
-`LOG_RETENTION_IN_DAYS`: CloudWatch log retention period
@@ -137,10 +137,10 @@ There are `make` commands that are run as part of the CI pipeline and help alias
137
137
#### CDK targets
138
138
These are used to do common commands related to cdk
139
139
140
-
-`cdk-deploy` Builds and deploys the code to AWS. Requires `stack_name` environment variable.
140
+
-`cdk-deploy` Builds and deploys the code to AWS. Requires `STACK_NAME` environment variable.
141
141
-`cdk-synth` Converts the CDK code to cloudformation templates.
142
142
-`cdk-diff` Runs cdk diff, comparing the deployed stack with the local CDK code to identify differences.
143
-
-`cdk-watch` Syncs the code and CDK templates to AWS. This keeps running and automatically uploads changes to AWS. Requires `stack_name` environment variable.
143
+
-`cdk-watch` Syncs the code and CDK templates to AWS. This keeps running and automatically uploads changes to AWS. Requires `STACK_NAME` environment variable.
144
144
145
145
#### Clean and deep-clean targets
146
146
@@ -150,9 +150,11 @@ These are used to do common commands related to cdk
150
150
#### Linting and testing
151
151
152
152
-`lint` Runs lint for GitHub Actions and scripts.
153
+
-`lint-black` Runs black formatter on Python code.
154
+
-`lint-flake8` Runs flake8 linter on Python code.
153
155
-`lint-githubactions` Lints the repository's GitHub Actions workflows.
154
156
-`lint-githubaction-scripts` Lints all shell scripts in `.github/scripts` using ShellCheck.
155
-
-`test` Runs unit tests for CDK code.
157
+
-`test` Runs unit tests for Lambda functions.
156
158
-`cfn-guard` Runs cfn-guard against CDK resources.
0 commit comments