fix: Tell buf to fetch to a depth of 100 commits when looking for breaking changes

Per <https://docs.buf.build/reference/inputs#other-options>, this is by
default 50 (and I have 51 commits on this PR 😰)

100 commits should be enough for anyone.
pull/24376/head
Carol (Nichols || Goulding) 2022-11-23 17:24:49 -05:00
parent 727dd864d2
commit b86eb763b1
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ jobs:
git fetch origin main
# compare against only changes in this branch (not against
# other stuff that may have been added to main since last merge)
MERGE_BASE=$(git merge-base origin/main $CIRCLE_BRANCH) sh -c 'buf breaking --against ".git#ref=$MERGE_BASE"'
MERGE_BASE=$(git merge-base origin/main $CIRCLE_BRANCH) sh -c 'buf breaking --against ".git#ref=$MERGE_BASE,depth=100"'
# Lint docs
docs-lint: