Skip to content

Commit

Permalink
Merge branch 'main' into staging/br_me_cnpj
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 25, 2023
2 parents 7385420 + 3e3d954 commit 1a73479
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipelines/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,13 @@ def notify_discord_on_failure(
"""
url = get_vault_secret(secret_path)["data"]["url"]
flow_run_id = prefect.context.get("flow_run_id")
flow_project = prefect.context.get("project", {}).get("name")
code_owners = code_owners or constants.DEFAULT_CODE_OWNERS.value
code_owner_dict = constants.OWNERS_DISCORD_MENTIONS.value

if flow_project != "main":
return

at_code_owners = []
for code_owner in code_owners:
code_owner_id = code_owner_dict[code_owner]["user_id"]
Expand Down

0 comments on commit 1a73479

Please sign in to comment.