Skip to content

Create graphviz.yml #952

Create graphviz.yml

Create graphviz.yml #952

name: update-pull-request-body
on:
pull_request:
permissions:
pull-requests: write
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: update pull request body
uses: actions/github-script@v6
env:
pr_number: 316
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
debug: true
script: |
contentToAdd = "new"
console.log(contentToAdd);
const pull = await github.rest.issues.get({
issue_number: process.env.pr_number,
owner: context.repo.owner,
repo: context.repo.repo,
});
console.log(pull.data.body);
github.rest.issues.update({
issue_number: process.env.pr_number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${pull.data.body}\n- #${context.issue.number}`
});