From 98570f465908ef0dd8d92aef669131e7440de29b Mon Sep 17 00:00:00 2001 From: peregrinno Date: Sat, 19 Oct 2024 12:23:50 -0300 Subject: [PATCH] energia positiva --- .github/workflows/daily-random-commit.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/daily-random-commit.yml b/.github/workflows/daily-random-commit.yml index d98c011..8d60f2b 100644 --- a/.github/workflows/daily-random-commit.yml +++ b/.github/workflows/daily-random-commit.yml @@ -89,7 +89,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const branchName = process.env.BRANCH_NAME; - const { data: pr } = await github.pulls.create({ + const pr = await github.rest.pulls.create({ owner: context.repo.owner, repo: context.repo.repo, head: branchName, @@ -97,7 +97,7 @@ jobs: title: `Adicionando commits automáticos via branch ${branchName}`, body: 'Este pull request contém commits automáticos gerados pelo script.', }); - console.log(`Pull Request criado: ${pr.html_url}`); + console.log(`Pull Request criado: ${pr.data.html_url}`); - name: Merge Pull Request uses: actions/github-script@v6 @@ -118,4 +118,3 @@ jobs: pull_number: pr.number, merge_method: 'merge', }); - }