Skip to content
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

Update Microsoft Teams webhook JSON format #48

Closed
wants to merge 1 commit into from

Conversation

kevincobain2000
Copy link
Owner

@kevincobain2000 kevincobain2000 commented Jul 10, 2024

Update the code to support the new Microsoft Teams webhook JSON format as specified in https://adaptivecards.io/schemas/adaptive-card.json.

  • ExceptionOccurredCard.php:

    • Update the getCard method to generate JSON that conforms to the Adaptive Card schema.
    • Use the https://adaptivecards.io/schemas/adaptive-card.json schema URL in the @context field.
    • Replace the sections field with the body field containing an array of TextBlock elements for each piece of information (Environment, Server, Request URL, Exception, Message, Exception Code, In File, Stack Trace, Context).
  • AlertDispatcherTest.php:

    • Add a new test testMicrosoftTeamsCardFormat to verify the new JSON format generated by the getCard method in ExceptionOccurredCard.
    • Add assertions to check the presence of @context, @type, body, and TextBlock elements in the generated JSON.
  • README.md:

    • Update the documentation to mention the new Microsoft Teams webhook JSON format.
    • Include a sample JSON payload that conforms to the Adaptive Card schema.
    • Update the "Samples" section with a new screenshot of the updated Microsoft Teams card.

For more details, open the Copilot Workspace session.

Copy link

CoverItUp Report

Type master update-teams-webhook e59839f from 1dffb51
composer-install-time 11 11
coverage 66.7% 66.7%
composer-dependencies 122 125 📈
Comparisons Chart - master from update-teams-webhook

base vs branchbase vs branchbase vs branch

Commits History

Upto 1dffb51 for #48
commit historycommit historycommit history

Users History

Upto 1dffb51 for #48
user historyuser historyuser history

Embed README.md

@kevincobain2000 kevincobain2000 deleted the update-teams-webhook branch July 21, 2024 10:57
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.

1 participant