Skip to content

Conversation

Mohammed-MSFT
Copy link
Contributor

No description provided.

@Mohammed-MSFT Mohammed-MSFT requested a review from Copilot June 24, 2025 04:13
Copy link
Contributor

@Copilot Copilot AI left a 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 the writeToEnvironmentFile 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 to APP_TENANT_ID to match the style of other attributes.
    APP_TENANTID  = os.environ.get("MicrosoftAppTenantId", "")

Comment on lines 11 to 12
"creationDateTime": "2025-21-06",
"updateDateTime": "2025-21-06",
Copy link
Preview

Copilot AI Jun 24, 2025

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").

Suggested change
"creationDateTime": "2025-21-06",
"updateDateTime": "2025-21-06",
"creationDateTime": "2025-06-21",
"updateDateTime": "2025-06-21",

Copilot uses AI. Check for mistakes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Collaborator

@Pawank-MSFT Pawank-MSFT left a 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.

Copy link
Collaborator

@Pawank-MSFT Pawank-MSFT left a comment

Choose a reason for hiding this comment

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

looks correct, approving!

Copy link
Contributor

@Harikrishnan-MSFT Harikrishnan-MSFT left a comment

Choose a reason for hiding this comment

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

Approved

@Harikrishnan-MSFT
Copy link
Contributor

@Harikrishnan-MSFT Harikrishnan-MSFT merged commit 7db3df8 into main Sep 4, 2025
280 checks passed
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