fix(ci): narrow issue lifecycle review events
This commit is contained in:
2
.github/workflows/issue-lifecycle.yml
vendored
2
.github/workflows/issue-lifecycle.yml
vendored
@@ -36,7 +36,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
lifecycle:
|
lifecycle:
|
||||||
name: Issue 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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out trusted policy
|
- name: Check out trusted policy
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ describe('Issue lifecycle workflow', () => {
|
|||||||
expect(lifecyclePullRequest.types).toContain('review_requested')
|
expect(lifecyclePullRequest.types).toContain('review_requested')
|
||||||
expect(lifecycleReview.types).toEqual(['submitted'])
|
expect(lifecycleReview.types).toEqual(['submitted'])
|
||||||
expect(lifecycleJob.if).toBe(
|
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')
|
expect(policyPullRequest.types).toContain('ready_for_review')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user