Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/preview-bazel-docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
steps:
- uses: actions/checkout@v5
- uses: actions/github-script@v8
id: find-new-prs
with:
script: |
const prs = await github.rest.pulls.list({
const { data: prs } = await github.rest.pulls.list({
owner: 'bazelbuild',
repo: 'bazel',
since: new Date(Date.now() - 20 * 60 * 1000).toISOString(),
});


core.setOutput("pull_requests", JSON.stringify(prs.map(pr => ({
number: pr.number,
head_sha: pr.head.sha,
}))));
# TODO: run another step for each output.
# it just calls the gh command to make a new branch on our repo that points the upstream git submodule to the PR's HEAD commit
# and then triggers the run-codegen workflow on that new branch to generate the docs.
- run: echo ${{ steps.find-new-prs.outputs.pull_requests }}
2 changes: 1 addition & 1 deletion upstream
Loading