Commit c4dfc59
authored
fix: use PR head branch for rules-ref instead of merge ref (#168)
For pull_request events, CodeBuild runs in detached HEAD so
git symbolic-ref fails. The fallback was GH_REF_NAME which
resolves to '155/merge' — a virtual GitHub ref that cannot
be cloned as a branch. Pass github.head_ref into the buildspec
as GH_HEAD_REF and prefer it in the fallback chain so the
evaluator clones the actual PR source branch.1 parent 2e7c277 commit c4dfc59
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments