-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2a8a18
commit fab5869
Showing
67 changed files
with
1,085 additions
and
2,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.11.4 | ||
3.11.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import json | ||
|
||
from logger import logger | ||
|
||
|
||
@logger.bind | ||
def handler(event, _): | ||
command = event["command"] | ||
|
||
if command == "/test": | ||
text = "Choose a Slack OAuth scope to learn more" | ||
blocks = [ | ||
{ | ||
"type": "section", | ||
"text": {"type": "plain_text", "text": text}, | ||
}, | ||
{ | ||
"block_id": "slack_oauth_scopes", | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "external_select", | ||
"action_id": "slack_oauth_scopes", | ||
"placeholder": {"type": "plain_text", "text": "Select scope"}, | ||
} | ||
], | ||
}, | ||
] | ||
data = {"text": text, "blocks": blocks} | ||
body = json.dumps(data) | ||
resp = {"statusCode": "200", "body": body} | ||
return resp |
File renamed without changes.
Oops, something went wrong.