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

Support msteams workflows #10

Merged
merged 8 commits into from
Dec 19, 2024
Merged

Support msteams workflows #10

merged 8 commits into from
Dec 19, 2024

Conversation

huNt-FMJ
Copy link
Collaborator

@huNt-FMJ huNt-FMJ commented Dec 5, 2024

Recently we got to know the world of Microsoft Teams workflows.
After playing around a bit, I found that this Gem still works successfully when wanting to post a message using Microsoft's adaptive card format.

However, some minor tweaks are required.
With the introduction/replacement/migration of connector based webhooks to workflow based webhooks, both types of responses. This is because workflow based webhook responses have different properties, i.e. status code and body content.
In a previous implementation, we only had to consider the properties of a connector based webhook responses.
these can be found here.

My current understanding is that each response type has the following properties:

  1. Connector based webhooks
  1. Workflow based webhooks
  • response code = 202
  • response body = "" (empty string)

Adds two helper functions that encapsulate the properties of a
successful connector based webhook and a workflow based webhook.

Up to now, workflow based webhooks lead to a response where there
response code is 202 and the response body is empty.
For connector based webhooks, the status code is 200 and the response
body is set to "1".
@huNt-FMJ huNt-FMJ requested a review from mooikos December 5, 2024 14:56
lib/msteams_hermes/message.rb Show resolved Hide resolved
lib/msteams_hermes/message.rb Outdated Show resolved Hide resolved
lib/msteams_hermes/message.rb Outdated Show resolved Hide resolved
@msd117c
Copy link
Contributor

msd117c commented Dec 19, 2024

My review worth nothing here 😞

@huNt-FMJ
Copy link
Collaborator Author

as I have addressed each point I will go ahead and merge. Since the comments mentioned stylistic topics, these can be changed at any point in time.

@huNt-FMJ huNt-FMJ merged commit 6dedbcc into main Dec 19, 2024
3 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.

3 participants