Commit a248ec7
committed
Fix branch name for pull_request events
For pull_request events, github.ref_name resolves to the
merge ref (e.g. "21/merge") instead of a real branch name.
This caused sphinx-versioned to fail with:
error: pathspec '21/merge' did not match any file(s)
Use github.base_ref (the PR target branch) for pull_request
events, falling back to github.ref_name for push events.1 parent 217d12b commit a248ec7
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments