Skip to content

Commit

Permalink
Use github token instead of personal one (#18797)
Browse files Browse the repository at this point in the history
[Next only]
  • Loading branch information
Kordyjan committed Oct 30, 2023
2 parents 10a2b83 + bb26e75 commit 5288dff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lts-backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
- uses: VirtusLab/scala-cli-setup@v1.0.5
- run: scala-cli ./project/scripts/addToBackportingProject.scala -- ${{ github.event.pull_request.number }}
env:
GRAPHQL_API_TOKEN: ${{ secrets.GRAPHQL_API_TOKEN }}
GRAPHQL_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

8 changes: 4 additions & 4 deletions project/scripts/addToBackportingProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def getPrData(number: Int): (ID, String) =
|}
""".send(
uri"https://api.github.com/graphql",
"Kordyjan",
"DummyUser",
apiToken
)
(ID(res.repository.pullRequest.id), res.repository.pullRequest.mergedAt)
Expand All @@ -51,7 +51,7 @@ def timestampItem(id: ID, date: String) =
|}
""".send(
uri"https://api.github.com/graphql",
"Kordyjan",
"DummyUser",
apiToken
)

Expand All @@ -69,7 +69,7 @@ def addItem(id: ID) =
|}
""".send(
uri"https://api.github.com/graphql",
"Kordyjan",
"DummyUser",
apiToken
)
ID(res.addProjectV2ItemById.item.id)
ID(res.addProjectV2ItemById.item.id)

0 comments on commit 5288dff

Please sign in to comment.