mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Update qwen-code-pr-review.yml
Trigger Qwen PR Review when a PR opens. Fix the auto-skip issue.
This commit is contained in:
10
.github/workflows/qwen-code-pr-review.yml
vendored
10
.github/workflows/qwen-code-pr-review.yml
vendored
@@ -18,7 +18,11 @@ jobs:
|
|||||||
review-pr:
|
review-pr:
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
(github.event_name == 'pull_request' && github.event.action == 'opened') ||
|
(github.event_name == 'pull_request_target' &&
|
||||||
|
github.event.action == 'opened' &&
|
||||||
|
(github.event.pull_request.author_association == 'OWNER' ||
|
||||||
|
github.event.pull_request.author_association == 'MEMBER' ||
|
||||||
|
github.event.pull_request.author_association == 'COLLABORATOR')) ||
|
||||||
(github.event_name == 'issue_comment' &&
|
(github.event_name == 'issue_comment' &&
|
||||||
github.event.issue.pull_request &&
|
github.event.issue.pull_request &&
|
||||||
contains(github.event.comment.body, '@qwen /review') &&
|
contains(github.event.comment.body, '@qwen /review') &&
|
||||||
@@ -49,9 +53,9 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get PR details (pull_request & workflow_dispatch)
|
- name: Get PR details (pull_request_target & workflow_dispatch)
|
||||||
id: get_pr
|
id: get_pr
|
||||||
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user