-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add "item" interface types for "ReactionAddedEvent" #537
Conversation
For the "ReactionAddedEvent.item" field, add the possible interface types that an "item" can take.
Thanks for your contribution! Could you fix the build failure? They're just lint errors for consistency.
https://travis-ci.org/github/slackapi/bolt-js/jobs/704572148 Except for the build issue, your changes look good to me. They're compatible with the specification. |
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.
As I mentioned in the previous command, the CI builds are failing.
src/types/events/base-events.ts
Outdated
file_comment: string; | ||
file: string; | ||
} | ||
|
||
export interface ReactionAddedEvent extends StringIndexed { | ||
type: 'reaction_added'; | ||
user: string; | ||
reaction: string; | ||
item_user: string; | ||
// TODO: incomplete, should be message | file | file comment (deprecated) |
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.
Also, we can remove this comment
Clean up TODO comment for filling in `item` types. Mark the `ReactionFileCommentItem` type as deprecated and link to the deprecation notice.
Thanks for the quick review! Let me know if any other tweaks are necessary. |
Codecov Report
@@ Coverage Diff @@
## main #537 +/- ##
=======================================
Coverage 83.13% 83.13%
=======================================
Files 7 7
Lines 593 593
Branches 184 184
=======================================
Hits 493 493
Misses 68 68
Partials 32 32 Continue to review full report at Codecov.
|
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.
Thanks for the quick fix. LGTM! Other maintainers will check early next week.
I'll merge this PR after waiting for a few more days. @aoberoi @stevengill |
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.
LGTM
Thanks @dbmikus! Great contribution! |
Summary
Add possible interface types for the
items
field of theReactionAddedEvent
Requirements (place an
x
in each[ ]
)