Repository navigation
[datadog_on_call_team_routing_rules] Add reroute_to_team action - #4373
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intoOct 13, 2026
Conversation
Support the On-Call `reroute_to_team` routing rule action, which reroutes a page to another team's routing rules. Bump datadog-api-client-go to include RoutingRuleRerouteToTeamAction. Validation mirrors the backend: destination_team_id is required, at most one reroute per rule, and a reroute can only be combined with send_slack_message or send_teams_message actions.
…ting-action-oncall-routingrules # Conflicts: # go.mod # go.sum
Bnjis
marked this pull request as ready for review
October 12, 2026 08:25
bndbsh
approved these changes
Oct 13, 2026
fpighi
approved these changes
Oct 13, 2026
Contributor
Author
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status in_progress |
gh-worker-dd-mergequeue-cf854d
Bot
deleted the
Bnjis/support-rerouting-action-oncall-routingrules
branch
October 13, 2026 08:51
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds support for the
reroute_to_teamaction indatadog_on_call_team_routing_rules. This action reroutes a matching page to another team's routing rules.Why
The On-Call routing rules API now accepts a
reroute_to_teamaction ({"type": "reroute_to_team", "destination_team_id": "<team uuid>"}), but it couldn't be managed from Terraform.Changes
datadog-api-client-goto a commit that includesRoutingRuleRerouteToTeamAction.action.reroute_to_teamblock with adestination_team_idattribute, validated as a UUID at plan time. The API returns the action on read, so plan, apply and import round-trip it.Validate()applies the API's constraints at apply time, before the request is sent, so they fail early with a clear error:destination_team_idis required.reroute_to_teamaction per rule.send_slack_messageorsend_teams_message. Combining it withescalation_policy(attribute or action) ortrigger_workflow_automationis rejected.Testing
TestAccOnCallTeamRoutingRulesRerouteToTeam: creates three teams and reroutes two rules to them, swaps the destinations (update), then runs anImportStateVerifystep. A cassette was recorded.TestAccOnCallTeamRoutingRulesRerouteToTeamValidation: covers the validation errors. The cassette has no interactions.TestAccOnCallTeamRoutingRules*pass in replay mode, including the existing tests with the bumped client.make test,make fmtcheck,make vetandmake check-docspass.