Support updating PR branches

This commit is contained in:
Justin Spahr-Summers
2025-01-10 11:53:23 +00:00
parent f42cf77d57
commit ac7592f71a
3 changed files with 55 additions and 0 deletions

View File

@@ -812,4 +812,13 @@ export type GetPullRequestFiles = z.infer<typeof GetPullRequestFilesSchema>;
export type PullRequestFile = z.infer<typeof PullRequestFileSchema>;
export type GetPullRequestStatus = z.infer<typeof GetPullRequestStatusSchema>;
export type StatusCheck = z.infer<typeof StatusCheckSchema>;
// Schema for updating a pull request branch
export const UpdatePullRequestBranchSchema = z.object({
owner: z.string().describe("Repository owner (username or organization)"),
repo: z.string().describe("Repository name"),
pull_number: z.number().describe("Pull request number"),
expected_head_sha: z.string().optional().describe("The expected SHA of the pull request's HEAD ref")
});
export type CombinedStatus = z.infer<typeof CombinedStatusSchema>;
export type UpdatePullRequestBranch = z.infer<typeof UpdatePullRequestBranchSchema>;