-
Notifications
You must be signed in to change notification settings - Fork 816
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
Sample Migration Bot People Picker Adaptive Card To Python #1541
base: main
Are you sure you want to change the base?
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 18 out of 33 changed files in this pull request and generated 3 comments.
Files not reviewed (15)
- samples/bot-people-picker-adaptive-card/python/.env: Language not supported
- samples/bot-people-picker-adaptive-card/python/.gitignore: Language not supported
- samples/bot-people-picker-adaptive-card/python/.vscode/extensions.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/.vscode/launch.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/.vscode/settings.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/.vscode/tasks.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/appManifest/manifest.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/assets/sample.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/env/.env.local: Language not supported
- samples/bot-people-picker-adaptive-card/python/infra/azure.bicep: Language not supported
- samples/bot-people-picker-adaptive-card/python/infra/azure.parameters.json: Language not supported
- samples/bot-people-picker-adaptive-card/python/requirements.txt: Language not supported
- samples/bot-people-picker-adaptive-card/python/bots/init.py: Evaluated as low risk
- samples/bot-people-picker-adaptive-card/python/adaptive_cards/cards.py: Evaluated as low risk
- samples/bot-people-picker-adaptive-card/python/config.py: Evaluated as low risk
> the Teams service needs to call into the bot. | ||
|
||
1) Setup for Bot | ||
- In Azure portal, create Microsoft Entra ID app registraion and it will generate MicrosoftAppId and MicrosoftAppPassword for you. |
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 'registraion' should be corrected to 'registration'.
- In Azure portal, create Microsoft Entra ID app registraion and it will generate MicrosoftAppId and MicrosoftAppPassword for you. | |
- In Azure portal, create Microsoft Entra ID app registration and it will generate MicrosoftAppId and MicrosoftAppPassword for you. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
Fixed
|
||
async def on_teams_members_added( | ||
self, | ||
teams_members_added: [TeamsChannelAccount], |
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 type hint for teams_members_added
should use List
from the typing
module. Change it to teams_members_added: List[TeamsChannelAccount]
.
teams_members_added: [TeamsChannelAccount], | |
teams_members_added: List[TeamsChannelAccount], |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
Fixed
- Extracts the text of the mention and removes it from the activity's text. | ||
- Strips extra spaces after removing the mention. | ||
""" | ||
if activity.entities and activity.entities[0].type == "mention": |
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 remove_mention_text
method only handles the first mention entity. It should be updated to handle multiple mentions.
if activity.entities and activity.entities[0].type == "mention": | |
if activity.entities: |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
Fixed
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.
looks good
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.
looks correct, approving!
No description provided.