feat: add workflow.featured.{add|list|remove|set} methods#1542
Merged
feat: add workflow.featured.{add|list|remove|set} methods#1542
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1542 +/- ##
============================================
+ Coverage 72.98% 73.28% +0.30%
- Complexity 4476 4511 +35
============================================
Files 477 477
Lines 14223 14266 +43
Branches 1483 1487 +4
============================================
+ Hits 10380 10455 +75
+ Misses 2964 2919 -45
- Partials 879 892 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Member
|
🧪 Testing steps import com.slack.api.Slack;
import com.slack.api.methods.SlackApiException;
import com.slack.api.methods.response.workflows.WorkflowsFeaturedAddResponse;
import com.slack.api.methods.response.workflows.WorkflowsFeaturedListResponse;
import com.slack.api.methods.response.workflows.WorkflowsFeaturedRemoveResponse;
import com.slack.api.methods.response.workflows.WorkflowsFeaturedSetResponse;
import java.util.List;
Slack slack = Slack.getInstance();
String token = System.getenv("SLACK_BOT_TOKEN");
WorkflowsFeaturedAddResponse add = slack.methods(token)
.workflowsFeaturedAdd(req -> req.channelId("C04CRUE6MU3").triggerIds(List.of("Ft07BVE8UHEK", "Ft0A4EDARZL6")));
System.out.println(add);
WorkflowsFeaturedListResponse list = slack.methods(token)
.workflowsFeaturedList(req -> req.channelIds(List.of("C04CRUE6MU3")));
System.out.println(list);
WorkflowsFeaturedRemoveResponse remove = slack.methods(token)
.workflowsFeaturedRemove(req -> req.channelId("C04CRUE6MU3").triggerIds(List.of("Ft07BVE8UHEK")));
System.out.println(remove);
WorkflowsFeaturedSetResponse set = slack.methods(token)
.workflowsFeaturedSet(req -> req.channelId("C04CRUE6MU3").triggerIds(List.of("Ft0A4EDARZL6", "Ft07BVE8UHEK")));
System.out.println(set); |
zimeg
approved these changes
Dec 18, 2025
Member
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej LGTM! Thanks so much for featuring these methods 🙏 ✨
I left a few comments but nothing is blocking IMHO. Some are related to testing and I was curious if a bot token was working for you? I found a restricted_action error so I had to use a user token.
...lient/src/main/java/com/slack/api/methods/request/workflows/WorkflowsFeaturedAddRequest.java
Outdated
Show resolved
Hide resolved
...nt/src/main/java/com/slack/api/methods/request/workflows/WorkflowsFeaturedRemoveRequest.java
Outdated
Show resolved
Hide resolved
slack-api-client/src/test/java/test_with_remote_apis/methods/workflows_Test.java
Show resolved
Hide resolved
slack-api-client/src/test/java/test_locally/api/methods/WorkflowsTest.java
Show resolved
Hide resolved
…orkflows/WorkflowsFeaturedAddRequest.java Co-authored-by: Eden Zimbelman <[email protected]>
…orkflows/WorkflowsFeaturedRemoveRequest.java Co-authored-by: Eden Zimbelman <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds missing
workflow.featuredmethodsadd, list, remove, setTesting:
Category (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.