Skip to content

Commit 81d0db2

Browse files
committed
fix: optimize commit retrieval by converting to CSV format for environment variable
1 parent d27b737 commit 81d0db2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/reassign-copilot-commits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
GH_TOKEN: ${{ secrets.GH_PAT }}
4545
run: |
4646
COMMITS=$(gh pr view $PR_NUMBER --json commits -q '.commits[].oid')
47-
echo "COMMITS=$COMMITS" >> $GITHUB_ENV
47+
COMMITS_CSV=$(echo "$COMMITS" | paste -sd, -)
48+
echo "COMMITS=$COMMITS_CSV" >> $GITHUB_ENV
4849
echo "$COMMITS" > commits.txt
4950
5051
- name: Check for Copilot as author

0 commit comments

Comments
 (0)