Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use github token instead of personal one #18797

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
- 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)
Loading