Clerk Docs Repo migration to clerk/clerk#3258
Open
NWylynko wants to merge 51 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Opened the pr for the wrong branch, whoops |
- Added `--local-only` option to create a migrated branch locally without pushing or opening PRs. - Introduced `--allow-dirty-clerk-docs` to bypass preflight checks for uncommitted changes. - Updated `parseConfig` to handle new CLI flags and adjusted logging to include a debug alias for `--verbose`. - Improved logger functionality with color-coded log levels and enhanced message formatting.
manovotny
reviewed
Apr 15, 2026
manovotny
approved these changes
Apr 22, 2026
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.
Pr: https://github.com/clerk/clerk/pull/2315 must merge first
This pr brings in a script to assist with the migration of this repo in to clerk/clerk. It can be run with no flags as long as its run within clerk/clerk-docs repo and the current checked out branch is the one you want to migrate. To speed up the migration script significantly you can specify
--clerk-pathand point it to a local clone of clerk/clerk repo for it to use, otherwise it clones it to a temp repo to perform the migration.This script
git-filter-repoto merge clerk-docs in to clerk/clerk, pulling over the authoring historyThat last step of recreating the pr is why this script needs to be run locally, so then the pr has the correct author.
This pr also brings in a github workflow to ask the owner of the pr to run the script to perform the migration.

Note that this migration script does not migrate the github workflows in this pr, those will need to be manually moved and changed to work as desired. This includes getting typedocs pulled in to the clerk/clerk repo instead and the api errors updates.
Additionally we will need to block merging to main in this repo once this pr gets merged. We should also decide if we want to private + archive this repo. Or leave it public and have the clerk-docs folder sync back from clerk/clerk repo back to this repo for the public to view.
this pr also doesn't currently update the readme.md or contributing.md to reflect the changed setup. it could be updated to be.
An example branch created by this script https://github.com/clerk/clerk/tree/nick/my-example-change-migrated-migrated-1 based off this branch https://github.com/clerk/clerk-docs/tree/nick/my-example-change