Skip to content

Commit

Permalink
debug git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Feb 13, 2024
1 parent e65b9e2 commit 124eabe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/commit_message_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
commit_static_permit_list="(^Merge pull request \#)|(^Merge branch)|(^Revert \")"
# Initialize invalidCommit as false, will be set to true by any invalid commits
invalidCommit=false
CURRENT_BRANCH=$(git branch | grep ^\* | cut -d "*" -f 2 | cut -d " " -f 2)
# Find hash of commit most common ancestor, e.g. where branch began
echo $BASE_BRANCH
echo $CURRENT_BRANCH
BRANCH_MERGE_BASE=$(git merge-base ${BASE_BRANCH} ${CURRENT_BRANCH})
# Find all commits since common ancestor
BRANCH_COMMITS=$(git rev-list ${BRANCH_MERGE_BASE}..HEAD)
Expand Down

0 comments on commit 124eabe

Please sign in to comment.