| name: CLA Assistant |
|
|
| on: |
| issue_comment: |
| types: [created] |
| pull_request_target: |
| types: [opened, synchronize, closed] |
|
|
| permissions: |
| actions: write |
| contents: read |
| pull-requests: write |
| statuses: write |
|
|
| jobs: |
| cla-assistant: |
| runs-on: ubuntu-latest |
| steps: |
| |
| |
| |
| - name: Build author-only allowlist |
| id: allowlist |
| if: > |
| github.event_name == 'pull_request_target' || |
| (github.event_name == 'issue_comment' && github.event.issue.pull_request && ( |
| github.event.comment.body == 'recheck' || |
| github.event.comment.body == 'I have read and agree to the Contributor License Agreement' |
| )) |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }} |
| PR_AUTHOR: ${{ github.event.pull_request.user.login || github.event.issue.user.login }} |
| BASE_ALLOWLIST: action@github.com,actions-user,ampagent,claude,comfy-pr-bot,GitHub Action,github-actions,github-actions[bot],Glary Bot,Glary-Bot,*[bot] |
| |
| |
| run: | |
| others=$(gh api "repos/${{ github.repository }}/pulls/${PR_NUMBER}/commits" --paginate \ |
| --jq '.[] | (.author.login // .commit.author.name // empty), (.committer.login // .commit.committer.name // empty)' \ |
| | sort -u | grep -vix "${PR_AUTHOR}" | paste -sd, -) |
| if [ -n "$others" ]; then |
| echo "allowlist=${BASE_ALLOWLIST},${others}" >> "$GITHUB_OUTPUT" |
| else |
| echo "allowlist=${BASE_ALLOWLIST}" >> "$GITHUB_OUTPUT" |
| fi |
| |
| - name: CLA Assistant |
| |
| |
| if: > |
| github.event_name == 'pull_request_target' || |
| (github.event_name == 'issue_comment' && github.event.issue.pull_request && ( |
| github.event.comment.body == 'recheck' || |
| github.event.comment.body == 'I have read and agree to the Contributor License Agreement' |
| )) |
| uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
| with: |
| |
| path-to-document: https://github.com/Comfy-Org/comfy-cla/blob/main/comfyui_icla.md |
|
|
| |
| remote-organization-name: comfy-org |
| remote-repository-name: comfy-cla |
| path-to-signatures: signatures/cla.json |
| branch: main |
|
|
| |
| |
| |
| allowlist: ${{ steps.allowlist.outputs.allowlist }} |
|
|
| |
| custom-notsigned-prcomment: | |
| π Thank you for your contribution, we really appreciate it! π |
| |
| Like many open source projects, we require contributors to sign our [Contributor License Agreement (CLA)](https://github.com/Comfy-Org/comfy-cla/blob/main/comfyui_icla.md). A CLA makes the ownership of contributions explicit, so contributors and the project share a clear understanding of how the code can be used. By signing, you: |
|
|
| - Confirm that you own your contribution. |
| - Keep the right to reuse your own code. |
| - Grant us a copyright license to include and share it within our projects. |
|
|
| CLAs are standard practice across major open source projects including those under the Apache Software Foundation and the Linux Foundation. Ours is based on the Apache Software Foundation's CLA. Most importantly, it would enable us to relicense the project under a more permissive license in the future, giving the project and its community greater flexibility. |
|
|
| β **To sign, please post a new comment on this PR with exactly the following text:** β |
|
|
| custom-pr-sign-comment: I have read and agree to the Contributor License Agreement |
|
|
| custom-allsigned-prcomment: | |
| β
All contributors have signed the CLA. Thank you! This PR is ready to be merged. |
| |