Commit 0308f98
committed
Fix: don't use owner name as source_project_id for cross-repo MRs
sourceProjectIdentifier() was falling back to source.owner (a
username/group string) when source.repository was absent. This sent
a bogus --raw-field source_project_id=<username> to the GitLab API,
which expects a numeric project ID.
Only use source.repository (a proper path_with_namespace) for the
source_project_id parameter; when only an owner is known, omit it
entirely and let the endpoint default to the current project.1 parent bee3900 commit 0308f98
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments