-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
chore(slack): actually type issues message builder correctly #75212
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/sentry/integrations/slack/message_builder/issues.py
Did you find this useful? React with a 👍 or 👎 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #75212 +/- ##
=======================================
Coverage 78.21% 78.22%
=======================================
Files 6775 6775
Lines 302013 301997 -16
Branches 51963 51956 -7
=======================================
+ Hits 236217 236226 +9
+ Misses 59443 59417 -26
- Partials 6353 6354 +1
|
162860a
to
e34a292
Compare
"""Format the release tag using the short version and make it a link""" | ||
if not event: | ||
return "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better if we return None
here instead of ""
? Otherwise the caller will have to perform falsey checks to validate whether this was successful or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e34a292
to
9b4549d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for good measure
oops looks like this got caught in a merge race:
|
PR reverted: d2f0d29 |
@@ -20,17 +20,17 @@ | |||
|
|||
|
|||
def format_actor_options( | |||
actors: Iterable[Team | RpcUser], use_block_kit: bool = False | |||
actors: Sequence[Team | RpcUser], is_slack: bool = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this particular line -- the Iterable
should have stayed -- probably a merge conflict sorry about that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oopsie, thanks for letting me know
and don't break Slack in the process
Re-up of #74876