Skip to content

Commit 06a3697

Browse files
chore: add details about repository workspace states (#267)
* chore: add details about repository workspace states * chore: update image * Update packages/projects-docs/pages/learn/repositories/overview.mdx Co-authored-by: Necoline Hubner <[email protected]> --------- Co-authored-by: Necoline Hubner <[email protected]>
1 parent faceb50 commit 06a3697

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
68 KB
Loading

packages/projects-docs/pages/learn/repositories/overview.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,16 @@ When you press `Create Branch`, we automatically create a new branch and set up
2727
<Video src="../../repo-branching.mp4" />
2828

2929
If you are looking at someone’s PR and want to quickly test a suggestion, simply click `Create Branch`, write the code and share a link to your changes. If you’re happy with the changes, merge that into the existing PR. All of this in under a minute.
30+
31+
## Understanding repository imports
32+
33+
CodeSandbox handles imported repositories on a per-workspace basis. This means that the changes made to a repository in one workspace will only be visible to users within that workspace until those changes are synced with GitHub.
34+
35+
Because of the repository access permissions within a workspace, the following scenarios apply:
36+
37+
- When a repository gets imported to a workspace, that version of the repo can only be accessed by the workspace team members.
38+
- When a repository gets opened as a public repo, the user opening it will get the public version of the repo, which is a standalone, read-only version that might not match up with a version of the same repo that has been imported to a workspace.
39+
40+
At any given time, you can switch through the different available versions of the CodeSandbox repository by clicking the chevron icon next to the repo name on the top bar of the editor and then selecting a workspace under "Change workspace", as shown below.
41+
42+
![Changing the workspace of a repository](../images/repo-change-workspace.jpg)

0 commit comments

Comments
 (0)