Skip to content

Commit be44325

Browse files
authored
fix(ci): always run PR size checks (#1529)
1 parent dca4afe commit be44325

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/bouncer.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ permissions:
2727
jobs:
2828
enforce-smaller-requests:
2929
name: "PR is manageable"
30-
if: github.event.action != 'edited'
3130
runs-on: ubuntu-latest
3231
steps:
3332
- name: Set MAX_ADDITIONS for forks
@@ -77,7 +76,7 @@ jobs:
7776
core.setOutput('trigger', 'false');
7877
}
7978
80-
- name: ${{ steps.stats.outputs.trigger == 'true' && 'An opened PR is too big to be reviewed at once!' || 'No comments' }}
79+
- name: ${{ steps.stats.outputs.trigger == 'true' && 'An opened PR is too big to be reviewed at once!' || '...' }}
8180
if: github.event.action == 'opened' && steps.stats.outputs.trigger == 'true'
8281
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
8382
with:
@@ -107,8 +106,8 @@ jobs:
107106
});
108107
process.exit(1);
109108
110-
- name: ${{ steps.stats.outputs.trigger == 'true' && 'Some change in the PR made it too big!' || 'No comments' }}
111-
if: github.event.action == 'synchronize' && steps.stats.outputs.trigger == 'true'
109+
- name: ${{ steps.stats.outputs.trigger == 'true' && 'Some change in the PR made it too big!' || '...' }}
110+
if: github.event.action != 'opened' && steps.stats.outputs.trigger == 'true'
112111
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
113112
with:
114113
script: |

0 commit comments

Comments
 (0)