2828 steps :
2929 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030 with :
31+ persist-credentials : false
3132 fetch-depth : 100
3233
3334 - name : Check whether repo participates in Hacktoberfest
@@ -40,13 +41,13 @@ jobs:
4041
4142 - name : Search relevant commit message lines starting with Closes/Merges
4243 run : |
43- git log --format=email ${{ github.event.before }}..${{ github.event.after }} | \
44- grep -Ei " ^Close[sd]? " | sort | uniq | tee log
44+ git log --format=email ' ${{ github.event.before }}..${{ github.event.after }}' | \
45+ grep -Ei ' ^Close[sd]? ' | sort | uniq | tee log
4546 if : steps.check.outputs.label == 'hacktoberfest'
4647
4748 - name : Search for Number-based PR references
4849 run : |
49- grep -Eo " #([0-9]+)" log | cut -d# -f2 | sort | uniq | xargs -t -n1 -I{} \
50+ grep -Eo ' #([0-9]+)' log | cut -d# -f2 | sort | uniq | xargs -t -n1 -I{} \
5051 gh pr view {} --json number,createdAt \
5152 --jq '{number, opened: .createdAt} | [.number, .opened] | join(":")' | tee /dev/stderr | \
5253 grep -Eo '^([0-9]+):[0-9]{4}-(09-30T|10-|11-01T)' | cut -d: -f1 | sort | uniq | xargs -t -n1 -I {} \
5758
5859 - name : Search for URL-based PR references
5960 run : |
60- grep -Eo " github.com/(.+)/(.+)/pull/([0-9]+)" log | sort | uniq | xargs -t -n1 -I{} \
61- gh pr view " https://{}" --json number,createdAt \
61+ grep -Eo ' github.com/(.+)/(.+)/pull/([0-9]+)' log | sort | uniq | xargs -t -n1 -I{} \
62+ gh pr view ' https://{}' --json number,createdAt \
6263 --jq '{number, opened: .createdAt} | [.number, .opened] | join(":")' | tee /dev/stderr | \
6364 grep -Eo '^([0-9]+):[0-9]{4}-(09-30T|10-|11-01T)' | cut -d: -f1 | sort | uniq | xargs -t -n1 -I {} \
6465 gh pr edit {} --add-label 'hacktoberfest-accepted'
0 commit comments