-
Notifications
You must be signed in to change notification settings - Fork 817
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
Python Conversion Bot Formatting Cards #1570
base: main
Are you sure you want to change the base?
Python Conversion Bot Formatting Cards #1570
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 39 out of 53 changed files in this pull request and generated 6 comments.
Files not reviewed (14)
- samples/bot-formatting-cards/python/.env: Language not supported
- samples/bot-formatting-cards/python/.gitignore: Language not supported
- samples/bot-formatting-cards/python/.vscode/extensions.json: Language not supported
- samples/bot-formatting-cards/python/.vscode/launch.json: Language not supported
- samples/bot-formatting-cards/python/.vscode/settings.json: Language not supported
- samples/bot-formatting-cards/python/.vscode/tasks.json: Language not supported
- samples/bot-formatting-cards/python/appManifest/manifest.json: Language not supported
- samples/bot-formatting-cards/python/assets/sample.json: Language not supported
- samples/bot-formatting-cards/python/env/.env.local: Language not supported
- samples/bot-formatting-cards/python/infra/azure.bicep: Language not supported
- samples/bot-formatting-cards/python/infra/azure.parameters.json: Language not supported
- samples/bot-formatting-cards/python/requirements.txt: Language not supported
- samples/bot-formatting-cards/python/bots/init.py: Evaluated as low risk
- samples/bot-formatting-cards/python/bots/botFormattingCards.py: Evaluated as low risk
Comments suppressed due to low confidence (2)
samples/bot-formatting-cards/python/README.md:138
- The method name 'adaptivePeoplePersonaCardIcon' should be 'adaptivePeoplePersonaCardSetIcon'.
- Select method `def adaptivePeoplePersonaCardIcon` at line number `1082`
samples/bot-formatting-cards/python/app.py:37
- [nitpick] The error message could be more descriptive. Consider specifying the type of error that occurred.
await context.send_activity("The bot encountered an error or bug.")
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case. | ||
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'varialbe' should be corrected to 'variable'.
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case. | |
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. | |
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select subscription if it's empty in this case. | |
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case. | ||
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'varialbe' should be corrected to 'variable'.
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case. | |
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. | |
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select subscription if it's empty in this case. | |
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment variable here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
- uses: arm/deploy # Deploy given ARM templates parallelly. | ||
with: | ||
subscriptionId: ${{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case. | ||
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'grouop' should be corrected to 'group'.
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case. | |
resourceGroupName: ${{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource group if it's empty in this case. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
**Guage Chart :** | ||
|
||
 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'Guage' is misspelled. It should be 'Gauge'.
**Guage Chart :** | |
 | |
**Gauge Chart :** | |
 |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
# If the channel is the Emulator, and authentication is not in use, the AppId will be null. | ||
# We generate a random AppId for this case only. This is not required for production, since | ||
# the AppId will have a value. | ||
APP_ID = SETTINGS.app_id if SETTINGS.app_id else uuid.uuid4() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generating a random UUID for APP_ID if SETTINGS.app_id is None could lead to inconsistencies. Handle this case more explicitly.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
|
||
# Catch-all for errors. | ||
async def on_error(context: TurnContext, error: Exception): | ||
# This check writes out errors to console log .vs. app insights. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment contains a typo: '.vs.' should be 'vs.'
# This check writes out errors to console log .vs. app insights. | |
# This check writes out errors to console log vs. app insights. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
No description provided.