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

feat: add help response for unrecognized slash commands #264

Merged

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 24, 2025

Add help response for unrecognized slash commands

Task Description

Modify the slash command dispatch workflow to handle unrecognized slash commands and provide helpful feedback to users.

Changes Made

  1. Added outputs to slashCommandDispatch job to expose command and error-message status
  2. Added new unrecognizedSlashCommand job that runs after slashCommandDispatch
  3. Implemented different help text formatting:
    • For /help: Shows available commands with descriptions
    • For unrecognized commands: Shows error message + available commands

Testing

Note: This change will need to be tested after merging to main, as slash commands can only be tested on the main branch.

The workflow will respond to:

  • /help with a list of available commands
  • Any unrecognized slash command with an error message + available commands
  • Regular slash commands will work as before

Link to Devin run: https://app.devin.ai/sessions/19bfcd3c77084c55b445d7ba46e5f65c

Copy link
Contributor Author

Original prompt:

@Devin - In the CDK repo, can you modify our slash command dispatch workflow as follows: If someone enters a one-line comment that starts with `/`, let's assume they are trying to enter a slash command. If it doesn't match a supported command (including if they literally type `/help` - then post back a comment to them telling what slash commands are available.

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions github-actions bot added the enhancement New feature or request label Jan 24, 2025
@aaronsteers aaronsteers merged commit 0d22bdd into main Jan 24, 2025
18 checks passed
@aaronsteers aaronsteers deleted the devin/1737692328-add-unrecognized-slash-command-help branch January 24, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant