summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-08-18 21:55:57 +0200
committerYves Orton <demerphq@gmail.com>2022-08-21 12:09:05 +0200
commitd2c7c9c567972f139356a367641b3336a5ead818 (patch)
treea33c5983e255ea63590f13d48407c6285a080b14 /.github
parent39ae7d026481fc04a4249205e9390d8553a02b49 (diff)
downloadperl-d2c7c9c567972f139356a367641b3336a5ead818.tar.gz
testsuite.yml - fix and rename "authors" CI workflow to "authors_involved_debug"
The existing name is confusing to me, especially when the workflow gets skipped so change the name to something more intuitive. We also change it to respect .mailmap by using %aN and %aE instead of %an and %ae. We also change it to use ".." and "..." in the git log statement, and use `sort | uniq -c` instead of `sort -u`, it is helpful to see counts. We also show the resolved begin and end commits.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/testsuite.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml
index a089af3c7d..f0a40fb159 100644
--- a/.github/workflows/testsuite.yml
+++ b/.github/workflows/testsuite.yml
@@ -24,7 +24,7 @@ jobs:
# \__ \ ' \/ _ \ / / -_) | || ' \| _/ _ \ '_| ' \/ _` | _| / _ \ ' \(_-<
# |___/_|_|_\___/_\_\___| |___|_||_|_| \___/_| |_|_|_\__,_|\__|_\___/_||_/__/
- authors:
+ involved_authors_debug:
runs-on: ubuntu-latest
if: ( github.event.pull_request.head.repo.full_name == 'Perl/perl5' || github.repository == 'Perl/perl5' ) && github.base_ref != ''
continue-on-error: true
@@ -47,7 +47,9 @@ jobs:
BASE_REF: ${{ github.base_ref }}
- name: Involved authors
run: |
- git log --pretty=format:"Author: %an <%ae>" origin/${BASE_REF}...${SHA}^2 | sort -u
+ echo "Authors from origin/${BASE_REF}..${SHA}^2"
+ echo "specifically: $(git rev-parse origin/${BASE_REF})..$(git rev-parse ${SHA}^2)"
+ git log --pretty=format:"Author: %aN <%aE>" origin/${BASE_REF}..${SHA}^2 | sort | uniq -c
env:
BASE_REF: ${{ github.base_ref }}
SHA: ${{ github.sha }}