Skip to content

Commit 3b52371

Browse files
Copilotyanle66
andauthored
Fix SDK Validation Status handling for reopened PR events
Co-authored-by: yanle66 <227239690+yanle66@users.noreply.github.com>
1 parent 0d254e1 commit 3b52371

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/src/spec-gen-sdk-status.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ import { extractInputs } from "./context.js";
1010
export default async function setSpecGenSdkStatus({ github, context, core }) {
1111
const inputs = await extractInputs(github, context, core);
1212
const head_sha = inputs.head_sha;
13-
const details_url = inputs.details_url;
1413
const issue_number = inputs.issue_number;
15-
if (!details_url || !head_sha) {
16-
throw new Error(
17-
`Required inputs are not valid: details_url:${details_url}, head_sha:${head_sha}`,
18-
);
14+
if (!head_sha) {
15+
throw new Error(`Required input is not valid: head_sha:${head_sha}`);
1916
}
2017
const owner = inputs.owner;
2118
const repo = inputs.repo;

0 commit comments

Comments
 (0)