mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
chore: remove debug logs from issue validation
Remove console.log and logger.debug calls that were added during development. Keep essential logger.info and logger.error calls. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ export function IssueDetailPanel({
|
||||
|
||||
// Helper to get validation options with comments and linked PRs
|
||||
const getValidationOptions = (forceRevalidate = false) => {
|
||||
const options = {
|
||||
return {
|
||||
forceRevalidate,
|
||||
comments: includeCommentsInAnalysis && comments.length > 0 ? comments : undefined,
|
||||
linkedPRs: issue.linkedPRs?.map((pr) => ({
|
||||
@@ -63,14 +63,6 @@ export function IssueDetailPanel({
|
||||
state: pr.state,
|
||||
})),
|
||||
};
|
||||
console.log('[IssueDetailPanel] getValidationOptions:', {
|
||||
includeCommentsInAnalysis,
|
||||
commentsCount: comments.length,
|
||||
linkedPRsCount: issue.linkedPRs?.length ?? 0,
|
||||
willIncludeComments: !!options.comments,
|
||||
willIncludeLinkedPRs: !!options.linkedPRs,
|
||||
});
|
||||
return options;
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -216,14 +216,6 @@ export function useIssueValidation({
|
||||
} = {}
|
||||
) => {
|
||||
const { forceRevalidate = false, comments, linkedPRs } = options;
|
||||
console.log('[useIssueValidation] handleValidateIssue called with:', {
|
||||
issueNumber: issue.number,
|
||||
forceRevalidate,
|
||||
commentsProvided: !!comments,
|
||||
commentsCount: comments?.length ?? 0,
|
||||
linkedPRsProvided: !!linkedPRs,
|
||||
linkedPRsCount: linkedPRs?.length ?? 0,
|
||||
});
|
||||
|
||||
if (!currentProject?.path) {
|
||||
toast.error('No project selected');
|
||||
@@ -261,12 +253,6 @@ export function useIssueValidation({
|
||||
comments, // Include comments if provided
|
||||
linkedPRs, // Include linked PRs if provided
|
||||
};
|
||||
console.log('[useIssueValidation] Sending validation request:', {
|
||||
hasComments: !!validationInput.comments,
|
||||
commentsCount: validationInput.comments?.length ?? 0,
|
||||
hasLinkedPRs: !!validationInput.linkedPRs,
|
||||
linkedPRsCount: validationInput.linkedPRs?.length ?? 0,
|
||||
});
|
||||
const result = await api.github.validateIssue(
|
||||
currentProject.path,
|
||||
validationInput,
|
||||
|
||||
Reference in New Issue
Block a user