Skip to content

Commit 9c7d549

Browse files
Simplify CLA gate status handling
1 parent d93b381 commit 9c7d549

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/cla-gate.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ jobs:
9898
return;
9999
}
100100
101-
await postStatus({
102-
sha: targetSha,
103-
state: status.state,
104-
description: status.description || undefined,
105-
targetUrl: status.target_url || undefined,
106-
});
101+
if (status.state === "success") {
102+
core.info(`license/cla is success for ${targetSha}`);
103+
return;
104+
}
105+
106+
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

Comments
 (0)