From 3593c7630c6ddfe3b861e22c45f3cc191ded71aa Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Sat, 14 Dec 2019 20:49:52 -0600 Subject: [PATCH] Push to create repo (#8419) * Refactor Signed-off-by: jolheiser * Add push-create to SSH serv Signed-off-by: jolheiser * Cannot push for another user unless admin Signed-off-by: jolheiser * Get owner in case admin pushes for another user Signed-off-by: jolheiser * Set new repo ID in result Signed-off-by: jolheiser * Update to service and use new org perms Signed-off-by: jolheiser * Move pushCreateRepo to services Signed-off-by: jolheiser * Fix import order Signed-off-by: jolheiser * Changes for @guillep2k * Check owner (not user) in SSH * Add basic tests for created repos (private, not empty) Signed-off-by: jolheiser --- doc/advanced/config-cheat-sheet.en-us.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/advanced/config-cheat-sheet.en-us.md b/doc/advanced/config-cheat-sheet.en-us.md index 639f60fe..4174a874 100644 --- a/doc/advanced/config-cheat-sheet.en-us.md +++ b/doc/advanced/config-cheat-sheet.en-us.md @@ -66,6 +66,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. default is not to present. **WARNING**: This maybe harmful to you website if you do not give it a right value. - `DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH`: **false**: Close an issue if a commit on a non default branch marks it as closed. +- `ENABLE_PUSH_CREATE_USER`: **false**: Allow users to push local repositories to Gitea and have them automatically created for a user. +- `ENABLE_PUSH_CREATE_ORG`: **false**: Allow users to push local repositories to Gitea and have them automatically created for an org. ### Repository - Pull Request (`repository.pull-request`)