mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-12 09:27:15 +08:00
Refactor CLA workflow to include issue comments
This commit is contained in:
parent
33d295bfad
commit
03dce76c0e
13
.github/workflows/cla.yml
vendored
13
.github/workflows/cla.yml
vendored
@ -5,7 +5,6 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened, synchronize, closed]
|
types: [opened, synchronize, closed]
|
||||||
merge_group:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
@ -24,8 +23,10 @@ jobs:
|
|||||||
id: allowlist
|
id: allowlist
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'pull_request_target' ||
|
github.event_name == 'pull_request_target' ||
|
||||||
github.event.comment.body == 'recheck' ||
|
(github.event_name == 'issue_comment' && github.event.issue.pull_request && (
|
||||||
github.event.comment.body == 'I have read and agree to the Contributor License Agreement'
|
github.event.comment.body == 'recheck' ||
|
||||||
|
github.event.comment.body == 'I have read and agree to the Contributor License Agreement'
|
||||||
|
))
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
|
||||||
@ -46,8 +47,10 @@ jobs:
|
|||||||
# IMPORTANT: this phrase must match `custom-pr-sign-comment` below.
|
# IMPORTANT: this phrase must match `custom-pr-sign-comment` below.
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'pull_request_target' ||
|
github.event_name == 'pull_request_target' ||
|
||||||
github.event.comment.body == 'recheck' ||
|
(github.event_name == 'issue_comment' && github.event.issue.pull_request && (
|
||||||
github.event.comment.body == 'I have read and agree to the Contributor License Agreement'
|
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 # v2.6.1
|
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user