Skip to content

Commit 28804ed

Browse files
committed
chore: update fetch source ref from master to develop branch
1 parent 10d70d1 commit 28804ed

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

core/githubhelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def get_libraries_json(self, repo_slug: str, tag: str = "master"):
331331
else:
332332
return response.json()
333333

334-
def get_website_adoc(self, repo_slug: str, tag: str = "master"):
334+
def get_website_adoc(self, repo_slug: str, tag: str = "develop"):
335335
"""Retrieve a library's optional 'meta/website.adoc'.
336336
337337
Many libraries might not ship this file, so it will returns None quietly if not found.

libraries/management/commands/import_library_version_website_adoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def command(release: str, new: bool, min_version: str):
2828
"""Fetch, parse, and store each library's meta/website.adoc for the targeted
2929
Boost versions.
3030
31-
The most recent version is fetched from `master` (freshest maintainer content,
31+
The most recent version is fetched from `develop` (freshest maintainer content,
3232
matching the daily task); older versions are fetched from their release tag (the
3333
frozen snapshot, matching release import). A repo without the file is left
3434
untouched.
@@ -48,7 +48,7 @@ def command(release: str, new: bool, min_version: str):
4848
versions = list(version_qs.order_by("-name"))
4949

5050
for version in versions:
51-
ref = "master" if version == most_recent else version.name
51+
ref = "develop" if version == most_recent else version.name
5252
click.secho(f"Processing {version.name} (ref={ref})...", fg="green")
5353
store_library_version_website_adoc(version, ref=ref)
5454

libraries/tasks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,27 @@ def update_library_version_documentation_urls_all_versions():
5757
def update_library_version_website_adoc():
5858
"""Refresh parsed meta/website.adoc for the current release.
5959
60-
Scoped to the most recent version and fetched from `master` so maintainer
60+
Scoped to the most recent version and fetched from `develop` so maintainer
6161
edits between releases are picked up. Historical versions keep the snapshot
6262
captured at their release import — a tagged release's meta/website.adoc is
6363
immutable, so re-fetching every version daily would be redundant.
6464
65-
Skipped while a newer release is in beta: `master` has already drifted toward
65+
Skipped while a newer release is in beta: `develop` has already drifted toward
6666
that release, so refreshing the current stable from it would surface
6767
pre-release content on the stable page. The stable keeps its release-tag
6868
import snapshot until the beta becomes the full release.
6969
"""
7070
version = Version.objects.most_recent()
7171
if version is None:
7272
return
73-
# During a beta cycle for the NEXT release, each library's `master` has
73+
# During a beta cycle for the NEXT release, each library's `develop` has
7474
# already drifted toward that release, so refreshing the current stable from
75-
# master would show it pre-release content. Hold until the beta is promoted
75+
# develop would show it pre-release content. Hold until the beta is promoted
7676
# to a full release.
7777
beta = Version.objects.most_recent_beta()
7878
if beta and beta.cleaned_version_parts > version.cleaned_version_parts:
7979
return
80-
store_library_version_website_adoc(version, ref="master")
80+
store_library_version_website_adoc(version, ref="develop")
8181

8282

8383
def store_library_version_website_adoc(version, ref):

libraries/tests/test_tasks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def test_version_missing_docs(version, version_name, expected):
127127
def test_update_library_version_website_adoc_beta_guard(beta_name, expect_refresh):
128128
"""The daily website.adoc refresh holds only while a NEWER release is in beta.
129129
130-
A newer beta means each library's `master` has drifted toward the next
131-
release, so refreshing the current stable from `master` would surface
130+
A newer beta means each library's `develop` has drifted toward the next
131+
release, so refreshing the current stable from `develop` would surface
132132
pre-release content on the stable page.
133133
"""
134134
stable = baker.make(
@@ -153,7 +153,7 @@ def test_update_library_version_website_adoc_beta_guard(beta_name, expect_refres
153153
update_library_version_website_adoc()
154154

155155
if expect_refresh:
156-
mock_store.assert_called_once_with(stable, ref="master")
156+
mock_store.assert_called_once_with(stable, ref="develop")
157157
else:
158158
mock_store.assert_not_called()
159159

0 commit comments

Comments
 (0)