This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
testsuite.yml - fix and rename "authors" CI workflow to "authors_involved_debug"
authorYves Orton <demerphq@gmail.com>
Thu, 18 Aug 2022 19:55:57 +0000 (21:55 +0200)
committerYves Orton <demerphq@gmail.com>
Sun, 21 Aug 2022 10:09:05 +0000 (12:09 +0200)
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.

.github/workflows/testsuite.yml

index a089af3..f0a40fb 100644 (file)
@@ -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 }}