Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds additional bot check. #4884

Merged
merged 6 commits into from
Jun 26, 2024
Merged

Conversation

metroid-samus
Copy link
Contributor

Adds additional check for is_bot flag in user info

@metroid-samus metroid-samus added the bug Something isn't working label Jun 26, 2024
@metroid-samus metroid-samus self-assigned this Jun 26, 2024
Copy link
Contributor

@jschroth jschroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: trying to prevent errors when the response is not formatted the way we expect. It will still error, but it will error on the ContextError and not the None does not have...

src/dispatch/plugins/dispatch_slack/middleware.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/middleware.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_slack/middleware.py Outdated Show resolved Hide resolved
@metroid-samus metroid-samus merged commit 6374d53 into master Jun 26, 2024
8 checks passed
@metroid-samus metroid-samus deleted the bugfix/user_middleware_bot_check branch June 26, 2024 20:03
metroid-samus added a commit that referenced this pull request Sep 25, 2024
* Adds additional bot check.

* Fixes placement of users_info API call

* Update src/dispatch/plugins/dispatch_slack/middleware.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/middleware.py

Co-authored-by: Jason Schroth <[email protected]>

* Update src/dispatch/plugins/dispatch_slack/middleware.py

Co-authored-by: Jason Schroth <[email protected]>

---------

Co-authored-by: Jason Schroth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants