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

fix: upgrade workflow bot template based on Teams store policy #12119

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

JerryYangKai
Copy link
Contributor

Upgrade workflow bot template (js ts csharp version)

Based on Teams Store validation guidelines (https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/deploy-and-publish/appsource/prepare/teams-store-validation-guidelines)

Reference

command bot

All commands that your bot supports must work correctly, including generic commands such as Hi, Hello, and Help. [Mandatory Fix]
Bot commands mustn't lead a user to a dead end, the commands must always provide a way forward. [Mandatory Fix]
Bots must always provide a valid response to a user input even if the input is irrelevant or improper. [Mandatory Fix]
Bots must provide a valid response to invalid user commands. Bots mustn't dead-end the user or display an error if a user sends an invalid bot command. [Mandatory Fix]
Welcome message must auto trigger on app install in a personal scope. If the bot doesn't send a welcome message in a personal scope, the user is lead to a dead-end. If the app doesn't include a complex configuration workflow, it's optional for the developer to trigger a welcome message in the channel or group chat scope. [Mandatory Fix]
Welcome message mustn't dead-end the user. Welcome message must include the value offered by the bot to the users who installed the bot in channel, how to configure the bot, and briefly describe all supported bot commands. You can display the welcome message using an Adaptive Card with buttons for better usability. [Mandatory Fix]

@JerryYangKai
Copy link
Contributor Author

@MuyangAmigo Please help reviewing the content, thanks.

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.45%. Comparing base (e185efa) to head (be5c665).
Report is 1 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##              dev   #12119    +/-   ##
========================================
  Coverage   89.45%   89.45%            
========================================
  Files         571      571            
  Lines       33583    33583            
  Branches     6483     6636   +153     
========================================
  Hits        30043    30043            
  Misses       1583     1583            
  Partials     1957     1957            

yukun-dong
yukun-dong previously approved these changes Jul 31, 2024

public IEnumerable<ITriggerPattern> TriggerPatterns => new List<ITriggerPattern>
{
// Used to trigger the command handler if the command text contains 'helloWorld'
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to update the code comment here to consistent with the RegExp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, updated.

@JerryYangKai JerryYangKai requested a review from MuyangAmigo July 31, 2024 03:40
@JerryYangKai JerryYangKai merged commit 1283520 into dev Aug 1, 2024
18 checks passed
@JerryYangKai JerryYangKai deleted the kaiyan/update3 branch August 1, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants