Skip to content

Commit

Permalink
Only set pr_url if pr, for cleanliness
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Sep 20, 2023
1 parent 3549fa3 commit 9fef40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/slack-workflow-failed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
author: ( $run.head_commit.author.name ),
commit_url: "\( $run.head_repository.html_url )/commit/\( $run.head_commit.id )",
pr: $pr,
pr_url: "\( $run.head_repository.html_url )/pull/\( $pr )"
pr_url: ( if $pr then "\( $run.head_repository.html_url )/pull/\( $pr )" else null end )
}
' )
fi
Expand Down

0 comments on commit 9fef40b

Please sign in to comment.