Repository navigation
Commit 427ed27
committed
fix: guard append-only base checks against empty string from workflow_dispatch
When workflow_dispatch falls back to full CI, github.event.pull_request.base.sha
and github.event.before are both undefined, so the YAML ${{ ... || ... }}
expression resolves to an empty string. The env vars are set to '' which passes
the !== undefined guard, causing git cat-file to fail on the empty SHA.
Add an explicit empty-string check so the append-only compatibility gates
correctly skip when no base commit is available.1 parent 6f6ccc4 commit 427ed27
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments