Skip to content

Commit 910e7f2

Browse files
Fix use of travis environment variables, to properly detect pull requests
1 parent 454a203 commit 910e7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ skip = ^Moose::Meta::TypeConstraint::Union$
270270
[Test::ChangesHasContent]
271271
[Substitute]
272272
file = xt/release/changes_has_content.t
273-
code = s{^(note 'Checking Changes')}{my \$branch_name = \$ENV\{TRAVIS_BRANCH\};\nchomp\(\$branch_name = \`git rev-parse --abbrev-ref HEAD\`\) if not \$branch_name;\nlocal \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\n$1}
273+
code = s{^(note 'Checking Changes')}{if \(\$ENV\{TRAVIS_PULL_REQUEST\} eq 'false'\) \{\n chomp\(my \$branch_name = \(\$ENV\{TRAVIS_BRANCH\} || \`git rev-parse --abbrev-ref HEAD\`\)\);\n \$TODO = 'Changes need not have content for this release yet if this is only the master branch'\n if \(\$branch_name \|\| ''\) eq 'master';\n\}\n\n$1}
274274
275275
;[CheckPrereqsIndexed]
276276

0 commit comments

Comments
 (0)