From e1a890231fb4e0809bdd74a7de3fd2696d80838d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 08:42:51 +0000 Subject: [PATCH] go.mod: bump github.com/atc0005/go-teams-notify/v2 from 2.8.0 to 2.9.0 Bumps [github.com/atc0005/go-teams-notify/v2](https://github.com/atc0005/go-teams-notify) from 2.8.0 to 2.9.0. - [Release notes](https://github.com/atc0005/go-teams-notify/releases) - [Changelog](https://github.com/atc0005/go-teams-notify/blob/master/CHANGELOG.md) - [Commits](https://github.com/atc0005/go-teams-notify/compare/v2.8.0...v2.9.0) --- updated-dependencies: - dependency-name: github.com/atc0005/go-teams-notify/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- .../atc0005/go-teams-notify/v2/CHANGELOG.md | 22 +++++++++++++++++- .../atc0005/go-teams-notify/v2/README.md | 23 +++++++++++++++++++ .../atc0005/go-teams-notify/v2/messagecard.go | 8 ++++--- .../go-teams-notify/v2/messagecard/doc.go | 4 ++-- .../go-teams-notify/v2/messagecard/format.go | 9 ++++---- .../v2/messagecard/messagecard.go | 10 ++++---- vendor/modules.txt | 2 +- 9 files changed, 66 insertions(+), 18 deletions(-) diff --git a/go.mod b/go.mod index 82c932a0..f87b4c30 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/alexflint/go-arg v1.4.3 github.com/apex/log v1.9.0 github.com/atc0005/go-ezproxy v0.1.8 - github.com/atc0005/go-teams-notify/v2 v2.8.0 + github.com/atc0005/go-teams-notify/v2 v2.9.0 github.com/pelletier/go-toml/v2 v2.1.1 ) diff --git a/go.sum b/go.sum index 6de2dd3f..6bf227bb 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/aphistic/golf v0.0.0-20180712155816-02c07f170c5a/go.mod h1:3NqKYiepwy github.com/aphistic/sweet v0.2.0/go.mod h1:fWDlIh/isSE9n6EPsRmC0det+whmX6dJid3stzu0Xys= github.com/atc0005/go-ezproxy v0.1.8 h1:E4HxjqONvShmk5Gfavzb8LU0EnStNSPanSAsI2B7YnU= github.com/atc0005/go-ezproxy v0.1.8/go.mod h1:yAISa+7/XoUib5EbE9pOxkwZutG/KOEuoI/JNeUOgrU= -github.com/atc0005/go-teams-notify/v2 v2.8.0 h1:971J5qivrzBbYMDAdmW7v9s7W2u2jiIRVcY+LaIJqww= -github.com/atc0005/go-teams-notify/v2 v2.8.0/go.mod h1:SIeE1UfCcVRYMqP5b+r1ZteHyA/2UAjzWF5COnZ8q0w= +github.com/atc0005/go-teams-notify/v2 v2.9.0 h1:VkZm1LSotDxvooLYabdM8TcRh0hFU8/iIP1JvChs0Y4= +github.com/atc0005/go-teams-notify/v2 v2.9.0/go.mod h1:SIeE1UfCcVRYMqP5b+r1ZteHyA/2UAjzWF5COnZ8q0w= github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/CHANGELOG.md b/vendor/github.com/atc0005/go-teams-notify/v2/CHANGELOG.md index 6e41b497..40ce8259 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/CHANGELOG.md +++ b/vendor/github.com/atc0005/go-teams-notify/v2/CHANGELOG.md @@ -26,6 +26,25 @@ The following types of changes will be recorded in this file: - placeholder +## [v2.9.0] - 2024-01-25 + +### Added + +- (GH-241) Add proxy server examples +- (GH-251) Initial support for toggling visibility + +### Changed + +#### Dependency Updates + +- (GH-238) ghaw: bump actions/checkout from 3 to 4 +- (GH-248) ghaw: bump github/codeql-action from 2 to 3 +- (GH-236) Update Dependabot config to monitor both branches + +#### Other + +- (GH-244) Update Go Doc comment formatting + ## [v2.8.0] - 2023-07-21 ### Added @@ -491,7 +510,8 @@ The following types of changes will be recorded in this file: - add initial functionality of sending messages to MS Teams channel -[Unreleased]: https://github.com/atc0005/go-teams-notify/compare/v2.8.0...HEAD +[Unreleased]: https://github.com/atc0005/go-teams-notify/compare/v2.9.0...HEAD +[v2.9.0]: https://github.com/atc0005/go-teams-notify/releases/tag/v2.9.0 [v2.8.0]: https://github.com/atc0005/go-teams-notify/releases/tag/v2.8.0 [v2.7.1]: https://github.com/atc0005/go-teams-notify/releases/tag/v2.7.1 [v2.7.0]: https://github.com/atc0005/go-teams-notify/releases/tag/v2.7.0 diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/README.md b/vendor/github.com/atc0005/go-teams-notify/v2/README.md index d474e2e2..043ab888 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/README.md +++ b/vendor/github.com/atc0005/go-teams-notify/v2/README.md @@ -26,10 +26,12 @@ A package to send messages to a Microsoft Teams channel. - [How to create a webhook URL (Connector)](#how-to-create-a-webhook-url-connector) - [Examples](#examples) - [Basic](#basic) + - [Specify proxy server](#specify-proxy-server) - [User Mention](#user-mention) - [Tables](#tables) - [Set custom user agent](#set-custom-user-agent) - [Add an Action](#add-an-action) + - [Toggle visibility](#toggle-visibility) - [Disable webhook URL prefix validation](#disable-webhook-url-prefix-validation) - [Enable custom patterns' validation](#enable-custom-patterns-validation) - [Used by](#used-by) @@ -192,6 +194,16 @@ This is an example of a simple client application which uses this library. - `MessageCard` - File: [basic](./examples/messagecard/basic/main.go) +#### Specify proxy server + +This is an example of a simple client application which uses this library to +route a generated message through a specified proxy server. + +- `Adaptive Card` + - File: [basic](./examples/adaptivecard/proxy/main.go) +- `MessageCard` + - File: [basic](./examples/messagecard/proxy/main.go) + #### User Mention These examples illustrates the use of one or more user mentions. This feature @@ -231,6 +243,17 @@ this action triggers opening a URL in a separate browser or application. - `MessageCard` - File: [actions](./examples/messagecard/actions/main.go) +#### Toggle visibility + +These examples illustrates using +[`ToggleVisibility`][adaptivecard-ref-actions] Actions to control the +visibility of various Elements of an `Adaptive Card` message. + +- File: [toggle-visibility-single-button](./examples/adaptivecard/toggle-visibility-single-button/main.go) +- File: [toggle-visibility-multiple-buttons](./examples/adaptivecard/toggle-visibility-multiple-buttons/main.go) +- File: [toggle-visibility-column-action](./examples/adaptivecard/toggle-visibility-column-action/main.go) +- File: [toggle-visibility-container-action](./examples/adaptivecard/toggle-visibility-container-action/main.go) + #### Disable webhook URL prefix validation This example disables the validation webhook URLs, including the validation of diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard.go b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard.go index dcabd19d..52e0febe 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard.go +++ b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard.go @@ -75,6 +75,7 @@ const ( // PotentialActionMaxSupported is the maximum number of actions allowed in a // MessageCardPotentialAction collection. +// // https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions // // Deprecated: use messagecard.PotentialActionMaxSupported instead. @@ -88,11 +89,12 @@ const PotentialActionMaxSupported = 4 var ErrPotentialActionsLimitReached = errors.New("potential actions collection limit reached") // MessageCardPotentialAction represents potential actions an user can do in a -// message card. See -// https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions -// for more information. +// message card. See [Legacy actionable message card reference > Actions] for +// more information. // // Deprecated: use messagecard.PotentialAction instead. +// +// [Legacy actionable message card reference > Actions]: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions type MessageCardPotentialAction struct { // Type of the potential action. Can be OpenUri, HttpPOST, ActionCard or // InvokeAddInCommand. diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/doc.go b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/doc.go index 2ef83e9f..b5bedb6f 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/doc.go +++ b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/doc.go @@ -13,7 +13,7 @@ See the provided examples in this repo, the Godoc generated documentation at https://pkg.go.dev/github.com/atc0005/go-teams-notify/v2 and the following resources for more information: -https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference -https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using + - https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference + - https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using */ package messagecard diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/format.go b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/format.go index 029435ba..24cd9cf8 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/format.go +++ b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/format.go @@ -36,10 +36,11 @@ const ( ) // Even though Microsoft Teams doesn't show the additional newlines, -// https://messagecardplayground.azurewebsites.net/ DOES show the results -// as a formatted code block. Including the newlines now is an attempt at -// "future proofing" the codeblock support in MessageCard values sent to -// Microsoft Teams. +// [MessageCard Playground] DOES show the results as a formatted code block. +// Including the newlines now is an attempt at "future proofing" the codeblock +// support in MessageCard values sent to Microsoft Teams. +// +// [MessageCard Playground]: https://messagecardplayground.azurewebsites.net/ const ( // msTeamsCodeBlockSubmissionPrefix is the prefix appended to text input diff --git a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/messagecard.go b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/messagecard.go index bce099ea..7a61243a 100644 --- a/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/messagecard.go +++ b/vendor/github.com/atc0005/go-teams-notify/v2/messagecard/messagecard.go @@ -49,6 +49,7 @@ const ( // PotentialActionMaxSupported is the maximum number of actions allowed in a // PotentialAction collection. +// // https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions const PotentialActionMaxSupported = 4 @@ -57,10 +58,11 @@ const PotentialActionMaxSupported = 4 // MessageCard or a Section. var ErrPotentialActionsLimitReached = errors.New("potential actions collection limit reached") -// PotentialAction represents potential actions an user can do in a -// message card. See -// https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions -// for more information. +// PotentialAction represents potential actions an user can do in a message +// card. See [Legacy actionable message card reference > Actions] for more +// information. +// +// [Legacy actionable message card reference > Actions]: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions type PotentialAction struct { // Type of the potential action. Can be OpenUri, HttpPOST, ActionCard or // InvokeAddInCommand. diff --git a/vendor/modules.txt b/vendor/modules.txt index 00809d9b..7a559597 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -19,7 +19,7 @@ github.com/apex/log/handlers/text ## explicit; go 1.19 github.com/atc0005/go-ezproxy github.com/atc0005/go-ezproxy/activefile -# github.com/atc0005/go-teams-notify/v2 v2.8.0 +# github.com/atc0005/go-teams-notify/v2 v2.9.0 ## explicit; go 1.14 github.com/atc0005/go-teams-notify/v2 github.com/atc0005/go-teams-notify/v2/messagecard