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 1d99472 commit 339ad42Copy full SHA for 339ad42
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 PR target branch, default to master for running locally.
40
+const currentBranch = process.env.TRAVIS_BRANCH
41
+ || process.env.APPVEYOR_REPO_BRANCH
42
+ || 'master';
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