Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/jira-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ jobs:

- name: Prep
run: |
# Checkout branch
git checkout -q ${{ github.event.pull_request.head.ref }}

# Set variables
BASE_BRANCH=${{ github.event.pull_request.base.ref }}

# Write BASE_BRANCH to GITHUB_ENV so commit checker can use
echo "BASE_BRANCH=$BASE_BRANCH" | tee -a $GITHUB_ENV
HEAD_REPO=${{ github.event.pull_request.head.repo.clone_url }}
HEAD_REF=${{ github.event.pull_request.head.ref }}

git fetch --no-tags "$HEAD_REPO" "$HEAD_REF":pr_branch
echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
- name: Jira Commit Checker
id: jira_commit_checker
uses: couchbaselabs/ActionJiraCommitValidate@master
Expand Down
Loading