Skip to content

Commit

Permalink
fix: reason for check status (wundergraph#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnithin authored Sep 23, 2024
1 parent 7f95a7f commit 59702b6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ const CheckDetails = ({

const reason = !data.check.isComposable
? "Composition errors were found"
: data.check.isBreaking && data.check?.clientTrafficCheckSkipped
? "Breaking changes were detected"
: data.check.isBreaking && data.check.hasClientTraffic
? "Operations were affected by breaking changes"
: data.check.isBreaking && !data.check.hasClientTraffic
Expand Down

0 comments on commit 59702b6

Please sign in to comment.