Skip to content

Commit

Permalink
add github-script
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Jan 17, 2024
1 parent e95477f commit 96621d9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/update-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@ jobs:
'X-GitHub-Api-Version': '2022-11-28'
}
})
console.log(prs)
console.log(prs);
for (const pr of prs.data) {
await github.request('PATCH /repos/{owner}/{repo}/pulls/{pull_number}', {
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr.number,
base: 'develop',
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
})
break;
}

0 comments on commit 96621d9

Please sign in to comment.