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.
# \__ \ ' \/ _ \ / / -_) | || ' \| _/ _ \ '_| ' \/ _` | _| / _ \ ' \(_-<
# |___/_|_|_\___/_\_\___| |___|_||_|_| \___/_| |_|_|_\__,_|\__|_\___/_||_/__/
- 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
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 }}