Skip to content

Commit 16f6347

Browse files
eddiemooreRA80533
andauthored
Update src/ci_providers/provider_codebuild.js
Co-authored-by: RA80533 <[email protected]>
1 parent 34bc976 commit 16f6347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci_providers/provider_codebuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function _getPR(inputs) {
3030
const { args, envs } = inputs
3131
return (
3232
args.pr ||
33-
(envs.CODEBUILD_WEBHOOK_HEAD_REF &&
33+
(envs.CODEBUILD_SOURCE_VERSION &&
3434
envs.CODEBUILD_SOURCE_VERSION.startsWith('pr/')
3535
? envs.CODEBUILD_SOURCE_VERSION.replace(/^pr\//, '')
3636
: '')

0 commit comments

Comments
 (0)