Add setCachePolicy card action type - #663
Merged
Mehak Bindra (MehakBindra) merged 1 commit intoAug 29, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot started reviewing on behalf of
Mehak Bindra (MehakBindra)
August 28, 2026 22:58
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for Teams setCachePolicy as a first-class suggested-action/card action type in the .NET schema model, including documentation for the "no-cache" value used to disable caching for link-unfurling responses.
Changes:
- Introduced
ActionType.SetCachePolicyandActionTypes.SetCachePolicyconstants ("setCachePolicy") with XML doc guidance for the{"type":"no-cache"}value. - Extended unit tests to validate the new constant value and to round-trip a
setCachePolicysuggested action carrying the"no-cache"payload.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Microsoft.Teams.Apps/Schema/SuggestedAction.cs | Adds SetCachePolicy action type constant and documents the "no-cache" payload used for link-unfurling caching control. |
| test/Microsoft.Teams.Apps.UnitTests/SuggestedActionsTests.cs | Adds assertions for the new constant and a JSON round-trip test covering the {"type":"no-cache"} value shape. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Lily Du (lilyydu)
approved these changes
Aug 29, 2026
Mehak Bindra (MehakBindra)
deleted the
mehakbindra-add-cache-policy-action
branch
August 29, 2026 01:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setCachePolicycard/suggested-action type to the .NET action model{"type":"no-cache"}value used to disable caching for link-unfurling responsesAction.SubmittypeCross-SDK context: microsoft/teams.ts#574
Related issue: microsoft/teams.ts#154
Tests
dotnet format Microsoft.Teams.slnx --include src/Microsoft.Teams.Apps/Schema/SuggestedAction.cs test/Microsoft.Teams.Apps.UnitTests/SuggestedActionsTests.cs --verify-no-changesdotnet test test/Microsoft.Teams.Apps.UnitTests/Microsoft.Teams.Apps.UnitTests.csproj --framework net8.0 --filter FullyQualifiedName~SuggestedActionsTests --no-restore(15 passed)