Skip to content

Commit

Permalink
Update restrict-pr-size.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsinnit authored Jun 3, 2024
1 parent 4a966a3 commit 4831b17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/restrict-pr-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ jobs:
| bc)
echo "size=${size}" >> $GITHUB_ENV
echo " -----> ${github.event.head_commit.message}"
echo ""
echo "Total lines changed (note: *.lock files are excluded from this count): "
echo $size
shell: bash
- run: |
if [[ $size -gt ${{ env.MAX_LINE_CHANGED }} ]]
if [[ $size -gt ${{ env.MAX_LINE_CHANGED }} && "${{ github.event.commit.message }}" == *"[skip pr-size]"* ]]
then
echo "Warning - total lines changed is greater than" ${{ env.MAX_LINE_CHANGED }}.
echo "Please consider breaking this PR down."
Expand Down

0 comments on commit 4831b17

Please sign in to comment.