We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93b381 commit 9c7d549Copy full SHA for 9c7d549
1 file changed
.github/workflows/cla-gate.yml
@@ -98,9 +98,12 @@ jobs:
98
return;
99
}
100
101
- await postStatus({
102
- sha: targetSha,
103
- state: status.state,
104
- description: status.description || undefined,
105
- targetUrl: status.target_url || undefined,
106
- });
+ if (status.state === "success") {
+ core.info(`license/cla is success for ${targetSha}`);
+ return;
+ }
+
+ const state = status.state || "missing";
107
+ const description = status.description || "license/cla status is missing";
108
+ const targetUrl = status.target_url ? ` (${status.target_url})` : "";
109
+ core.setFailed(`license/cla is ${state}: ${description}${targetUrl}`);
0 commit comments