-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve intermittent user mention failure
OVERVIEW Resolve intermittent user mention submission failure by swapping out the `botapi` implementation of user mention support for the new `adaptivecard` package. This new package generates payloads with user mentions that fully comply with published Microsoft Teams requirements. Temporary restrictions applied in the last release between user mentions and the URL "buttons", title flags have been removed. This app now exclusively uses the `adaptivecard` package. Unfortunately, the `Adaptive Card` format does not (at the time of this writing) support message color theming (border trim color). This flag now is a NOOP; while using this flag does not produce an error, it no longer does anything. CHANGES - replace `botapi` and `messagecard` packages with `adaptivecard` package - exclusively use `adaptivecard` package to generate Microsoft Teams messages - add missing checks for use of `--silent` flag before emitting warning/error output - resolve intermittent user mention submission failure - the `--target-url` flag no longer enforces a set limit of 4 URL "buttons" - documentation - the current Microsoft Teams message size limit of *approximately* 28 KB is explicitly noted - references to the `references to the `--color` flag have been removed (aside from the explicit NOOP behavior in the config flag table) - mention that the generated JSON payload is now emitted in verbose ouput (exposed via the `--verbose` flag) REFERENCES - refs GH-225 - refs atc0005/go-teams-notify#162
- Loading branch information
Showing
21 changed files
with
3,127 additions
and
1,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
github.com/atc0005/go-teams-notify/v2 v2.7.0-alpha.1 h1:sMy2AYzVH9u8jNI/LCgsrj8+hL+2qPhLoevjP9EpjTE= | ||
github.com/atc0005/go-teams-notify/v2 v2.7.0-alpha.1/go.mod h1:xo6GejLDHn3tWBA181F8LrllIL0xC1uRsRxq7YNXaaY= | ||
github.com/atc0005/go-teams-notify/v2 v2.7.0-alpha.2 h1:adF/nirZT6nOv9yRViUNc1MDupJlyxk22d3skZOGcgw= | ||
github.com/atc0005/go-teams-notify/v2 v2.7.0-alpha.2/go.mod h1:lbsBxbUisqmvoAncOmM8kupIVTEvGuSenZiaATwU/KU= | ||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= | ||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= |
Oops, something went wrong.