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

Add style to confirm in a block element #699

Merged
merged 1 commit into from
May 22, 2020

Conversation

seratch
Copy link
Member

@seratch seratch commented May 22, 2020

Summary

This pull request adds the missing confirm.style in block elements.
https://api.slack.com/reference/block-kit/composition-objects#confirm

Requirements (place an x in each [ ])

@seratch seratch added Version: 2x enhancement M-T: A feature request for new functionality web-client v2.6 in-progress labels May 22, 2020
@seratch seratch added this to the 2.6.0 milestone May 22, 2020
@seratch seratch requested a review from stevengill May 22, 2020 01:53
@seratch seratch self-assigned this May 22, 2020
@seratch
Copy link
Member Author

seratch commented May 22, 2020

Related to slackapi/node-slack-sdk#1022

@codecov
Copy link

codecov bot commented May 22, 2020

Codecov Report

Merging #699 into master will decrease coverage by 0.03%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #699      +/-   ##
==========================================
- Coverage   85.59%   85.55%   -0.04%     
==========================================
  Files          19       19              
  Lines        2631     2638       +7     
  Branches      252      253       +1     
==========================================
+ Hits         2252     2257       +5     
- Misses        285      286       +1     
- Partials       94       95       +1     
Impacted Files Coverage Δ
slack/web/classes/objects.py 85.66% <71.42%> (-0.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2a1b95...9af283c. Read the comment docs.

@@ -315,6 +322,8 @@ def to_dict(self, option_type: str = "block") -> dict:
json["confirm"] = self._confirm.to_dict()
if self._deny:
json["deny"] = self._deny.to_dict()
if self._style:
Copy link
Member Author

Choose a reason for hiding this comment

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

style is available only for blocks, not for attachments.

@seratch seratch merged commit 0725f4f into slackapi:master May 22, 2020
@seratch seratch deleted the confirm-style branch May 22, 2020 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement M-T: A feature request for new functionality Version: 2x web-client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant