Skip to content

Commit b6b53b5

Browse files
authored
Fix type mismatch in script (#18896)
2 parents 8cd6ae2 + 8ba0ef8 commit b6b53b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/scripts/addToBackportingProject.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def getPrData(commitSha: String): (ID, String) =
2323
|query prForCommit {
2424
| repository(owner:"lampepfl", name:"dotty") {
2525
| object(expression: $commitSha){
26+
| __typename
2627
| ... on Commit {
2728
| associatedPullRequests(first: 1) {
2829
| nodes {
@@ -40,7 +41,7 @@ def getPrData(commitSha: String): (ID, String) =
4041
"DummyUser",
4142
apiToken
4243
)
43-
val pr = res.repository.`object`.associatedPullRequests.nodes.head
44+
val pr = res.repository.`object`.asCommit.get.associatedPullRequests.nodes.head
4445
(ID(pr.id), pr.mergedAt)
4546

4647
def timestampItem(id: ID, date: String) =

0 commit comments

Comments
 (0)