Skip to content

Commit

Permalink
Update pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nelitow committed Dec 24, 2024
1 parent e8dabcd commit 59372f4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,26 @@ jobs:

- name: Check Changesets
run: |
# Get the base commit (where the PR branched from main)
echo "Current branch:"
git branch --show-current
echo "\nRemote branches:"
git branch -r
echo "\nTrying to fetch main:"
git fetch origin main
echo "\nChecking if main exists:"
git rev-parse --verify origin/main
echo "\nGetting merge base:"
BASE_COMMIT=$(git merge-base origin/main HEAD)
echo "Base commit: $BASE_COMMIT"
# Run changeset check from that commit
echo "\nCurrent HEAD:"
git rev-parse HEAD
echo "\nRunning changeset check:"
pnpm changeset status --since $BASE_COMMIT
audit:
Expand Down

0 comments on commit 59372f4

Please sign in to comment.