-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[spec-gen-sdk-runner] Move SpecGenSdkArtifactInfo to .github/shared #38816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
Important checks have failed. As of today they are not blocking this PR, but in near future they may. Addressing the following failures is highly recommended:
Comment generated by summarize-checks workflow run. |
| @@ -1,7 +1,38 @@ | |||
| /* v8 ignore start */ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added test coverage, so we can remove ignore
| ]); | ||
| /** | ||
| * @typedef {'azure-sdk-for-go' | 'azure-sdk-for-java' | 'azure-sdk-for-js' | 'azure-sdk-for-net' | 'azure-sdk-for-python'} SdkName | ||
| * @typedef {import("zod").infer<typeof SdkNameSchema>} SdkName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type SdkName is unchanged, but now has a schema
| */ | ||
| const APIViewRequestDataSchema = z.object({ packageName: z.string(), filePath: z.string() }); | ||
| /** | ||
| * @typedef {import("zod").infer<typeof APIViewRequestDataSchema>} APIViewRequestData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type APIViewRequestData should be the same as the copy removed from eng/tools/spec-gen-sdk-runner/src/types.ts
| apiViewRequestData: z.array(APIViewRequestDataSchema), | ||
| }); | ||
| /** | ||
| * @typedef {import("zod").infer<typeof SpecGenSdkArtifactInfoSchema>} SpecGenSdkArtifactInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type SpecGenSdkArtifactInfo should be the same as the copy removed from eng/tools/spec-gen-sdk-runner/src/types.ts
| head_sha = specGenSdkArtifactInfo.headSha; | ||
|
|
||
| issue_number = parseInt(specGenSdkArtifactInfo.prNumber, 10); | ||
| issue_number = parseInt(specGenSdkArtifactInfo.prNumber ?? "", 10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseInt() only accepts a string, not undefined. But parseInt("") returns NaN anyway, so it's a good replacement.
To Do