π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use current PR metadata for Codex reviews
Manav Rathia98c103a4243
diff --git a/.github/workflows/pr-approval.yml b/.github/workflows/pr-approval.ymlindex 8e97903c49..b50a28656e 100644--- a/.github/workflows/pr-approval.yml+++ b/.github/workflows/pr-approval.yml@@ -151,6 +151,15 @@ jobs:}return true;+ - name: Check out the PR head+ if: steps.quota.outputs.result == 'true'+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ ref: ${{ github.event.pull_request.head.sha }}+ persist-credentials: false+ path: review+ allow-unsafe-pr-checkout: true+- name: Prepare review contextif: steps.quota.outputs.result == 'true'id: review-context@@ -159,13 +168,17 @@ jobs:script: |const { mkdir, writeFile } = require("node:fs/promises");const { join } = require("node:path");- const { base, head, title, body } = context.payload.pull_request;+ const { base, head } = context.payload.pull_request;const { data } = await github.rest.repos.compareCommitsWithBasehead({...context.repo,basehead: `${base.sha}...${head.sha}`,per_page: 1,});core.setOutput("merge-base", data.merge_base_commit.sha);+ const { data: { title, body } } = await github.rest.pulls.get({+ ...context.repo,+ pull_number: context.payload.pull_request.number,+ });await writeFile(join(process.env.RUNNER_TEMP, "pr-metadata.json"),JSON.stringify({ title, body }, null, 2),@@ -184,15 +197,6 @@ jobs:].join("\n"),);- - name: Check out the PR head- if: steps.quota.outputs.result == 'true'- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- with:- ref: ${{ github.event.pull_request.head.sha }}- persist-credentials: false- path: review- allow-unsafe-pr-checkout: true-- name: Fetch the merge baseif: steps.quota.outputs.result == 'true'working-directory: review