You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docs): stop autoupdate PRs from rewriting source URLs every run (#516)
## Summary
- Decouple the displayed `source:` URL ref in synced docs from the
fetch branch so patch releases and the daily cron stop flipping it
on every run.
- Realign existing `v1.0/` source URLs (which stamped `release-1.2.1`)
to `release-1.0`.
## Context
Auto-update PRs from this repo's daily cron, and from
`cozystack/cozystack`'s release `tags.yaml`, were touching ~30 files per
run for nothing more than swapping the `source:` line between `main`,
`release-1.X`, and `vX.Y.Z`. The fetch ref and the displayed ref were
the same value.
`hack/update_apps.sh` now accepts an optional `--source-ref REF`
(defaults to `--branch` for backward compat). The Makefile derives a
stable `SOURCE_REF` from `DOC_VERSION`:
| `DOC_VERSION` | `SOURCE_REF` |
| --- | --- |
| `v0` | `main` (legacy, preserves current state) |
| `vX.Y` (X≥1) | `release-X.Y` |
Fetch still uses `BRANCH` (the exact tag for reproducibility).
## Caller compatibility
- Upstream `cozystack/cozystack` `tags.yaml`: `make update-all BRANCH=…
RELEASE_TAG=…` — unchanged.
- Website daily cron `update-managed-apps.yaml`: `make update-all
DOC_VERSION=…` — unchanged.
- Standalone `hack/update_apps.sh` runs without `--source-ref`: falls
back to `--branch` (no behavior change).
- `fill_templates.sh` doesn't touch `source:` URLs, so no changes there.
## Test plan
- [x] `make -n update-apps` → `--source-ref release-1.2`
- [x] `make -n update-apps RELEASE_TAG=v1.0.5` → `--source-ref
release-1.0`, fetch from `v1.0.5`
- [x] `make -n update-apps RELEASE_TAG=v1.2.5` → `--source-ref
release-1.2`, fetch from `v1.2.5`
- [x] `make -n update-apps RELEASE_TAG=v0.30.5` → `--source-ref main`,
fetch from `v0.30.5`
- [x] HEAD-checked all `release-1.0` README URLs used in v1.0 docs
return 200
- [x] Standalone script run without `--source-ref` falls back to
`--branch` (verified in temp dir)
- [ ] Next post-merge auto-update PR (daily cron at 03:00 UTC, or next
`cozystack/cozystack` release) should be small — touching only files
whose upstream README content actually changed.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Build tooling now supports a separate source reference for generated
documentation links (can differ from the branch used to fetch content).
* **Documentation**
* Updated autogenerated documentation source references across v1.0
content to point to the release-1.0 upstream.
[](https://app.coderabbit.ai/change-stack/cozystack/website/pull/516)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments