fix(ci): pull in the upstream base repo branch for PRs

This commit is contained in:
Gabe Kangas
2026-01-02 19:54:17 -08:00
parent a278c3bb0a
commit ee3a0d486f
6 changed files with 52 additions and 3 deletions
+7
View File
@@ -30,6 +30,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Fetch base branch for comparison
if: github.event_name == 'pull_request'
run: |
git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6