Skip to content

Commit

Permalink
Fix type mismatch in script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordyjan committed Nov 10, 2023
1 parent b4f245b commit 8ba0ef8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/scripts/addToBackportingProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def getPrData(commitSha: String): (ID, String) =
|query prForCommit {
| repository(owner:"lampepfl", name:"dotty") {
| object(expression: $commitSha){
| __typename
| ... on Commit {
| associatedPullRequests(first: 1) {
| nodes {
Expand All @@ -40,7 +41,7 @@ def getPrData(commitSha: String): (ID, String) =
"DummyUser",
apiToken
)
val pr = res.repository.`object`.associatedPullRequests.nodes.head
val pr = res.repository.`object`.asCommit.get.associatedPullRequests.nodes.head
(ID(pr.id), pr.mergedAt)

def timestampItem(id: ID, date: String) =
Expand Down

0 comments on commit 8ba0ef8

Please sign in to comment.