Skip to content

fix(methods): drop default arguments and socket mode from slackbot.skills method examples - #128

Merged
mwbrooks merged 6 commits into
mainfrom
zimeg-fix-slackbot-skills-examples-docs-values
Nov 14, 2026
Merged

mwbrooks merged 6 commits into
mainfrom
zimeg-fix-slackbot-skills-examples-docs-values

Conversation

@zimeg

@zimeg zimeg commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request matches the merged slackbot.skills and admin.slackbot.skills method examples to their docs.slack.dev reference pages and the sibling examples.

  • Drops arguments sent at their documented defaults from the admin.slackbot.skills.list example: limit, publish_status, auto_enabled_status, sort, and sort_dir.
  • Sets socket_mode_enabled to false in the slackbot/skills, slackbot/skills/library, and admin/slackbot/skills manifests, matching the other method example manifests.
  • Requests bot scopes only in the slackbot/skills and slackbot/skills/library manifests, since every slackbot.skills.* method accepts a bot token. The admin/slackbot/skills manifest keeps its user scopes.

Follows #113–#123, which merged before these fixes; #124–#126 landed with the same changes in place.

Testing

  • Create an app from methods/src/main/java/admin/slackbot/skills/manifest.json on an org with Slackbot skills, then run mvn compile exec:java -Dexec.mainClass=admin.slackbot.skills.AdminSlackbotSkillsList with a SLACK_TOKEN and confirm the response lists the org's skills.

🤖 Generated with Claude Code

zimeg and others added 4 commits November 13, 2026 11:51
…ot.skills examples

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
….list example

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ills-examples-docs-values

# Conflicts:
#	methods/README.md
….list example

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added the java Pull requests that update java code label Nov 13, 2026
@zimeg zimeg self-assigned this Nov 13, 2026
…ther examples

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg changed the title fix(methods): match docs values in slackbot.skills method examples fix(methods): drop default arguments and socket mode from slackbot.skills method examples Nov 13, 2026
@zimeg
zimeg marked this pull request as ready for review November 14, 2026 00:03
@zimeg
zimeg requested a review from a team as a code owner November 14, 2026 00:03
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

✅ Thanks @zimeg! Nice to have the Java skills examples lined up with Python and JS.

@mwbrooks
mwbrooks merged commit 1675c3f into main Nov 14, 2026
4 checks passed
@mwbrooks
mwbrooks deleted the zimeg-fix-slackbot-skills-examples-docs-values branch November 14, 2026 05:58
@zimeg

zimeg commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

🌟 Thanks for the kind review and merge @mwbrooks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants