Skip to content

Commit 0190b1f

Browse files
committed
ci: Fetch 3000 commits from upstream, rather than 1000
This is a cherry-pick of d6affc9 from the main branch.
1 parent 888952b commit 0190b1f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ jobs:
2222
# so that Flutter knows its version and sees the constraint in our
2323
# pubspec is satisfied. It's uncommon for flutter/flutter to go
2424
# more than 100 commits between tags. Fetch 1000 for good measure.
25+
# TODO(upstream): Around 2025-05, Flutter upstream stopped making
26+
# tags within the main/master branch. Get that fixed:
27+
# https://github.com/zulip/zulip-flutter/issues/1710
28+
# Pending that, fetch more than 1000 commits.
2529
run: |
26-
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
30+
git clone --depth=3000 -b main https://github.com/flutter/flutter ~/flutter
2731
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
2832
echo ~/flutter/bin >> "$GITHUB_PATH"
2933

.github/workflows/update-translations.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
# so that Flutter knows its version and sees the constraint in our
3030
# pubspec is satisfied. It's uncommon for flutter/flutter to go
3131
# more than 100 commits between tags. Fetch 1000 for good measure.
32+
# TODO(upstream): See ci.yml for why we fetch more than 1000.
3233
run: |
33-
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
34+
git clone --depth=3000 -b main https://github.com/flutter/flutter ~/flutter
3435
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
3536
echo ~/flutter/bin >> "$GITHUB_PATH"
3637

0 commit comments

Comments
 (0)