fix: update integration test to use createOctokit binding

This commit is contained in:
Salman Chishti 2026-04-08 21:41:37 +00:00 committed by GitHub
parent f9d72d3f45
commit 7ece71c49e

View file

@ -181,19 +181,19 @@ jobs:
echo $'\u2705 Test passed' | tee -a $GITHUB_STEP_SUMMARY echo $'\u2705 Test passed' | tee -a $GITHUB_STEP_SUMMARY
test-get-octokit: test-get-octokit:
name: 'Integration test: getOctokit with token' name: 'Integration test: createOctokit with token'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies - uses: ./.github/actions/install-dependencies
- id: secondary-client - id: secondary-client
name: Create a second client with getOctokit name: Create a second client with createOctokit
uses: ./ uses: ./
env: env:
APP_TOKEN: ${{ github.token }} APP_TOKEN: ${{ github.token }}
with: with:
script: | script: |
const appOctokit = getOctokit(process.env.APP_TOKEN) const appOctokit = createOctokit(process.env.APP_TOKEN)
const {data} = await appOctokit.rest.repos.get({ const {data} = await appOctokit.rest.repos.get({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo repo: context.repo.repo