fix(ci): narrow issue lifecycle review events

This commit is contained in:
Tianyi Cui
2026-08-10 23:35:05 +08:00
parent 19ee8a767d
commit 3716459223
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ concurrency:
jobs:
lifecycle:
name: Issue lifecycle
if: ${{ github.event_name != 'pull_request_review' || github.event.review.state == 'changes_requested' }}
if: ${{ github.event_name != 'pull_request_review' || (github.event.action == 'submitted' && github.event.review.state == 'changes_requested') }}
runs-on: ubuntu-latest
steps:
- name: Check out trusted policy
+1 -1
View File
@@ -125,7 +125,7 @@ describe('Issue lifecycle workflow', () => {
expect(lifecyclePullRequest.types).toContain('review_requested')
expect(lifecycleReview.types).toEqual(['submitted'])
expect(lifecycleJob.if).toBe(
"${{ github.event_name != 'pull_request_review' || github.event.review.state == 'changes_requested' }}",
"${{ github.event_name != 'pull_request_review' || (github.event.action == 'submitted' && github.event.review.state == 'changes_requested') }}",
)
expect(policyPullRequest.types).toContain('ready_for_review')
})