We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9be15e commit cab8b47Copy full SHA for cab8b47
scripts/test-commit-messages.js
@@ -36,8 +36,12 @@ execSync('git fetch origin');
36
// Travis doesn't have master when running jobs on other branches (minor/patch/etc).
37
execSync('git fetch origin master:master');
38
39
+// Get current branch.
40
+const currentBranch = process.env.TRAVIS_BRANCH || execSync('git symbolic-ref --short HEAD', {
41
+ encoding: 'utf-8'
42
+});
43
-const output = execSync('git log master.. --reverse --format="%H %s" --no-merges', {
44
+const output = execSync('git log ' + currentBranch + '..HEAD --reverse --format="%H %s" --no-merges', {
45
encoding: 'utf-8'
46
});
47
0 commit comments