Skip to content

Add support for config to shorten URL for TMS #848

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

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

norkans7
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.25%. Comparing base (3ed6f95) to head (cef18fc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   70.25%   70.25%           
=======================================
  Files         114      114           
  Lines       13106    13109    +3     
=======================================
+ Hits         9207     9210    +3     
  Misses       3208     3208           
  Partials      691      691           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -348,6 +349,11 @@ func (h *handler) Send(ctx context.Context, msg courier.MsgOut, res *courier.Sen
// set our from, either as a messaging service or from our address
serviceSID := channel.StringConfigForKey(configMessagingServiceSID, "")
if serviceSID != "" {
linkShortening := channel.BoolConfigForKey(configLinkShortening, false)
if linkShortening {
form["ShortenUrls"] = []string{strconv.FormatBool(linkShortening)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could just use []string{"true"}

@rowanseymour rowanseymour merged commit 5f3c09d into main Mar 18, 2025
7 checks passed
@rowanseymour rowanseymour deleted the tms-short-urls branch March 18, 2025 15:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants