Skip to content

Commit

Permalink
Add the version to the slack notification for RC PRs (DataDog#31710)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret authored Dec 3, 2024
1 parent a4a88c6 commit 809bb8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,12 @@ def create_rc(ctx, major_versions="6,7", patch_version=False, upstream="origin",
# Step 4 - If slack workflow webhook is provided, send a slack message
if slack_webhook:
print(color_message("Sending slack notification", "bold"))
ctx.run(
f"curl -X POST -H 'Content-Type: application/json' --data '{{\"pr_url\":\"{pr_url}\"}}' {slack_webhook}"
)
payload = {
"pr_url": pr_url,
"version": str(new_highest_version),
}

ctx.run(f"curl -X POST -H 'Content-Type: application/json' --data '{json.dumps(payload)}' {slack_webhook}")


@task
Expand Down

0 comments on commit 809bb8e

Please sign in to comment.