Bootstrap GitHub Project v2 roadmap + markdown sync#1
Bootstrap GitHub Project v2 roadmap + markdown sync#1zakelfassi wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e94d472f0c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if git -C "$REPO_DIR" remote get-url "$REMOTE_NAME" >/dev/null 2>&1; then | ||
| true | ||
| else | ||
| (cd "$REPO_DIR" && git remote add "$REMOTE_NAME" "$REPO_URL") | ||
| fi |
There was a problem hiding this comment.
Repoint existing remote to target repository
When the configured remote already exists, this branch does not verify that it matches REPO_URL, so bootstrap can proceed with project/issue creation for $OWNER/$REPO_NAME while local pushes still go to a different repo. This happens in common template-clone setups where origin is pre-set, and it leaves the roadmap metadata out of sync with the code repository unless users manually fix the remote URL.
Useful? React with 👍 / 👎.
Adds a minimal GitHub-as-source-of-truth workflow: