fastlane-plugin-teams_card 0.2.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7691cd01244ecd5e4cdd5b680b5733529acfdfe0b09b9f80e79ff0d49cf57b5c
|
4
|
+
data.tar.gz: a5ac8543992ef5cf0b348032787206ee873d4227c2aa94551df83b8aa6139ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01abb524bcc23c669119c8c8ab84778a236a55b4f9e8f45dcda2273c143ab543448b25d93f22a6c0cf511ecf7966df063c632929ed3b191ad5a877de47079760
|
7
|
+
data.tar.gz: '09e8e933b1bd00bbf77123ac27a8e3f07f6678dfd6f95e92658020234dd8448a4028ead69a0a9cfa3fe4ea72dc37ebb78eea133b44ff5210c8fdcf58bf7e8f64'
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Microsoft Teams fastlane
|
1
|
+
# Microsoft Teams `fastlane` plugin via Workflow
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-teams_card)
|
4
4
|
|
@@ -14,14 +14,15 @@ fastlane add_plugin teams_card
|
|
14
14
|
|
15
15
|
## About teams_card
|
16
16
|
|
17
|
-
With this plugin you will be able to send
|
17
|
+
With this plugin you will be able to send messages to a Microsoft Teams channel, group chat or chat. This plugin utilizes the latest **Workflows** app (rather than the [now-retired Office connectors](https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/) used in other plugins).
|
18
18
|
|
19
|
-
Beforehand you must Set up an incoming webhook workflow from a template in Microsoft Teams channel of your choice. You can follow this documentation to help you do this: [Incoming Webhook](https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498)
|
20
19
|
|
21
|
-
`teams_card` allows you to send a fully custom message to a specific incoming webhook.
|
20
|
+
`teams_card` allows you to send a fully custom message to a specific incoming webhook. You can use a predefined card with optional elements like a title, an image, or a button to open a URL. It's also possible to fully customize the card using JSON. It utilizes [Adaptive Cards](https://adaptivecards.io/samples/).
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
24
|
+
To get started, first, [set up an incoming webhook workflow from a template](https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498) in Microsoft Teams.
|
25
|
+
|
25
26
|
```ruby
|
26
27
|
teams_card(
|
27
28
|
workflow_url: 'https://your.logic.azure.com:443/workflows/1234567890',
|
@@ -55,7 +56,7 @@ teams_card(
|
|
55
56
|
)
|
56
57
|
```
|
57
58
|
|
58
|
-
This code
|
59
|
+
This code produces the following message:
|
59
60
|
|
60
61
|
<img src="screenshots/1.png">
|
61
62
|
|
@@ -81,7 +82,7 @@ teams_card(
|
|
81
82
|
)
|
82
83
|
```
|
83
84
|
|
84
|
-
This code
|
85
|
+
This code produces the following message:
|
85
86
|
|
86
87
|
<img src="screenshots/2.png">
|
87
88
|
|
@@ -193,6 +193,48 @@ module Fastlane
|
|
193
193
|
]
|
194
194
|
end
|
195
195
|
|
196
|
+
def self.example_code
|
197
|
+
[
|
198
|
+
'teams_card(
|
199
|
+
workflow_url: "https://your.logic.azure.com:443/workflows/1234567890",
|
200
|
+
title: "Notification Title",
|
201
|
+
text: "A new release is ready for testing!",
|
202
|
+
image: "https://raw.githubusercontent.com/fastlane/boarding/master/app/assets/images/fastlane.png",
|
203
|
+
image_title: "Fastlane",
|
204
|
+
open_url: "https://beta.itunes.apple.com/v1/app/_YOUR_APP_ID_",
|
205
|
+
facts: [
|
206
|
+
{
|
207
|
+
"title" => "Environment",
|
208
|
+
"value" => "Staging"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"title" => "Release",
|
212
|
+
"value" => "1.0.3"
|
213
|
+
}
|
214
|
+
]
|
215
|
+
)'
|
216
|
+
]
|
217
|
+
end
|
218
|
+
|
219
|
+
def self.description
|
220
|
+
"Easily send a message to a Microsoft Teams channel or group chat through the Power Automate Webhook connector"
|
221
|
+
end
|
222
|
+
|
223
|
+
def self.details
|
224
|
+
"Send a message to a specific channel, group chat or chat on your Microsoft Teams organization via a Workflow of Power Automate"
|
225
|
+
end
|
226
|
+
|
227
|
+
def self.authors
|
228
|
+
["Kondamon"]
|
229
|
+
end
|
230
|
+
|
231
|
+
def self.return_value
|
232
|
+
# If your method provides a return value, you can describe here what it does
|
233
|
+
end
|
234
|
+
|
235
|
+
def self.is_supported?(platform)
|
236
|
+
true
|
237
|
+
end
|
196
238
|
# Rest of the methods...
|
197
239
|
end
|
198
240
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-teams_card
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kondamon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|