Commit dd51687
committed
Fix: Extract owner/repo from URL instead of head repository fields
The script was extracting owner and repo from headRepositoryOwner and
headRepository, which refer to the fork (source) repository. For fork PRs,
this caused all API calls to target the wrong repository since PRs live on
the base (target) repository.
Fixed by parsing owner and repo from the URL field, which always points to
the base repository where the PR actually exists.1 parent 15971ba commit dd51687
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments