Skip to content

fix(api): support installation upgrade activity - #666

Merged
Lily Du (lilyydu) merged 1 commit into
mainfrom
lilyydu-support-install-upgrades
Sep 1, 2026
Merged

fix(api): support installation upgrade activity#666
Lily Du (lilyydu) merged 1 commit into
mainfrom
lilyydu-support-install-upgrades

Conversation

@lilyydu

Copy link
Copy Markdown
Contributor

Summary

  • add InstallUpdateAction for upgrade

Parity fix based on microsoft/teams.py#583.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 1, 2026 17:19
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 first-class support for the Teams installationUpdate upgrade action by introducing a corresponding InstallUpdateAction constant and validating deserialization behavior via unit tests.

Changes:

  • Added InstallUpdateAction.Upgrade / InstallUpdateActions.Upgrade constants for the "upgrade" action value.
  • Updated installation-update unit tests to cover multiple known actions and added a JSON-based test for "upgrade".

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/Microsoft.Teams.Apps.UnitTests/ActivitiesTests.cs Expands install-update tests and adds coverage for JSON deserialization of the upgrade action.
src/Microsoft.Teams.Apps/Handlers/InstallUpdateHandlers.Activity.cs Adds the Upgrade action constant to the string-enum and exposes it via InstallUpdateActions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lilyydu
Lily Du (lilyydu) added this pull request to the merge queue Sep 1, 2026
Merged via the queue into main with commit 96a4c1c Sep 1, 2026
7 checks passed
@lilyydu
Lily Du (lilyydu) deleted the lilyydu-support-install-upgrades branch September 1, 2026 17:58
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.

3 participants