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
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,16 +29,16 @@ An Event that is triggered by a rule deployed and updated automatically by [SAM]
29
29
Serves as the main hub of this stack, deployed and updated automatically by [SAM](#sam).
30
30
31
31
- Triggered by a CloudWatch Event, which is passed into its main function.
32
-
- Assigns its Slack Channel name via Environment variables passed in by SAM.
32
+
- Assigns its Slack Channel ID via Environment variables passed in by SAM.
33
33
- Uses the SecretsManager to get both the Slack and Small Improvements tokens.
34
34
- Gets all objectives using the Small Improvements API token.
35
35
- Filters the objectives such that only those of a specific type, status, visibility, and time are left.
36
36
- Log the number of objectives found.
37
-
- For each of those objectives,the database is checked to see if it has an object with the same ID (returns a promise).
37
+
- For each of those objectives,the database is checked to see if it has an object with the same ID (returns a promise).
38
38
- If the objective was in the database, return undefined, there is nothing left to do for this objective.
39
39
- If the objective was not in the database, it will try to post to Slack, which requires the following:
40
40
- Try to get SlackID via the email address in the Small Improvements Objective.
41
-
- Format the slack message using the objective, its status, and the SlackID.
41
+
- Format the Slack message using the objective, its status, and the SlackID.
42
42
- Try to send the message (if successful, resolves to the body of the HTTP response).
43
43
- Try to insert the record of the objective into the database.
44
44
- Finally, after all of the promises created from those objectives resolve, the data on number of successful and unsuccessful posts is logged and returned.
0 commit comments