Add debug logging

hackweek-2024-team-14
Chris Hamper 2024-05-30 11:35:22 -04:00
parent c95e112c9a
commit c065f5e520
No known key found for this signature in database
GPG Key ID: E3C5D34D0901FF9F
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,8 @@ export default function PullRequest() {
retryOnErrorFunc
} = useGetPullRequestInfo()
console.debug('overallStatus:', pullReqChecksDecision?.overallStatus)
const gitUrl = repoMetadata?.git_url
const prNumber = pullReqMetadata?.number
const { data } = useFrontendExecutionForRepo(
@ -99,7 +101,9 @@ export default function PullRequest() {
},
{ enabled: data?.executionId !== undefined }
)
console.debug('countData:', countData)
const counts = countData && data?.executionId !== undefined && countData[data?.executionId] ? countData[data?.executionId] : undefined
console.debug('counts:', counts)
const issueCount = counts ? counts.critical + counts.high + counts.medium + counts.low : undefined
const onAddDescriptionClick = useCallback(() => {