Slack Lambda Function to be used in AWS Lambda. This function handles incoming requests from Slack, verifies the request signature, and processes commands sent to the Slack bot.
Some commands also fork off another lambda function where the processing takes longer.
Command /hi can just validate that the Lambda is up and running.
Command /sprint-overview shows a sprint overview and which PRs are linked to Jira,
and which PRs are not linked yet.
The command /pr2jira is the older alias of this.
Environment variables:
USER_MAP_FILEdefaults tousermap.yamlcontaing the slack-jira-github user mapGITHUB_ORGANIZATIONthe organization to query the repositories and their PRsJIRA_BOARD_IDThe Jira board where the backlog filter and sprint issues are queried fromJIRA_CURRENT_SPRINT_URLa URL shown to the user to get to the current sprintJIRA_BACKLOG_URLa URL shown to the user to get to the backlogSECRETMANAGER_AWS_REGIONwhere the secrets manager is deployed, defaults tous-east-1
Those AWS secrets are expected to be available:
SCHUTZBOT_GITHUB_TOKENthe token to access githubSLACK_COMMAND_JIRA_TOKENthe token to access jiraSLACK_SCHUTZBOT_SIGNING_SECRETthe signing secret of slack to verify incomming messages/requests