docs: sync example tutorials from cosmos/docs - #9
Open
evanorti wants to merge 3 commits into
Open
Conversation
Collaborator
Author
|
Sync updated: cosmos/docs was updated before this PR merged. Branch has been refreshed — please re-review. |
evanorti
added a commit
to cosmos/docs
that referenced
this pull request
Aug 25, 2026
… runs (#343) Mirrors cosmos/example#16 and #17 in the reverse direction. The workflow transformed the tutorials into cosmos-example/ while still on main, then stashed, switched to the open sync branch, and popped. Popping a stash taken against main onto a branch that already carries overlapping changes conflicts and exits 1, which fails the step under bash -e. That is the likely cause of the unexplained 2026-04-10 failure, which ran while cosmos/example#9 had been open since March 31. Select the target branch and check it out first, while the tree is still clean, then transform directly onto it. Nothing is stashed and nothing is merged, so there is no conflict to hit. Replaces the separate change-detection step with a `git diff --cached --quiet` guard so an up-to-date branch exits cleanly instead of creating an empty commit. Also adds a concurrency group, so two overlapping runs cannot derive divergent commits from the same branch revision and race on push, and workflow_dispatch, so a sync PR left stale by a failed run can be brought current without waiting for the next docs edit. Verified against real clones of cosmos/docs and cosmos/example using the stale cosmos/example#9 branch: with the transform output overlapping lines that branch already changed, the old sequence produces "CONFLICT (content): Merge conflict in docs/02-quickstart.md" and exits 1, while the new sequence exits 0 and stages the correct refresh.
Collaborator
Author
|
Sync updated: cosmos/docs was updated before this PR merged. Branch has been refreshed, please re-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Auto-synced from cosmos/docs. Transforms sdk/next/tutorials/example/.mdx to docs/.md. Do not edit docs/ files directly in cosmos/example — edit the source and let the sync bot update them.