From b0ca84dbc98da6daa0c678b17bebabe7f2b1b841 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Wed, 3 Apr 2024 00:06:46 +0200 Subject: [PATCH] chore: Auto-create docs issue for PR --- .github/workflows/docs-issue.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-issue.yml b/.github/workflows/docs-issue.yml index b4d934cad..17c6f7349 100644 --- a/.github/workflows/docs-issue.yml +++ b/.github/workflows/docs-issue.yml @@ -12,14 +12,12 @@ jobs: - name: Create Docs Issue uses: actions/github-script@v7 with: + github-token: ${{ secrets.GH_TOKEN }} script: | - const githubToken = '${{ secrets.GH_TOKEN }}'; - const octokit = github.getOctokit(githubToken); - const title = `Document: ${context.payload.pull_request.title}`; const body = `We need to document the new feature introduced in this PR: ${context.payload.pull_request.html_url}`; - await octokit.rest.issues.create({ + await github.rest.issues.create({ owner: 'evcc-io', repo: 'docs', title: title,