Skip to content

Commit

Permalink
fixes #13: Try to see if we can get current branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsqd committed Jul 31, 2024
1 parent 8c2e3e0 commit 73dc19c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ jobs:
- name: Validate pull requests
if: github.event_name == 'pull_request'
run: |
echo "Current branch from github: ${{ github.head_ref }}"
vendor/bin/robo validate:commit-messages --target-branch="${{ github.base_ref }}"
2 changes: 2 additions & 0 deletions src/Robo/Plugin/Commands/ValidateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ public function validateCommitMessages(

return new ResultData(ResultData::EXITCODE_ERROR);
}
var_dump('CURRENT BRANCH:');
var_dump($this->getGitBranch());
$git_command = "git log $git_remote/$target_branch...HEAD --pretty=format:%s --no-merges";
exec($git_command, $output, $result_code);
if ($result_code !== 0) {
Expand Down

0 comments on commit 73dc19c

Please sign in to comment.