mirror of
https://github.com/harness/drone.git
synced 2025-05-10 22:21:22 +08:00
fix: [code-788]: encode params with end marker in checks call
This commit is contained in:
parent
a1948ff42d
commit
67db4f4e82
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user