Skip to content

Commit 1ea7243

Browse files
Update cla.yml (Comfy-Org#14851)
1 parent 412aaab commit 1ea7243

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/cla.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
3333
PR_AUTHOR: ${{ github.event.pull_request.user.login || github.event.issue.user.login }}
3434
BASE_ALLOWLIST: action@github.com,actions-user,ampagent,claude,comfy-pr-bot,GitHub Action,github-actions,github-actions[bot],Glary Bot,Glary-Bot,*[bot]
35+
# For each commit emit the GitHub login when the author/committer email resolves to a GitHub account
36+
# otherwise fall back to the raw git name.
3537
run: |
3638
others=$(gh api "repos/${{ github.repository }}/pulls/${PR_NUMBER}/commits" --paginate \
37-
--jq '.[] | (.author.login // empty), (.committer.login // empty)' \
39+
--jq '.[] | (.author.login // .commit.author.name // empty), (.committer.login // .commit.committer.name // empty)' \
3840
| sort -u | grep -vix "${PR_AUTHOR}" | paste -sd, -)
3941
if [ -n "$others" ]; then
4042
echo "allowlist=${BASE_ALLOWLIST},${others}" >> "$GITHUB_OUTPUT"
@@ -43,7 +45,7 @@ jobs:
4345
fi
4446
4547
- name: CLA Assistant
46-
# Run on PR events, on "recheck" comment, or when someone posts the exact signing phrase.
48+
# Run on PR events, on "recheck" comment, or when someone posts the signing phrase.
4749
# IMPORTANT: this phrase must match `custom-pr-sign-comment` below.
4850
if: >
4951
github.event_name == 'pull_request_target' ||

0 commit comments

Comments
 (0)