-
Notifications
You must be signed in to change notification settings - Fork 870
Python Migration - Bot Proactive Messaging Teamsfx #1701
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 Migration - Bot Proactive Messaging Teamsfx #1701
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.
Pull Request Overview
This PR adds a new Python sample for Teams proactive messaging using TeamsFx, including infrastructure as code, environment configuration, sample code, and CI workflow updates.
- Introduces a Python-based proactive messaging sample with Bicep templates and environment files
- Adds VS Code Tasks/Launch configurations and TeamsFx YAML for local debugging and provisioning
- Updates GitHub Actions to include building the new Python sample
Reviewed Changes
Copilot reviewed 30 out of 73 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
samples/bot-proactive-messaging-teamsfx/python/requirements.txt | Python dependencies for the new sample |
samples/bot-proactive-messaging-teamsfx/python/*.bicep | Infrastructure definitions for Azure resources |
samples/bot-proactive-messaging-teamsfx/python/config.py | Bot configuration class |
samples/bot-proactive-messaging-teamsfx/python/bots/* | Bot logic and conversation handling |
samples/bot-proactive-messaging-teamsfx/python/m365agents*.yml | TeamsFx action workflows for provision/deploy/debug |
.github/workflows/build-complete-samples.yml | CI pipeline updated to build the Python sample |
Files not reviewed (1)
- samples/bot-proactive-messaging-teamsfx/nodejs/bot/package-lock.json: Language not supported
Comments suppressed due to low confidence (3)
samples/bot-proactive-messaging-teamsfx/python/config.py:13
- [nitpick] BOT_ID duplicates APP_ID and pulls the same environment variable; consider removing BOT_ID or renaming it for clarity if it serves a different purpose.
BOT_ID = os.environ.get("MicrosoftAppId", "")
samples/bot-proactive-messaging-teamsfx/nodejs/m365agents.yml:92
- This
projectId
key is not nested under thewriteToEnvironmentFile
block and may be in the wrong place or indentation; please verify its position or intended use.
projectId: 42cc66bd-ac62-45b5-8cdd-c6175a20be65
samples/bot-proactive-messaging-teamsfx/python/config.py:16
- [nitpick] The attribute name
APP_TENANTID
is missing an underscore for readability; consider renaming toAPP_TENANT_ID
to match the style of other attributes.
APP_TENANTID = os.environ.get("MicrosoftAppTenantId", "")
samples/bot-proactive-messaging-teamsfx/python/bots/__init__.py
Outdated
Show resolved
Hide resolved
"creationDateTime": "2025-21-06", | ||
"updateDateTime": "2025-21-06", |
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 date format "2025-21-06" is invalid (month 21); swap day and month to follow ISO (e.g., "2025-06-21").
"creationDateTime": "2025-21-06", | |
"updateDateTime": "2025-21-06", | |
"creationDateTime": "2025-06-21", | |
"updateDateTime": "2025-06-21", |
Copilot uses AI. Check for mistakes.
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.
please fix given feedbacks.
samples/bot-proactive-messaging-teamsfx/python/Images/4.Welcome_Message.png
Outdated
Show resolved
Hide resolved
samples/bot-proactive-messaging-teamsfx/python/Images/5.Proactive_API_Notify.png
Outdated
Show resolved
Hide resolved
samples/bot-proactive-messaging-teamsfx/python/Images/6.Proactive_Notify_2.png
Outdated
Show resolved
Hide resolved
samples/bot-proactive-messaging-teamsfx/python/Images/7.Practive_Hello_Message.png
Outdated
Show resolved
Hide resolved
samples/bot-proactive-messaging-teamsfx/python/Images/Proactive_Messaging_TeamsFx.gif
Outdated
Show resolved
Hide resolved
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!
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.
Approved
No description provided.