"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/porting/authors.t" between
perl-5.32.0-RC0.tar.xz and perl-5.32.0-RC1.tar.xz

About: Perl (Practical Extraction and Report Language) is a high-level, general-purpose, interpreted, dynamic programming language. Release candidate.

authors.t  (perl-5.32.0-RC0.tar.xz):authors.t  (perl-5.32.0-RC1.tar.xz)
skipping to change at line 28 skipping to change at line 28
my $revision_range = ''; # could use 'v5.22.0..' as default, no reason to rechec k all previous commits... my $revision_range = ''; # could use 'v5.22.0..' as default, no reason to rechec k all previous commits...
if ( $ENV{TRAVIS} && defined $ENV{TRAVIS_COMMIT_RANGE} ) { if ( $ENV{TRAVIS} && defined $ENV{TRAVIS_COMMIT_RANGE} ) {
# travisci is adding a merge commit when smoking a pull request # travisci is adding a merge commit when smoking a pull request
# unfortunately it's going to use the default GitHub email from the author # unfortunately it's going to use the default GitHub email from the author
# which can differ from the one the author wants to use as part of the pull request # which can differ from the one the author wants to use as part of the pull request
# let's simply use the TRAVIS_COMMIT_RANGE which list the commits w e want to check # let's simply use the TRAVIS_COMMIT_RANGE which list the commits w e want to check
# all the more a pull request should not be impacted by blead being incorrect # all the more a pull request should not be impacted by blead being incorrect
$revision_range = $ENV{TRAVIS_COMMIT_RANGE}; $revision_range = $ENV{TRAVIS_COMMIT_RANGE};
} }
elsif( $ENV{GITHUB_ACTIONS} && length $ENV{GITHUB_BASE_REF} ) { elsif( $ENV{GITHUB_ACTIONS} && length $ENV{GITHUB_BASE_REF} ) {
# Same as above, except for Github Actions # Same as above, except for GitHub Actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-ac tions/using-environment-variables # https://help.github.com/en/actions/automating-your-workflow-with-github-ac tions/using-environment-variables
# This hardcoded origin/ isn't great, but I'm not sure how to better fix it # This hardcoded origin/ isn't great, but I'm not sure how to better fix it
my $common_ancestor = `git merge-base "origin/$ENV{GITHUB_BASE_REF}" "HEAD~2 " 2>/dev/null`; my $common_ancestor = `git merge-base "origin/$ENV{GITHUB_BASE_REF}" "HEAD~2 " 2>/dev/null`;
chomp($common_ancestor); chomp($common_ancestor);
$revision_range = "${common_ancestor}..HEAD" if length $common_ancestor $revision_range = "${common_ancestor}..HEAD" if length $common_ancestor
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)