From f142c259bd06c78de15b6339daf65ddf772e7f53 Mon Sep 17 00:00:00 2001 From: Christopher Byrd Date: Thu, 18 Apr 2024 14:23:58 -0700 Subject: [PATCH] nit --- .github/workflows/check-base-branch.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check-base-branch.yml b/.github/workflows/check-base-branch.yml index ee0c9b0..29d3f00 100644 --- a/.github/workflows/check-base-branch.yml +++ b/.github/workflows/check-base-branch.yml @@ -20,6 +20,10 @@ jobs: CURRENT_BRANCH=$(echo "${{ github.ref }}" | sed 's|.*/||') TARGET_BRANCH="${{ github.event.pull_request.base.ref }}" + echo $CURRENT_BRANCH + echo $TARGET_BRANCH + + COMMON_ANCESTOR=$(git merge-base $CURRENT_BRANCH origin/$TARGET_BRANCH) COMMITS_BEHIND=$(git rev-list --count origin/main ^$COMMON_ANCESTOR)