Skip to content

chore(deps): update dependency awscli to v1.29.52 #883

chore(deps): update dependency awscli to v1.29.52

chore(deps): update dependency awscli to v1.29.52 #883

name: update-pull-request-body
on:
pull_request:
permissions:
pull-requests: write
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 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}`
});