fix: [code-788]: encode params with end marker in checks call

This commit is contained in:
calvin 2023-08-28 15:41:47 -06:00
parent a1948ff42d
commit 67db4f4e82

View File

@ -11,7 +11,7 @@ export function usePRChecksDecision({
pullRequestMetadata
}: Partial<Pick<GitInfoProps, 'repoMetadata' | 'pullRequestMetadata'>>) {
const { data, error, refetch } = useListStatusCheckResults({
repo_ref: encodeURIComponent(repoMetadata?.path as string),
repo_ref: `${repoMetadata?.path as string}/+`,
commit_sha: pullRequestMetadata?.source_sha as string,
lazy: !repoMetadata?.path || !pullRequestMetadata?.source_sha
})