From 1165c7073ab126ff2216311fe8fff3f4ce63f2df Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sun, 5 Feb 2023 23:03:36 -0600 Subject: [PATCH 1/7] docs: add repo adoption to FAQ Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 2fcf0be156129..6ff30e1423516 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -449,3 +449,12 @@ It is highly recommended to back-up your database before running these commands. If you are using Cloudflare, turn off the auto-minify option in the dashboard. `Speed` -> `Optimization` -> Uncheck `HTML` within the `Auto-Minify` settings. + +## How to adopt repositories from disk + +1. Add your repositories to the correct spot for your configuration (`repository.ROOT`). +You can also check `/admin/config` for the repository root path. +2. Ensure that the user/org exists that you want to adopt repositories for +3. As an admin, go to `/admin/repos/unadopted` and search. +Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). +4. If the above steps are done correctly, you should be able to select repositories to adopt. Otherwise, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. \ No newline at end of file From 9ac25d595378407037540d434487e5f51d214613 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sun, 5 Feb 2023 23:09:10 -0600 Subject: [PATCH 2/7] chore: wording Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 6ff30e1423516..f7384b8bd5374 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -452,7 +452,7 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard. ## How to adopt repositories from disk -1. Add your repositories to the correct spot for your configuration (`repository.ROOT`). +1. Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. You can also check `/admin/config` for the repository root path. 2. Ensure that the user/org exists that you want to adopt repositories for 3. As an admin, go to `/admin/repos/unadopted` and search. From f31d4e6c2f193faa48c997aa96826802db27ecf9 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sun, 5 Feb 2023 23:11:22 -0600 Subject: [PATCH 3/7] chore: punc Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index f7384b8bd5374..615cb972e928e 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -454,7 +454,7 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard. 1. Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. You can also check `/admin/config` for the repository root path. -2. Ensure that the user/org exists that you want to adopt repositories for +2. Ensure that the user/org exists that you want to adopt repositories for. 3. As an admin, go to `/admin/repos/unadopted` and search. Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). 4. If the above steps are done correctly, you should be able to select repositories to adopt. Otherwise, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. \ No newline at end of file From 9795c01d2959c5a7fc9d19f51ec0532fabab8ebd Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 6 Feb 2023 10:50:31 +0000 Subject: [PATCH 4/7] Files should end with an empty newline --- docs/content/doc/help/faq.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 615cb972e928e..158f48f6d2f54 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -457,4 +457,4 @@ You can also check `/admin/config` for the repository root path. 2. Ensure that the user/org exists that you want to adopt repositories for. 3. As an admin, go to `/admin/repos/unadopted` and search. Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). -4. If the above steps are done correctly, you should be able to select repositories to adopt. Otherwise, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. \ No newline at end of file +4. If the above steps are done correctly, you should be able to select repositories to adopt. Otherwise, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. From 331d815b32373c05f8488c40fcc247c86a45f000 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 6 Feb 2023 10:56:47 +0000 Subject: [PATCH 5/7] Update docs/content/doc/help/faq.en-us.md --- docs/content/doc/help/faq.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 158f48f6d2f54..3074ce3bd8f43 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -452,7 +452,7 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard. ## How to adopt repositories from disk -1. Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. +1. Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. (Note: the directory names must be lowercase.) You can also check `/admin/config` for the repository root path. 2. Ensure that the user/org exists that you want to adopt repositories for. 3. As an admin, go to `/admin/repos/unadopted` and search. From fa7c1c34c6d91f7f09096a0cc869cc95c095f7cc Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 6 Feb 2023 09:17:34 -0600 Subject: [PATCH 6/7] chore: re-structure Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 3074ce3bd8f43..29a23d96be9d0 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -452,9 +452,11 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard. ## How to adopt repositories from disk -1. Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. (Note: the directory names must be lowercase.) -You can also check `/admin/config` for the repository root path. -2. Ensure that the user/org exists that you want to adopt repositories for. -3. As an admin, go to `/admin/repos/unadopted` and search. -Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). -4. If the above steps are done correctly, you should be able to select repositories to adopt. Otherwise, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. +* Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. + * **Note:** the directory names must be lowercase. + * You can also check `/admin/config` for the repository root path. +* Ensure that the user/org exists that you want to adopt repositories for. +* As an admin, go to `/admin/repos/unadopted` and search. + * Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). +* If the above steps are done correctly, you should be able to select repositories to adopt. + * If no repositories are found, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. From 416322e88c440dee0191974dbd5c111124c780dd Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 6 Feb 2023 09:20:24 -0600 Subject: [PATCH 7/7] chore: appease the linter Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 29a23d96be9d0..c8327de7fe577 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -452,11 +452,11 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard. ## How to adopt repositories from disk -* Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. - * **Note:** the directory names must be lowercase. - * You can also check `/admin/config` for the repository root path. -* Ensure that the user/org exists that you want to adopt repositories for. -* As an admin, go to `/admin/repos/unadopted` and search. - * Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). -* If the above steps are done correctly, you should be able to select repositories to adopt. - * If no repositories are found, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors. +- Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `/[user]/[repo].git`. + - **Note:** the directory names must be lowercase. + - You can also check `/admin/config` for the repository root path. +- Ensure that the user/org exists that you want to adopt repositories for. +- As an admin, go to `/admin/repos/unadopted` and search. + - Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}). +- If the above steps are done correctly, you should be able to select repositories to adopt. + - If no repositories are found, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors.