File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 pr-labels :
2020 if : github.event_name == 'pull_request'
2121 runs-on : ubuntu-latest
22- steps :
2322 steps :
2423 - name : Checkout repo
2524 uses : actions/checkout@v4
4342 run : |
4443 set -euo pipefail
4544 labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
46- count=$(echo " $labels" | grep -E '^status:' | wc -l | xargs )
45+ count=$(printf "%s\n" " $labels" | grep -E -c '^status:' || true )
4746 if [ "$count" -eq 0 ]; then
4847 echo "::notice::No status:* found → adding status:needs-review"
4948 gh pr edit ${{ github.event.pull_request.number }} --add-label "status:needs-review"
7877 run : |
7978 set -euo pipefail
8079 labels=$(gh issue view ${{ github.event.issue.number }} --json labels --jq '.labels[].name')
81- count=$(echo " $labels" | grep -E '^status:' | wc -l | xargs )
80+ count=$(printf "%s\n" " $labels" | grep -E -c '^status:' || true )
8281 if [ "$count" -gt 1 ]; then
8382 echo "::error::Multiple status:* labels present. Keep exactly one."
8483 exit 1
Original file line number Diff line number Diff line change 1818 add-and-sync :
1919 runs-on : ubuntu-latest
2020 steps :
21- steps :
22- - name : Checkout repo
23- uses : actions/checkout@v4
21+ - name : Checkout repo
22+ uses : actions/checkout@v4
2423
2524 - name : Create GitHub App installation token
2625 id : app-token
You can’t perform that action at this time.
0 commit comments