This commit is contained in:
David Blass
2025-10-08 16:21:10 -04:00
parent 87d32763e9
commit f0e339f5c2
2 changed files with 357 additions and 5 deletions
+1 -5
View File
@@ -35,11 +35,7 @@ server.tool(
},
async ({ issueNumber, body }) => {
try {
// Validate input using arktype
const validation = Comment({ issueNumber, body });
if (validation instanceof type.errors) {
throw new Error(`Invalid input: ${validation.summary}`);
}
Comment.assert({ issueNumber, body });
const githubInstallationToken = process.env.GITHUB_INSTALLATION_TOKEN;
if (!githubInstallationToken) {