No commit activity in last 3 years
No release in over 3 years
Send a message card to your Microsoft teams channel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

teams_message_card plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-teams_message_card, add it to your project by running:

fastlane add_plugin teams_message_card

About teams_message_card

Send a message card to your Microsoft teams channel

Note to author: Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.

Example

teams_message_card(
            title: "test title",
            summary: "test summary",
            text: "test text",
            activity_title: "test activity_title",
            activity_subtitle: Time.now.strftime("%d/%m/%Y %H:%M"),
            activity_image: "test activity_image (must be start with https)",
            theme_color: 8e8e93,
            facts:[
              {
                "name"=>"Platform",
                "value"=> ios
              }
            ],
            potential_action:[
              {
                "@type": "OpenUri",
                "name": "View in TEST",
                "targets": [
                  { 
                    "os": "default", 
                    "uri": "https://github.com/cheignon/fastlane-plugin-microsft_teams_message_card/edit/main/README.md"
                  }
                ]
              },
              ...
            ],
            teams_url: "https://outlook.office.com/webhook/..."
          )

for potential_action for the type don't forget the '@' like that "@type"

Potential action Availbale

@type description
OpenUri Open a URI in another browser or application.
HttpPOST Calls to an external web service.
ActionCard Presents the additional user interface which contains one or more entries, as well as the associated actions which can be of type OpenUri or HttpPOST.
InvokeAddInCommand Opens the task pane of an Outlook add-in. If the add-in is not installed, the user is prompted to install it with one click.

OpenUri example

potential_action:[
              {
                "@type": "OpenUri",
                "name": "View in TEST",
                "targets": [
                  { 
                    "os": "default", 
                    "uri": "https://github.com/cheignon/fastlane-plugin-microsft_teams_message_card/edit/main/README.md"
                  }
                ]
              }
            ]

HttpPOST example

HttpPOST can't be use alone, you need to use ActionCard type before,like that :

potential_action:[

{
  "@type": "ActionCard",
  "name": "Comment",
  "inputs": [
    {
      "@type": "TextInput",
      "id": "comment",
      "isMultiline": true,
      "title": "Input's title property"
    }
  ],
  "actions": [
    {
      "@type": "HttpPOST",
      "name": "Action's name prop.",
      "target": "https://yammer.com/comment?postId=123",
      "body": "comment={{comment.value}}"
    }
  ]
}

More example

the documatation is on Legacy actionable message card reference

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.