chore: Auto-create docs issue for PR
This commit is contained in:
parent
392c7c121e
commit
b0ca84dbc9
1 changed files with 2 additions and 4 deletions
6
.github/workflows/docs-issue.yml
vendored
6
.github/workflows/docs-issue.yml
vendored
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue