Skip to content

Commit 166ac92

Browse files
fix: ref should have pullreq instead of pull for gitness (#278)
1 parent 3b21a0f commit 166ac92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scm/driver/harness/pr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func convertPullRequest(src *pr) *scm.PullRequest {
182182
Email: src.Author.Email,
183183
},
184184
Fork: "fork",
185-
Ref: fmt.Sprintf("refs/pull/%d/head", src.Number),
185+
Ref: fmt.Sprintf("refs/pullreq/%d/head", src.Number),
186186
Closed: src.State == "closed",
187187
}
188188
}

scm/driver/harness/testdata/pr.json.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Title": "pull title",
44
"Body": "pull description",
55
"Sha": "",
6-
"Ref": "refs/pull/1/head",
6+
"Ref": "refs/pullreq/1/head",
77
"Source": "bla",
88
"Target": "main",
99
"Fork": "fork",

0 commit comments

Comments
 (0)