Skip to content

Conversation

@mikeharder
Copy link
Member

@mikeharder mikeharder commented Nov 14, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Protected Files has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

@mikeharder mikeharder requested a review from raych1 November 14, 2025 21:23
@@ -1,7 +1,38 @@
/* v8 ignore start */
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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);
Copy link
Member Author

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.

@mikeharder mikeharder marked this pull request as draft November 14, 2025 22:06
@mikeharder mikeharder marked this pull request as ready for review November 18, 2025 18:16
@mikeharder mikeharder merged commit 4a98ab7 into Azure:main Nov 18, 2025
69 of 72 checks passed
@mikeharder mikeharder deleted the spec-gen-sdk-artifact-info branch November 18, 2025 18:28
@mikeharder mikeharder self-assigned this Nov 18, 2025
@mikeharder mikeharder moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🍔🌭 Nov 18, 2025
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🍔🌭 Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants