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
git commit -m "docs: sync example tutorials from cosmos/example [docs-sync]"
83
-
git push origin "$BRANCH"
110
+
git commit -m "docs: sync example tutorials from cosmos/example [docs-sync]"
111
+
git push origin "HEAD:refs/heads/${BRANCH}"
84
112
113
+
if [ -n "$PR_NUMBER" ]; then
85
114
gh pr comment "$PR_NUMBER" \
86
115
--repo cosmos/docs \
87
-
--body "Sync updated: cosmos/example was updated before this PR merged. Branch has been refreshed — please re-review."
116
+
--body "Sync updated: cosmos/example was updated before this PR merged. Branch has been refreshed, please re-review."
88
117
echo "Updated existing PR #$PR_NUMBER"
89
-
90
118
else
91
-
# No existing PR — create a new branch and open one
92
-
BRANCH="docs-sync/example-$(date +%Y%m%d-%H%M%S)"
93
-
git checkout -b "$BRANCH"
94
-
git add sdk/next/tutorials/example/
95
-
git commit -m "docs: sync example tutorials from cosmos/example [docs-sync]"
96
-
git push origin "$BRANCH"
97
-
98
119
gh pr create \
99
120
--repo cosmos/docs \
100
121
--head "$BRANCH" \
101
122
--base main \
102
123
--title "docs: sync example tutorials from cosmos/example" \
103
124
--label "docs-sync" \
104
-
--body "Auto-synced from cosmos/example. Transforms docs/*.md to sdk/next/tutorials/example/*.mdx. Do not edit these files directly — edit the source in cosmos/example and let the sync bot update them."
125
+
--body "Auto-synced from cosmos/example. Transforms docs/*.md to sdk/next/tutorials/example/*.mdx. Do not edit these files directly, edit the source in cosmos/example and let the sync bot update them."
0 commit comments