You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

locale_en-US.ini 143 kB

Oauth2 consumer (#679) * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
8 years ago
9 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
11 years ago
11 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
5 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
9 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
5 years ago
Adopt repositories (#12920) * Don't automatically delete repository files if they are present Prior to this PR Gitea would delete any repository files if they are present during creation or migration. This can in certain circumstances lead to data-loss and is slightly unpleasant. This PR provides a mechanism for Gitea to adopt repositories on creation and otherwise requires an explicit flag for deletion. PushCreate is slightly different - the create will cause adoption if that is allowed otherwise it will delete the data if that is allowed. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix tests and migrate overwrite Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @lunny Only offer to adopt or overwrite if the user can do that. Allow the site administrator to adopt or overwrite in all circumstances Signed-off-by: Andrew Thornton <art27@cantab.net> * Use setting.Repository.DefaultBranch for the default branch Signed-off-by: Andrew Thornton <art27@cantab.net> * Always set setting.Repository.DefaultBranch Signed-off-by: Andrew Thornton <art27@cantab.net> * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * update templates Signed-off-by: Andrew Thornton <art27@cantab.net> * ensure repo closed Signed-off-by: Andrew Thornton <art27@cantab.net> * Rewrite of adoption as per @6543 and @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * missing not Signed-off-by: Andrew Thornton <art27@cantab.net> * add modals and flash reporting Signed-off-by: Andrew Thornton <art27@cantab.net> * Make the unadopted page searchable Signed-off-by: Andrew Thornton <art27@cantab.net> * Add API Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle empty and non-master branched repositories Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * remove commented out code Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
10 years ago
Add support for federated avatars (#3320) * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
9 years ago
11 years ago
Add support for federated avatars (#3320) * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
9 years ago
Repository avatars (#6986) * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
6 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Oauth2 consumer (#679) * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
8 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Adopt repositories (#12920) * Don't automatically delete repository files if they are present Prior to this PR Gitea would delete any repository files if they are present during creation or migration. This can in certain circumstances lead to data-loss and is slightly unpleasant. This PR provides a mechanism for Gitea to adopt repositories on creation and otherwise requires an explicit flag for deletion. PushCreate is slightly different - the create will cause adoption if that is allowed otherwise it will delete the data if that is allowed. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix tests and migrate overwrite Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @lunny Only offer to adopt or overwrite if the user can do that. Allow the site administrator to adopt or overwrite in all circumstances Signed-off-by: Andrew Thornton <art27@cantab.net> * Use setting.Repository.DefaultBranch for the default branch Signed-off-by: Andrew Thornton <art27@cantab.net> * Always set setting.Repository.DefaultBranch Signed-off-by: Andrew Thornton <art27@cantab.net> * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * update templates Signed-off-by: Andrew Thornton <art27@cantab.net> * ensure repo closed Signed-off-by: Andrew Thornton <art27@cantab.net> * Rewrite of adoption as per @6543 and @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * missing not Signed-off-by: Andrew Thornton <art27@cantab.net> * add modals and flash reporting Signed-off-by: Andrew Thornton <art27@cantab.net> * Make the unadopted page searchable Signed-off-by: Andrew Thornton <art27@cantab.net> * Add API Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle empty and non-master branched repositories Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * remove commented out code Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Template Repositories (#8768) * Start work on templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Continue work Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix IsTemplate vs IsGenerated Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tabs vs spaces * Tabs vs Spaces * Add templates to API & start adding tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix integration tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove unused User Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move template tests to existing repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor re-check updates and cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test cleanup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix optionalbool Signed-off-by: jolheiser <john.olheiser@gmail.com> * make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Test fixes and icon change Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add new user and repo for tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests (finally) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update meta repo with env variables Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move generation to create page Combine with repo create template Modify API search to prioritize owner for repo Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix tests and coverage Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger and JS lint Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix API searching for own private repos Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix repo search test. User had a private repo that didn't show up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Another search test fix Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify git content Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Feedback updates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add topics WIP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish adding topics Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update locale Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Add Organization Wide Labels (#10814) * Add organization wide labels Implement organization wide labels similar to organization wide webhooks. This lets you create individual labels for organizations that can be used for all repos under that organization (so being able to reuse the same label across multiple repos). This makes it possible for small organizations with many repos to use labels effectively. Fixes #7406 * Add migration * remove comments * fix tests * Update options/locale/locale_en-US.ini Removed unused translation string * show org labels in issue search label filter * Use more clear var name * rename migration after merge from master * comment typo * update migration again after rebase with master * check for orgID <=0 per guillep2k review * fmt * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * remove unused code * Make sure RepoID is 0 when searching orgID per code review * more changes/code review requests * More descriptive translation var per code review * func description/delete comment when issue label deleted instead of hiding it * remove comment * only use issues in that repo when calculating number of open issues for org label on repo label page * Add integration test for IssuesSearch API with labels * remove unused function * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Use subquery in GetLabelIDsInReposByNames * Fix tests to use correct orgID * fix more tests * IssuesSearch api now uses new BuildLabelNamesIssueIDsCondition. Add a few more tests as well * update comment for clarity * Revert previous code change now that we can use the new BuildLabelNamesIssueIDsCondition * Don't sort repos by date in IssuesSearch API After much debugging I've found a strange issue where in some cases MySQL will return a different result than other enigines if a query is sorted by a null collumn. For example with our integration test data where we don't set updated_unix in repository fixtures: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 45 Returns different results for MySQL than other engines. However, the similar query: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 30 Returns the same results. This causes integration tests to fail on MySQL in certain cases but would never show up in a real installation. Since this API call always returns issues based on the optionally provided repo_priority_id or the issueID itself, there is no change to results by changing the repo sorting method used to get ids earlier in the function. * linter is back! * code review * remove now unused option * Fix newline at end of files * more unused code * update to master * check for matching ids before query * Update models/issue_label.go Co-Authored-By: 6543 <6543@obermui.de> * Update models/issue_label.go * update comments * Update routers/org/setting.go Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
5 years ago
Git LFS support v2 (#122) * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
8 years ago
Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766) * Multiple GitGraph improvements. Add backend support for excluding PRs, selecting branches and files. Fix #10327 Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * Only show refs in dropdown we display on the graph Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * use flexbox for ui header Signed-off-by: Andrew Thornton <art27@cantab.net> * Move Hide Pull Request button to the dropdown Signed-off-by: Andrew Thornton <art27@cantab.net> * Add SHA and user pictures Signed-off-by: Andrew Thornton <art27@cantab.net> * fix test Signed-off-by: Andrew Thornton <art27@cantab.net> * fix test 2 Signed-off-by: Andrew Thornton <art27@cantab.net> * fixes * async * more tweaks * use tabs in tmpl Signed-off-by: Andrew Thornton <art27@cantab.net> * remove commented thing Signed-off-by: Andrew Thornton <art27@cantab.net> * fix linting Signed-off-by: Andrew Thornton <art27@cantab.net> * Update web_src/js/features/gitgraph.js Co-authored-by: silverwind <me@silverwind.io> * graph tweaks * more tweaks * add title Signed-off-by: Andrew Thornton <art27@cantab.net> * fix loading indicator z-index and position Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Feature: Timetracking (#2211) * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
8 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Shows total tracked time in issue and milestone list (#3341) * Show total tracked time in issue and milestone list Show total tracked time at issue page Signed-off-by: Jonas Franz <info@jonasfranz.software> * Optimizing TotalTimes by using SumInt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixing wrong total times for milestones caused by a missing JOIN Adding unit tests for total times Signed-off-by: Jonas Franz <info@jonasfranz.software> * Logging error instead of ignoring it Signed-off-by: Jonas Franz <info@jonasfranz.software> * Correcting spelling mistakes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change error message to a short version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add error handling to TotalTimes Add variable for totalTimes Signed-off-by: Jonas Franz <info@jonasfranz.de> * Introduce TotalTrackedTimes as variable of issue Load TotalTrackedTimes by loading attributes of IssueList Load TotalTrackedTimes by loading attributes of single issue Add Sec2Time as helper to use it in templates Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fixed test + gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Load TotalTrackedTimes via MilestoneList instead of single requests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add documentation for MilestoneList Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change comment from SQL query to description Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit test by using int64 instead of int Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if timetracker is enabled Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by enabling timetracking Signed-off-by: Jonas Franz <info@jonasfranz.de>
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Issue due date (#3794) * Started adding deadline to ui * Implemented basic issue due date managing * Improved UI for due date managing * Added at least write access to the repo in order to modify issue due dates * Ui improvements * Added issue comments creation when adding/modifying/removing a due date * Show due date in issue list * Added api support for issue due dates * Fixed lint suggestions * Added deadline to sdk * Updated css * Added support for adding/modifiying deadlines for pull requests via api * Fixed comments not created when updating or removing a deadline * update sdk (will do properly once go-gitea/go-sdk#103 is merged) * enhanced updateIssueDeadline * Removed unnessecary Issue.DeadlineString * UI improvements * Small improvments to comment creation + ui & validation improvements * Check if an issue is overdue is now a seperate function * Updated go-sdk with govendor as it was merged * Simplified isOverdue method * removed unessecary deadline to 0 set * Update swagger definitions * Added missing return * Added an explanary comment * Improved updateIssueDeadline method so it'll only update `deadline_unix` * Small changes and improvements * no need to explicitly load the issue when updating a deadline, just use whats already there * small optimisations * Added check if a deadline was modified before updating it * Moved comment creating logic into its own function * Code cleanup for creating deadline comment * locale improvement * When modifying a deadline, the old deadline is saved with the comment * small improvments to xorm session handling when updating an issue deadline + style nitpicks * style nitpicks * Moved checking for if the user has write acces to middleware
7 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
9 years ago
10 years ago
10 years ago
Change target branch for pull request (#6488) * Adds functionality to change target branch of created pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use const instead of var in JavaScript additions Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Check if branches are equal and if PR already exists before changing target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Make sure to check all commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Print error messages for user as error flash message Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Disallow changing target branch of closed or merged pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Resolve conflicts after merge of upstream/master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change order of branch select fields Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes duplicate check Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use ctx.Tr for translations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Recompile JS Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use correct translation namespace Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove redundant if condition Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves most change branch logic into pull service Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Completes comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Add Ref to ChangesPayload for logging changed target branches instead of creating a new struct Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Revert changes to go.mod Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Directly use createComment method Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return 404 if pull request is not found. Move written check up Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove variable declaration Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return client errors on change pull request target errors Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error in commit.HasPreviousCommit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds blank line Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Test patch before persisting new target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update patch before testing (not working) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes patch calls when changeing pull request target Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unneeded check for base name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ChangeTargetBranch completely to pull service. Update patch status. Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Set webhook mode after errors were validated Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update PR in one transaction Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Move logic for check if head is equal with branch to pull model Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment and simplify return Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjust CreateComment method call Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years ago
10 years ago
Change target branch for pull request (#6488) * Adds functionality to change target branch of created pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use const instead of var in JavaScript additions Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Check if branches are equal and if PR already exists before changing target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Make sure to check all commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Print error messages for user as error flash message Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Disallow changing target branch of closed or merged pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Resolve conflicts after merge of upstream/master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change order of branch select fields Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes duplicate check Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use ctx.Tr for translations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Recompile JS Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use correct translation namespace Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove redundant if condition Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves most change branch logic into pull service Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Completes comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Add Ref to ChangesPayload for logging changed target branches instead of creating a new struct Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Revert changes to go.mod Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Directly use createComment method Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return 404 if pull request is not found. Move written check up Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove variable declaration Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return client errors on change pull request target errors Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error in commit.HasPreviousCommit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds blank line Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Test patch before persisting new target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update patch before testing (not working) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes patch calls when changeing pull request target Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unneeded check for base name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ChangeTargetBranch completely to pull service. Update patch status. Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Set webhook mode after errors were validated Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update PR in one transaction Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Move logic for check if head is equal with branch to pull model Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment and simplify return Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjust CreateComment method call Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years ago
10 years ago
Change target branch for pull request (#6488) * Adds functionality to change target branch of created pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use const instead of var in JavaScript additions Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Check if branches are equal and if PR already exists before changing target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Make sure to check all commits Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Print error messages for user as error flash message Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Disallow changing target branch of closed or merged pull requests Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Resolve conflicts after merge of upstream/master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change order of branch select fields Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes duplicate check Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use ctx.Tr for translations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Recompile JS Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use correct translation namespace Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove redundant if condition Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves most change branch logic into pull service Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Completes comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Add Ref to ChangesPayload for logging changed target branches instead of creating a new struct Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Revert changes to go.mod Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Directly use createComment method Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return 404 if pull request is not found. Move written check up Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Remove variable declaration Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return client errors on change pull request target errors Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error in commit.HasPreviousCommit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds blank line Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Test patch before persisting new target branch Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update patch before testing (not working) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes patch calls when changeing pull request target Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unneeded check for base name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ChangeTargetBranch completely to pull service. Update patch status. Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Set webhook mode after errors were validated Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update PR in one transaction Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Move logic for check if head is equal with branch to pull model Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment and simplify return Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjust CreateComment method call Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years ago
[Enhancement] Allow admin to merge pr with protected file changes (#12078) * [Enhancement] Allow admin to merge pr with protected file changes As tilte, show protected message in diff page and merge box. Signed-off-by: a1012112796 <1012112796@qq.com> * remove unused ver * Update options/locale/locale_en-US.ini Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> * Add TrN * Apply suggestions from code review * fix lint * Update options/locale/locale_en-US.ini Co-authored-by: zeripath <art27@cantab.net> * Apply suggestions from code review * move pr proteced files check to TestPatch * Call TestPatch when protected branches settings changed * Apply review suggestion @CirnoT * move to service @lunny * slightly restructure routers/private/hook.go Adds a lot of comments and simplifies the logic Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * skip duplicate protected files check * fix check logic * slight refactor of TestPatch Signed-off-by: Andrew Thornton <art27@cantab.net> * When checking for protected files changes in TestPatch use the temporary repository Signed-off-by: Andrew Thornton <art27@cantab.net> * fix introduced issue with hook Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove the check on PR index being greater than 0 as it unnecessary Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 years ago
Add configurable Trust Models (#11712) * Add configurable Trust Models Gitea's default signature verification model differs from GitHub. GitHub uses signatures to verify that the committer is who they say they are - meaning that when GitHub makes a signed commit it must be the committer. The GitHub model prevents re-publishing of commits after revocation of a key and prevents re-signing of other people's commits to create a completely trusted repository signed by one key or a set of trusted keys. The default behaviour of Gitea in contrast is to always display the avatar and information related to a signature. This allows signatures to be decoupled from the committer. That being said, allowing arbitary users to present other peoples commits as theirs is not necessarily desired therefore we have a trust model whereby signatures from collaborators are marked trusted, signatures matching the commit line are marked untrusted and signatures that match a user in the db but not the committer line are marked unmatched. The problem with this model is that this conflicts with Github therefore we need to provide an option to allow users to choose the Github model should they wish to. Signed-off-by: Andrew Thornton <art27@cantab.net> * Adjust locale strings Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Co-authored-by: 6543 <6543@obermui.de> * Update models/gpg_key.go * Add migration for repository Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
Add configurable Trust Models (#11712) * Add configurable Trust Models Gitea's default signature verification model differs from GitHub. GitHub uses signatures to verify that the committer is who they say they are - meaning that when GitHub makes a signed commit it must be the committer. The GitHub model prevents re-publishing of commits after revocation of a key and prevents re-signing of other people's commits to create a completely trusted repository signed by one key or a set of trusted keys. The default behaviour of Gitea in contrast is to always display the avatar and information related to a signature. This allows signatures to be decoupled from the committer. That being said, allowing arbitary users to present other peoples commits as theirs is not necessarily desired therefore we have a trust model whereby signatures from collaborators are marked trusted, signatures matching the commit line are marked untrusted and signatures that match a user in the db but not the committer line are marked unmatched. The problem with this model is that this conflicts with Github therefore we need to provide an option to allow users to choose the Github model should they wish to. Signed-off-by: Andrew Thornton <art27@cantab.net> * Adjust locale strings Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Co-authored-by: 6543 <6543@obermui.de> * Update models/gpg_key.go * Add migration for repository Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
10 years ago
11 years ago
10 years ago
10 years ago
Graceful Queues: Issue Indexing and Tasks (#9363) * Queue: Add generic graceful queues with settings * Queue & Setting: Add worker pool implementation * Queue: Add worker settings * Queue: Make resizing worker pools * Queue: Add name variable to queues * Queue: Add monitoring * Queue: Improve logging * Issues: Gracefulise the issues indexer Remove the old now unused specific queues * Task: Move to generic queue and gracefulise * Issues: Standardise the issues indexer queue settings * Fix test * Queue: Allow Redis to connect to unix * Prevent deadlock during early shutdown of issue indexer * Add MaxWorker settings to queues * Merge branch 'master' into graceful-queues * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_disk.go * Update modules/queue/queue_disk_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Rename queue.Description to queue.ManagedQueue as per @guillep2k * Cancel pool workers when removed * Remove dependency on queue from setting * Update modules/queue/queue_redis.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * As per @guillep2k add mutex locks on shutdown/terminate * move unlocking out of setInternal * Add warning if number of workers < 0 * Small changes as per @guillep2k * No redis host specified not found * Clean up documentation for queues * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md * Update modules/indexer/issues/indexer_test.go * Ensure that persistable channel queue is added to manager * Rename QUEUE_NAME REDIS_QUEUE_NAME * Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME" This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
Repository avatars (#6986) * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
6 years ago
Adds side-by-side diff for images (#6784) * Adds side-by-side diff for images Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Explain blank imports Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Use complete word for width and height labels on image compare Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update index.css from master Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Moves ImageInfo to git commit file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Assign ImageInfo function for template and sets correct target for BeforeSourcePath Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds missing comment Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Return error if ImageInfo failed Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Avoid template panic when ImageInfo failed for some reason Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Show file size on image diff Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Removes unused helper function Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Reverts copyright year change Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Close file reader Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update commit.go Sets correct data key * Moves reader.Close() up a few lines * Updates index.css * Updates CSS file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Transfers adjustments for image compare to compare.go file Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adjusts variable name Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Apply lesshint recommendations Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Do not show old image on image compare if it is not in index of base commit Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Change file size text Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
6 years ago
9 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
[Enhancement] Allow admin to merge pr with protected file changes (#12078) * [Enhancement] Allow admin to merge pr with protected file changes As tilte, show protected message in diff page and merge box. Signed-off-by: a1012112796 <1012112796@qq.com> * remove unused ver * Update options/locale/locale_en-US.ini Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> * Add TrN * Apply suggestions from code review * fix lint * Update options/locale/locale_en-US.ini Co-authored-by: zeripath <art27@cantab.net> * Apply suggestions from code review * move pr proteced files check to TestPatch * Call TestPatch when protected branches settings changed * Apply review suggestion @CirnoT * move to service @lunny * slightly restructure routers/private/hook.go Adds a lot of comments and simplifies the logic Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * skip duplicate protected files check * fix check logic * slight refactor of TestPatch Signed-off-by: Andrew Thornton <art27@cantab.net> * When checking for protected files changes in TestPatch use the temporary repository Signed-off-by: Andrew Thornton <art27@cantab.net> * fix introduced issue with hook Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove the check on PR index being greater than 0 as it unnecessary Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
9 years ago
9 years ago
9 years ago
10 years ago
Add Organization Wide Labels (#10814) * Add organization wide labels Implement organization wide labels similar to organization wide webhooks. This lets you create individual labels for organizations that can be used for all repos under that organization (so being able to reuse the same label across multiple repos). This makes it possible for small organizations with many repos to use labels effectively. Fixes #7406 * Add migration * remove comments * fix tests * Update options/locale/locale_en-US.ini Removed unused translation string * show org labels in issue search label filter * Use more clear var name * rename migration after merge from master * comment typo * update migration again after rebase with master * check for orgID <=0 per guillep2k review * fmt * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * remove unused code * Make sure RepoID is 0 when searching orgID per code review * more changes/code review requests * More descriptive translation var per code review * func description/delete comment when issue label deleted instead of hiding it * remove comment * only use issues in that repo when calculating number of open issues for org label on repo label page * Add integration test for IssuesSearch API with labels * remove unused function * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Use subquery in GetLabelIDsInReposByNames * Fix tests to use correct orgID * fix more tests * IssuesSearch api now uses new BuildLabelNamesIssueIDsCondition. Add a few more tests as well * update comment for clarity * Revert previous code change now that we can use the new BuildLabelNamesIssueIDsCondition * Don't sort repos by date in IssuesSearch API After much debugging I've found a strange issue where in some cases MySQL will return a different result than other enigines if a query is sorted by a null collumn. For example with our integration test data where we don't set updated_unix in repository fixtures: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 45 Returns different results for MySQL than other engines. However, the similar query: SELECT `id`, `owner_id`, `owner_name`, `lower_name`, `name`, `description`, `website`, `original_service_type`, `original_url`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_empty`, `is_archived`, `is_mirror`, `status`, `is_fork`, `fork_id`, `is_template`, `template_id`, `size`, `is_fsck_enabled`, `close_issues_via_commit_in_any_branch`, `topics`, `avatar`, `created_unix`, `updated_unix` FROM `repository` ORDER BY updated_unix DESC LIMIT 15 OFFSET 30 Returns the same results. This causes integration tests to fail on MySQL in certain cases but would never show up in a real installation. Since this API call always returns issues based on the optionally provided repo_priority_id or the issueID itself, there is no change to results by changing the repo sorting method used to get ids earlier in the function. * linter is back! * code review * remove now unused option * Fix newline at end of files * more unused code * update to master * check for matching ids before query * Update models/issue_label.go Co-Authored-By: 6543 <6543@obermui.de> * Update models/issue_label.go * update comments * Update routers/org/setting.go Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
5 years ago
9 years ago
9 years ago
9 years ago
Add ssh certificate support (#12281) * Add ssh certificate support * Add ssh certificate support to builtin ssh * Write trusted-user-ca-keys.pem based on configuration * Update app.example.ini * Update templates/user/settings/keys_principal.tmpl Co-authored-by: silverwind <me@silverwind.io> * Remove unused locale string * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * Add missing creation of SSH.Rootpath * Update cheatsheet, example and locale strings * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go Co-authored-by: zeripath <art27@cantab.net> * Update models/ssh_key.go * Optimizations based on feedback * Validate CA keys for external sshd * Add filename option and change default filename Add a SSH_TRUSTED_USER_CA_KEYS_FILENAME option which default is RUN_USER/.ssh/gitea-trusted-user-ca-keys.pem Do not write a file when SSH_TRUSTED_USER_CA_KEYS is empty. Add some more documentation. * Remove unneeded principalkey functions * Add blank line * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Add SSH_AUTHORIZED_PRINCIPALS_ALLOW option This adds a SSH_AUTHORIZED_PRINCIPALS_ALLOW which is default email,username this means that users only can add the principals that match their email or username. To allow anything the admin need to set the option anything. This allows for a safe default in gitea which protects against malicious users using other user's prinicipals. (before that user could set it). This commit also has some small other fixes from the last code review. * Rewrite principal keys file on user deletion * Use correct rewrite method * Set correct AuthorizedPrincipalsBackup default setting * Rewrite principalsfile when adding principals * Add update authorized_principals option to admin dashboard * Handle non-primary emails Signed-off-by: Andrew Thornton <art27@cantab.net> * Add the command actually to the dashboard template * Update models/ssh_key.go Co-authored-by: silverwind <me@silverwind.io> * By default do not show principal options unless there are CA keys set or they are explicitly set Signed-off-by: Andrew Thornton <art27@cantab.net> * allow settings when enabled * Fix typos in TrustedUserCAKeys path * Allow every CASignatureAlgorithms algorithm As this depends on the content of TrustedUserCAKeys we should allow all signature algorithms as admins can choose the specific algorithm on their signing CA * Update models/ssh_key.go Co-authored-by: Lauris BH <lauris@nix.lv> * Fix linting issue Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Restricted users (#6274) * Restricted users (#4334): initial implementation * Add User.IsRestricted & UI to edit it * Pass user object instead of user id to places where IsRestricted flag matters * Restricted users: maintain access rows for all referenced repos (incl public) * Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses * Add basic repo access tests for restricted users Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Mention restricted users in the faq Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Remove unnecessary `org.IsOrganization()` call Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert to an `int64` keyed `accessMap` * Add type `userAccess` * Add convenience func updateUserAccess() * Turn accessMap into a `map[int64]userAccess` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * or even better: `map[int64]*userAccess` * updateUserAccess(): use tighter syntax as suggested by lafriks * even tighter * Avoid extra loop * Don't disclose limited orgs to unauthenticated users * Don't assume block only applies to orgs * Use an array of `VisibleType` for filtering * fix yet another thinko * Ok - no need for u * Revert "Ok - no need for u" This reverts commit 5c3e886aabd5acd997a3b35687d322439732c200. Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
Restricted users (#6274) * Restricted users (#4334): initial implementation * Add User.IsRestricted & UI to edit it * Pass user object instead of user id to places where IsRestricted flag matters * Restricted users: maintain access rows for all referenced repos (incl public) * Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses * Add basic repo access tests for restricted users Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Mention restricted users in the faq Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert unnecessary change `.isUserPartOfOrg` -> `.IsUserPartOfOrg` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Remove unnecessary `org.IsOrganization()` call Signed-off-by: Manush Dodunekov <manush@stendahls.se> * Revert to an `int64` keyed `accessMap` * Add type `userAccess` * Add convenience func updateUserAccess() * Turn accessMap into a `map[int64]userAccess` Signed-off-by: Manush Dodunekov <manush@stendahls.se> * or even better: `map[int64]*userAccess` * updateUserAccess(): use tighter syntax as suggested by lafriks * even tighter * Avoid extra loop * Don't disclose limited orgs to unauthenticated users * Don't assume block only applies to orgs * Use an array of `VisibleType` for filtering * fix yet another thinko * Ok - no need for u * Revert "Ok - no need for u" This reverts commit 5c3e886aabd5acd997a3b35687d322439732c200. Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
Adopt repositories (#12920) * Don't automatically delete repository files if they are present Prior to this PR Gitea would delete any repository files if they are present during creation or migration. This can in certain circumstances lead to data-loss and is slightly unpleasant. This PR provides a mechanism for Gitea to adopt repositories on creation and otherwise requires an explicit flag for deletion. PushCreate is slightly different - the create will cause adoption if that is allowed otherwise it will delete the data if that is allowed. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix tests and migrate overwrite Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @lunny Only offer to adopt or overwrite if the user can do that. Allow the site administrator to adopt or overwrite in all circumstances Signed-off-by: Andrew Thornton <art27@cantab.net> * Use setting.Repository.DefaultBranch for the default branch Signed-off-by: Andrew Thornton <art27@cantab.net> * Always set setting.Repository.DefaultBranch Signed-off-by: Andrew Thornton <art27@cantab.net> * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * update templates Signed-off-by: Andrew Thornton <art27@cantab.net> * ensure repo closed Signed-off-by: Andrew Thornton <art27@cantab.net> * Rewrite of adoption as per @6543 and @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review * update swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * missing not Signed-off-by: Andrew Thornton <art27@cantab.net> * add modals and flash reporting Signed-off-by: Andrew Thornton <art27@cantab.net> * Make the unadopted page searchable Signed-off-by: Andrew Thornton <art27@cantab.net> * Add API Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * fix swagger Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle empty and non-master branched repositories Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * remove commented out code Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
Oauth2 consumer (#679) * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
8 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
5 years ago
Git LFS support v2 (#122) * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
8 years ago
10 years ago
10 years ago
Add support for federated avatars (#3320) * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
9 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
6 years ago
Graceful Queues: Issue Indexing and Tasks (#9363) * Queue: Add generic graceful queues with settings * Queue & Setting: Add worker pool implementation * Queue: Add worker settings * Queue: Make resizing worker pools * Queue: Add name variable to queues * Queue: Add monitoring * Queue: Improve logging * Issues: Gracefulise the issues indexer Remove the old now unused specific queues * Task: Move to generic queue and gracefulise * Issues: Standardise the issues indexer queue settings * Fix test * Queue: Allow Redis to connect to unix * Prevent deadlock during early shutdown of issue indexer * Add MaxWorker settings to queues * Merge branch 'master' into graceful-queues * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_disk.go * Update modules/queue/queue_disk_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Rename queue.Description to queue.ManagedQueue as per @guillep2k * Cancel pool workers when removed * Remove dependency on queue from setting * Update modules/queue/queue_redis.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * As per @guillep2k add mutex locks on shutdown/terminate * move unlocking out of setInternal * Add warning if number of workers < 0 * Small changes as per @guillep2k * No redis host specified not found * Clean up documentation for queues * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md * Update modules/indexer/issues/indexer_test.go * Ensure that persistable channel queue is added to manager * Rename QUEUE_NAME REDIS_QUEUE_NAME * Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME" This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
Graceful Queues: Issue Indexing and Tasks (#9363) * Queue: Add generic graceful queues with settings * Queue & Setting: Add worker pool implementation * Queue: Add worker settings * Queue: Make resizing worker pools * Queue: Add name variable to queues * Queue: Add monitoring * Queue: Improve logging * Issues: Gracefulise the issues indexer Remove the old now unused specific queues * Task: Move to generic queue and gracefulise * Issues: Standardise the issues indexer queue settings * Fix test * Queue: Allow Redis to connect to unix * Prevent deadlock during early shutdown of issue indexer * Add MaxWorker settings to queues * Merge branch 'master' into graceful-queues * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/indexer/issues/indexer.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update modules/queue/queue_disk.go * Update modules/queue/queue_disk_channel.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Rename queue.Description to queue.ManagedQueue as per @guillep2k * Cancel pool workers when removed * Remove dependency on queue from setting * Update modules/queue/queue_redis.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * As per @guillep2k add mutex locks on shutdown/terminate * move unlocking out of setInternal * Add warning if number of workers < 0 * Small changes as per @guillep2k * No redis host specified not found * Clean up documentation for queues * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md * Update modules/indexer/issues/indexer_test.go * Ensure that persistable channel queue is added to manager * Rename QUEUE_NAME REDIS_QUEUE_NAME * Revert "Rename QUEUE_NAME REDIS_QUEUE_NAME" This reverts commit 1f83b4fc9b9dabda186257b38c265fe7012f90df. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however. ## Features - [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.) - [x] Verify commits signed with the default gpg as valid - [x] Signer, Committer and Author can all be different - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon. - [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg - [x] Try to match the default key with a user on gitea - this is done at verification time - [x] Make things configurable? - app.ini configuration done - [x] when checking commits are signed need to check if they're actually verifiable too - [x] Add documentation I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
6 years ago
Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however. ## Features - [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.) - [x] Verify commits signed with the default gpg as valid - [x] Signer, Committer and Author can all be different - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon. - [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg - [x] Try to match the default key with a user on gitea - this is done at verification time - [x] Make things configurable? - app.ini configuration done - [x] when checking commits are signed need to check if they're actually verifiable too - [x] Add documentation I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
6 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605
  1. home = Home
  2. dashboard = Dashboard
  3. explore = Explore
  4. help = Help
  5. sign_in = Sign In
  6. sign_in_with = Sign In With
  7. sign_out = Sign Out
  8. sign_up = Register
  9. link_account = Link Account
  10. register = Register
  11. website = Website
  12. version = Version
  13. powered_by = Powered by %s
  14. page = Page
  15. template = Template
  16. language = Language
  17. notifications = Notifications
  18. active_stopwatch = Active Time Tracker
  19. create_new = Create…
  20. user_profile_and_more = Profile and Settings…
  21. signed_in_as = Signed in as
  22. enable_javascript = This website works better with JavaScript.
  23. toc = Table of Contents
  24. licenses = Licenses
  25. return_to_gitea = Return to Gitea
  26. username = Username
  27. email = Email Address
  28. password = Password
  29. access_token = Access Token
  30. re_type = Re-Type Password
  31. captcha = CAPTCHA
  32. twofa = Two-Factor Authentication
  33. twofa_scratch = Two-Factor Scratch Code
  34. passcode = Passcode
  35. u2f_insert_key = Insert your security key
  36. u2f_sign_in = Press the button on your security key. If your security key has no button, re-insert it.
  37. u2f_press_button = Please press the button on your security key…
  38. u2f_use_twofa = Use a two-factor code from your phone
  39. u2f_error = Could not read your security key.
  40. u2f_unsupported_browser = Your browser does not support U2F security keys.
  41. u2f_error_1 = An unknown error occurred. Please retry.
  42. u2f_error_2 = Please make sure to use the correct, encrypted (https://) URL.
  43. u2f_error_3 = The server could not process your request.
  44. u2f_error_4 = The security key is not permitted for this request. Please make sure that the key is not already registered.
  45. u2f_error_5 = Timeout reached before your key could be read. Please reload this page and retry.
  46. u2f_reload = Reload
  47. repository = Repository
  48. organization = Organization
  49. mirror = Mirror
  50. new_repo = New Repository
  51. new_migrate = New Migration
  52. new_mirror = New Mirror
  53. new_fork = New Repository Fork
  54. new_org = New Organization
  55. new_project = New Project
  56. new_project_board = New Project board
  57. manage_org = Manage Organizations
  58. admin_panel = Site Administration
  59. account_settings = Account Settings
  60. settings = Settings
  61. your_profile = Profile
  62. your_starred = Starred
  63. your_settings = Settings
  64. all = All
  65. sources = Sources
  66. mirrors = Mirrors
  67. collaborative = Collaborative
  68. forks = Forks
  69. activities = Activities
  70. pull_requests = Pull Requests
  71. issues = Issues
  72. milestones = Milestones
  73. ok = OK
  74. cancel = Cancel
  75. save = Save
  76. add = Add
  77. add_all = Add All
  78. remove = Remove
  79. remove_all = Remove All
  80. write = Write
  81. preview = Preview
  82. loading = Loading…
  83. step1 = Step 1:
  84. step2 = Step 2:
  85. error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
  86. [error]
  87. occurred = An error has occurred
  88. report_message = If you are sure this is a Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.
  89. [startpage]
  90. app_desc = A painless, self-hosted Git service
  91. install = Easy to install
  92. install_desc = Simply <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/install-from-binary/">run the binary</a> for your platform, ship it with <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, or get it <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/install-from-package/">packaged</a>.
  93. platform = Cross-platform
  94. platform_desc = Gitea runs anywhere <a target="_blank" rel="noopener noreferrer" href="http://golang.org/">Go</a> can compile for: Windows, macOS, Linux, ARM, etc. Choose the one you love!
  95. lightweight = Lightweight
  96. lightweight_desc = Gitea has low minimal requirements and can run on an inexpensive Raspberry Pi. Save your machine energy!
  97. license = Open Source
  98. license_desc = Go get <a target="_blank" rel="noopener noreferrer" href="https://code.gitea.io/gitea">code.gitea.io/gitea</a>! Join us by <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">contributing</a> to make this project even better. Don't be shy to be a contributor!
  99. [install]
  100. install = Installation
  101. title = Initial Configuration
  102. docker_helper = If you run Gitea inside Docker, please read the <a target="_blank" rel="noopener noreferrer" href="%s">documentation</a> before changing any settings.
  103. requite_db_desc = Gitea requires MySQL, PostgreSQL, MSSQL or SQLite3.
  104. db_title = Database Settings
  105. db_type = Database Type
  106. host = Host
  107. user = Username
  108. password = Password
  109. db_name = Database Name
  110. db_helper = Note to MySQL users: please use the InnoDB storage engine and if you use "utf8mb4", your InnoDB version must be greater than 5.6 .
  111. db_schema = Schema
  112. db_schema_helper = Leave blank for database default ("public").
  113. ssl_mode = SSL
  114. charset = Charset
  115. path = Path
  116. sqlite_helper = File path for the SQLite3 database.<br>Enter an absolute path if you run Gitea as a service.
  117. err_empty_db_path = The SQLite3 database path cannot be empty.
  118. no_admin_and_disable_registration = You cannot disable user self-registration without creating an administrator account.
  119. err_empty_admin_password = The administrator password cannot be empty.
  120. err_empty_admin_email = The administrator email cannot be empty.
  121. err_admin_name_is_reserved = Administrator Username is invalid, username is reserved
  122. err_admin_name_pattern_not_allowed = Administrator username is invalid, the username matches a reserved pattern
  123. err_admin_name_is_invalid = Administrator Username is invalid
  124. general_title = General Settings
  125. app_name = Site Title
  126. app_name_helper = You can enter your company name here.
  127. repo_path = Repository Root Path
  128. repo_path_helper = Remote Git repositories will be saved to this directory.
  129. lfs_path = Git LFS Root Path
  130. lfs_path_helper = Files tracked by Git LFS will be stored in this directory. Leave empty to disable.
  131. run_user = Run As Username
  132. run_user_helper = Enter the operating system username that Gitea runs as. Note that this user must have access to the repository root path.
  133. domain = SSH Server Domain
  134. domain_helper = Domain or host address for SSH clone URLs.
  135. ssh_port = SSH Server Port
  136. ssh_port_helper = Port number your SSH server listens on. Leave empty to disable.
  137. http_port = Gitea HTTP Listen Port
  138. http_port_helper = Port number the Giteas web server will listen on.
  139. app_url = Gitea Base URL
  140. app_url_helper = Base address for HTTP(S) clone URLs and email notifications.
  141. log_root_path = Log Path
  142. log_root_path_helper = Log files will be written to this directory.
  143. optional_title = Optional Settings
  144. email_title = Email Settings
  145. smtp_host = SMTP Host
  146. smtp_from = Send Email As
  147. smtp_from_helper = Email address Gitea will use. Enter a plain email address or use the "Name" <email@example.com> format.
  148. mailer_user = SMTP Username
  149. mailer_password = SMTP Password
  150. register_confirm = Require Email Confirmation to Register
  151. mail_notify = Enable Email Notifications
  152. server_service_title = Server and Third-Party Service Settings
  153. offline_mode = Enable Local Mode
  154. offline_mode_popup = Disable third-party content delivery networks and serve all resources locally.
  155. disable_gravatar = Disable Gravatar
  156. disable_gravatar_popup = Disable Gravatar and third-party avatar sources. A default avatar will be used unless a user locally uploads an avatar.
  157. federated_avatar_lookup = Enable Federated Avatars
  158. federated_avatar_lookup_popup = Enable federated avatar lookup using Libravatar.
  159. disable_registration = Disable Self-Registration
  160. disable_registration_popup = Disable user self-registration. Only administrators will be able to create new user accounts.
  161. allow_only_external_registration_popup = Allow Registration Only Through External Services
  162. openid_signin = Enable OpenID Sign-In
  163. openid_signin_popup = Enable user sign-in via OpenID.
  164. openid_signup = Enable OpenID Self-Registration
  165. openid_signup_popup = Enable OpenID-based user self-registration.
  166. enable_captcha = Enable registration CAPTCHA
  167. enable_captcha_popup = Require a CAPTCHA for user self-registration.
  168. require_sign_in_view = Require Sign-In to View Pages
  169. require_sign_in_view_popup = Limit page access to signed-in users. Visitors will only see the 'sign in' and registration pages.
  170. admin_setting_desc = Creating an administrator account is optional. The first registered user will automatically become an administrator.
  171. admin_title = Administrator Account Settings
  172. admin_name = Administrator Username
  173. admin_password = Password
  174. confirm_password = Confirm Password
  175. admin_email = Email Address
  176. install_btn_confirm = Install Gitea
  177. test_git_failed = Could not test 'git' command: %v
  178. sqlite3_not_available = This Gitea version does not support SQLite3. Please download the official binary version from %s (not the 'gobuild' version).
  179. invalid_db_setting = The database settings are invalid: %v
  180. invalid_repo_path = The repository root path is invalid: %v
  181. run_user_not_match = The 'run as' username is not the current username: %s -> %s
  182. save_config_failed = Failed to save configuration: %v
  183. invalid_admin_setting = Administrator account setting is invalid: %v
  184. install_success = Welcome! Thank you for choosing Gitea. Have fun and take care!
  185. invalid_log_root_path = The log path is invalid: %v
  186. default_keep_email_private = Hide Email Addresses by Default
  187. default_keep_email_private_popup = Hide email addresses of new user accounts by default.
  188. default_allow_create_organization = Allow Creation of Organizations by Default
  189. default_allow_create_organization_popup = Allow new user accounts to create organizations by default.
  190. default_enable_timetracking = Enable Time Tracking by Default
  191. default_enable_timetracking_popup = Enable time tracking for new repositories by default.
  192. no_reply_address = Hidden Email Domain
  193. no_reply_address_helper = Domain name for users with a hidden email address. For example, the username 'joe' will be logged in Git as 'joe@noreply.example.org' if the hidden email domain is set to 'noreply.example.org'.
  194. password_algorithm = Password Hash Algorithm
  195. password_algorithm_helper = Set the password hashing algorithm. Algorithms have differing requirements and strength. `argon2` whilst having good characteristics uses a lot of memory and may be inappropriate for small systems.
  196. [home]
  197. uname_holder = Username or Email Address
  198. password_holder = Password
  199. switch_dashboard_context = Switch Dashboard Context
  200. my_repos = Repositories
  201. show_more_repos = Show more repositories…
  202. collaborative_repos = Collaborative Repositories
  203. my_orgs = My Organizations
  204. my_mirrors = My Mirrors
  205. view_home = View %s
  206. search_repos = Find a repository…
  207. filter = Other Filters
  208. filter_by_team_repositories = Filter by team repositories
  209. show_archived = Archived
  210. show_both_archived_unarchived = Showing both archived and unarchived
  211. show_only_archived = Showing only archived
  212. show_only_unarchived = Showing only unarchived
  213. show_private = Private
  214. show_both_private_public = Showing both public and private
  215. show_only_private = Showing only private
  216. show_only_public = Showing only public
  217. issues.in_your_repos = In your repositories
  218. [explore]
  219. repos = Repositories
  220. users = Users
  221. organizations = Organizations
  222. search = Search
  223. code = Code
  224. search.fuzzy = Fuzzy
  225. search.match = Match
  226. repo_no_results = No matching repositories found.
  227. user_no_results = No matching users found.
  228. org_no_results = No matching organizations found.
  229. code_no_results = No source code matching your search term found.
  230. code_search_results = Search results for '%s'
  231. code_last_indexed_at = Last indexed %s
  232. [auth]
  233. create_new_account = Register Account
  234. register_helper_msg = Already have an account? Sign in now!
  235. social_register_helper_msg = Already have an account? Link it now!
  236. disable_register_prompt = Registration is disabled. Please contact your site administrator.
  237. disable_register_mail = Email confirmation for registration is disabled.
  238. remember_me = Remember this Device
  239. forgot_password_title= Forgot Password
  240. forgot_password = Forgot password?
  241. sign_up_now = Need an account? Register now.
  242. sign_up_successful = Account was successfully created.
  243. confirmation_mail_sent_prompt = A new confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the registration process.
  244. must_change_password = Update your password
  245. allow_password_change = Require user to change password (recommended)
  246. reset_password_mail_sent_prompt = A confirmation email has been sent to <b>%s</b>. Please check your inbox within the next %s to complete the account recovery process.
  247. active_your_account = Activate Your Account
  248. account_activated = Account has been activated
  249. prohibit_login = Sign In Prohibited
  250. prohibit_login_desc = Your account is prohibited to sign in, please contact your site administrator.
  251. resent_limit_prompt = You have already requested an activation email recently. Please wait 3 minutes and try again.
  252. has_unconfirmed_mail = Hi %s, you have an unconfirmed email address (<b>%s</b>). If you haven't received a confirmation email or need to resend a new one, please click on the button below.
  253. resend_mail = Click here to resend your activation email
  254. email_not_associate = The email address is not associated with any account.
  255. send_reset_mail = Send Account Recovery Email
  256. reset_password = Account Recovery
  257. invalid_code = Your confirmation code is invalid or has expired.
  258. reset_password_helper = Recover Account
  259. reset_password_wrong_user = You are signed in as %s, but the account recovery link is for %s
  260. password_too_short = Password length cannot be less than %d characters.
  261. non_local_account = Non-local users can not update their password through the Gitea web interface.
  262. verify = Verify
  263. scratch_code = Scratch code
  264. use_scratch_code = Use a scratch code
  265. twofa_scratch_used = You have used your scratch code. You have been redirected to the two-factor settings page so you may remove your device enrollment or generate a new scratch code.
  266. twofa_passcode_incorrect = Your passcode is incorrect. If you misplaced your device, use your scratch code to sign in.
  267. twofa_scratch_token_incorrect = Your scratch code is incorrect.
  268. login_userpass = Sign In
  269. login_openid = OpenID
  270. oauth_signup_tab = Register New Account
  271. oauth_signup_title = Complete New Account
  272. oauth_signup_submit = Complete Account
  273. oauth_signin_tab = Link to Existing Account
  274. oauth_signin_title = Sign In to Authorize Linked Account
  275. oauth_signin_submit = Link Account
  276. openid_connect_submit = Connect
  277. openid_connect_title = Connect to an existing account
  278. openid_connect_desc = The chosen OpenID URI is unknown. Associate it with a new account here.
  279. openid_register_title = Create new account
  280. openid_register_desc = The chosen OpenID URI is unknown. Associate it with a new account here.
  281. openid_signin_desc = Enter your OpenID URI. For example: https://anne.me, bob.openid.org.cn or gnusocial.net/carry.
  282. disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator.
  283. email_domain_blacklisted = You cannot register with your email address.
  284. authorize_application = Authorize Application
  285. authorize_redirect_notice = You will be redirected to %s if you authorize this application.
  286. authorize_application_created_by = This application was created by %s.
  287. authorize_application_description = If you grant the access, it will be able to access and write to all your account information, including private repos and organisations.
  288. authorize_title = Authorize "%s" to access your account?
  289. authorization_failed = Authorization failed
  290. authorization_failed_desc = The authorization failed because we detected an invalid request. Please contact the maintainer of the app you've tried to authorize.
  291. disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator.
  292. sspi_auth_failed = SSPI authentication failed
  293. password_pwned = The password you chose is on a <a target="_blank" rel="noopener noreferrer" href="https://haveibeenpwned.com/Passwords">list of stolen passwords</a> previously exposed in public data breaches. Please try again with a different password.
  294. password_pwned_err = Could not complete request to HaveIBeenPwned
  295. [mail]
  296. activate_account = Please activate your account
  297. activate_email = Verify your email address
  298. reset_password = Recover your account
  299. register_success = Registration successful
  300. register_notify = Welcome to Gitea
  301. [modal]
  302. yes = Yes
  303. no = No
  304. modify = Update
  305. [form]
  306. UserName = Username
  307. RepoName = Repository name
  308. Email = Email address
  309. Password = Password
  310. Retype = Re-Type Password
  311. SSHTitle = SSH key name
  312. HttpsUrl = HTTPS URL
  313. PayloadUrl = Payload URL
  314. TeamName = Team name
  315. AuthName = Authorization name
  316. AdminEmail = Admin email
  317. NewBranchName = New branch name
  318. CommitSummary = Commit summary
  319. CommitMessage = Commit message
  320. CommitChoice = Commit choice
  321. TreeName = File path
  322. Content = Content
  323. SSPISeparatorReplacement = Separator
  324. SSPIDefaultLanguage = Default Language
  325. require_error = ` cannot be empty.`
  326. alpha_dash_error = ` should contain only alphanumeric, dash ('-') and underscore ('_') characters.`
  327. alpha_dash_dot_error = ` should contain only alphanumeric, dash ('-'), underscore ('_') and dot ('.') characters.`
  328. git_ref_name_error = ` must be a well-formed Git reference name.`
  329. size_error = ` must be size %s.`
  330. min_size_error = ` must contain at least %s characters.`
  331. max_size_error = ` must contain at most %s characters.`
  332. email_error = ` is not a valid email address.`
  333. url_error = ` is not a valid URL.`
  334. include_error = ` must contain substring '%s'.`
  335. glob_pattern_error = ` glob pattern is invalid: %s.`
  336. unknown_error = Unknown error:
  337. captcha_incorrect = The CAPTCHA code is incorrect.
  338. password_not_match = The passwords do not match.
  339. lang_select_error = Select a language from the list.
  340. username_been_taken = The username is already taken.
  341. username_change_not_local_user = Non-local users are not allowed to change their username.
  342. repo_name_been_taken = The repository name is already used.
  343. repository_files_already_exist = Files already exist for this repository. Contact the system administrator.
  344. repository_files_already_exist.adopt = Files already exist for this repository and can only be Adopted.
  345. repository_files_already_exist.delete = Files already exist for this repository. You must delete them.
  346. repository_files_already_exist.adopt_or_delete = Files already exist for this repository. Either adopt them or delete them.
  347. visit_rate_limit = Remote visit addressed rate limitation.
  348. 2fa_auth_required = Remote visit required two factors authentication.
  349. org_name_been_taken = The organization name is already taken.
  350. team_name_been_taken = The team name is already taken.
  351. team_no_units_error = Allow access to at least one repository section.
  352. email_been_used = The email address is already used.
  353. email_invalid = The email address is invalid.
  354. openid_been_used = The OpenID address '%s' is already used.
  355. username_password_incorrect = Username or password is incorrect.
  356. password_complexity = Password does not pass complexity requirements:
  357. password_lowercase_one = At least one lowercase character
  358. password_uppercase_one = At least one uppercase character
  359. password_digit_one = At least one digit
  360. password_special_one = At least one special character (punctuation, brackets, quotes, etc.)
  361. enterred_invalid_repo_name = The repository name you entered is incorrect.
  362. enterred_invalid_owner_name = The new owner name is not valid.
  363. enterred_invalid_password = The password you entered is incorrect.
  364. user_not_exist = The user does not exist.
  365. team_not_exist = The team does not exist.
  366. last_org_owner = You cannot remove the last user from the 'owners' team. There must be at least one owner for an organization.
  367. cannot_add_org_to_team = An organization cannot be added as a team member.
  368. invalid_ssh_key = Can not verify your SSH key: %s
  369. invalid_gpg_key = Can not verify your GPG key: %s
  370. invalid_ssh_principal = Invalid principal: %s
  371. unable_verify_ssh_key = "Can not verify the SSH key; double-check it for mistakes."
  372. auth_failed = Authentication failed: %v
  373. still_own_repo = "Your account owns one or more repositories; delete or transfer them first."
  374. still_has_org = "Your account is a member of one or more organizations; leave them first."
  375. org_still_own_repo = "This organization still owns one or more repositories; delete or transfer them first."
  376. target_branch_not_exist = Target branch does not exist.
  377. [user]
  378. change_avatar = Change your avatar…
  379. join_on = Joined on
  380. repositories = Repositories
  381. activity = Public Activity
  382. followers = Followers
  383. starred = Starred Repositories
  384. projects = Projects
  385. following = Following
  386. follow = Follow
  387. unfollow = Unfollow
  388. heatmap.loading = Loading Heatmap…
  389. user_bio = Biography
  390. disabled_public_activity = This user has disabled the public visibility of the activity.
  391. form.name_reserved = The username '%s' is reserved.
  392. form.name_pattern_not_allowed = The pattern '%s' is not allowed in a username.
  393. form.name_chars_not_allowed = User name '%s' contains invalid characters.
  394. [settings]
  395. profile = Profile
  396. account = Account
  397. password = Password
  398. security = Security
  399. avatar = Avatar
  400. ssh_gpg_keys = SSH / GPG Keys
  401. social = Social Accounts
  402. applications = Applications
  403. orgs = Manage Organizations
  404. repos = Repositories
  405. delete = Delete Account
  406. twofa = Two-Factor Authentication
  407. account_link = Linked Accounts
  408. organization = Organizations
  409. uid = Uid
  410. u2f = Security Keys
  411. public_profile = Public Profile
  412. biography_placeholder = Tell us a little bit about yourself
  413. profile_desc = Your email address will be used for notifications and other operations.
  414. password_username_disabled = Non-local users are not allowed to change their username. Please contact your site administrator for more details.
  415. full_name = Full Name
  416. website = Website
  417. location = Location
  418. update_theme = Update Theme
  419. update_profile = Update Profile
  420. update_language_not_found = Language '%s' is not available.
  421. update_profile_success = Your profile has been updated.
  422. change_username = Your username has been changed.
  423. change_username_prompt = Note: username changes also change your account URL.
  424. change_username_redirect_prompt = The old username will redirect until it is claimed.
  425. continue = Continue
  426. cancel = Cancel
  427. language = Language
  428. ui = Theme
  429. privacy = Privacy
  430. keep_activity_private = Hide the activity from the profile page
  431. keep_activity_private_popup = Makes the activity visible only for you and the admins
  432. lookup_avatar_by_mail = Look Up Avatar by Email Address
  433. federated_avatar_lookup = Federated Avatar Lookup
  434. enable_custom_avatar = Use Custom Avatar
  435. choose_new_avatar = Choose new avatar
  436. update_avatar = Update Avatar
  437. delete_current_avatar = Delete Current Avatar
  438. uploaded_avatar_not_a_image = The uploaded file is not an image.
  439. uploaded_avatar_is_too_big = The uploaded file has exceeded the maximum size.
  440. update_avatar_success = Your avatar has been updated.
  441. change_password = Update Password
  442. old_password = Current Password
  443. new_password = New Password
  444. retype_new_password = Re-Type New Password
  445. password_incorrect = The current password is incorrect.
  446. change_password_success = Your password has been updated. Sign in using your new password from now on.
  447. password_change_disabled = Non-local users can not update their password through the Gitea web interface.
  448. emails = Email Addresses
  449. manage_emails = Manage Email Addresses
  450. manage_themes = Select default theme
  451. manage_openid = Manage OpenID Addresses
  452. email_desc = Your primary email address will be used for notifications and other operations.
  453. theme_desc = This will be your default theme across the site.
  454. primary = Primary
  455. activated = Activated
  456. requires_activation = Requires activation
  457. primary_email = Make Primary
  458. activate_email = Send Activation
  459. activations_pending = Activations Pending
  460. delete_email = Remove
  461. email_deletion = Remove Email Address
  462. email_deletion_desc = The email address and related information will be removed from your account. Git commits by this email address will remain unchanged. Continue?
  463. email_deletion_success = The email address has been removed.
  464. theme_update_success = Your theme was updated.
  465. theme_update_error = The selected theme does not exist.
  466. openid_deletion = Remove OpenID Address
  467. openid_deletion_desc = Removing this OpenID address from your account will prevent you from signing in with it. Continue?
  468. openid_deletion_success = The OpenID address has been removed.
  469. add_new_email = Add New Email Address
  470. add_new_openid = Add New OpenID URI
  471. add_email = Add Email Address
  472. add_openid = Add OpenID URI
  473. add_email_confirmation_sent = A confirmation email has been sent to '%s'. Please check your inbox within the next %s to confirm your email address.
  474. add_email_success = The new email address has been added.
  475. email_preference_set_success = Email preference has been set successfully.
  476. add_openid_success = The new OpenID address has been added.
  477. keep_email_private = Hide Email Address
  478. keep_email_private_popup = Your email address will be hidden from other users.
  479. openid_desc = OpenID lets you delegate authentication to an external provider.
  480. manage_ssh_keys = Manage SSH Keys
  481. manage_ssh_principals = Manage SSH Certificate Principals
  482. manage_gpg_keys = Manage GPG Keys
  483. add_key = Add Key
  484. ssh_desc = These public SSH keys are associated with your account. The corresponding private keys allow full access to your repositories.
  485. principal_desc = These SSH certificate principals are associated with your account and allow full access to your repositories.
  486. gpg_desc = These public GPG keys are associated with your account. Keep your private keys safe as they allow commits to be verified.
  487. ssh_helper = <strong>Need help?</strong> Have a look at GitHub's guide to <a href="%s">create your own SSH keys</a> or solve <a href="%s">common problems</a> you may encounter using SSH.
  488. gpg_helper = <strong>Need help?</strong> Have a look at GitHub's guide <a href="%s">about GPG</a>.
  489. add_new_key = Add SSH Key
  490. add_new_gpg_key = Add GPG Key
  491. key_content_ssh_placeholder = Begins with 'ssh-ed25519', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521', 'sk-ecdsa-sha2-nistp256@openssh.com', or 'sk-ssh-ed25519@openssh.com'
  492. key_content_gpg_placeholder = Begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'
  493. add_new_principal = Add Principal
  494. ssh_key_been_used = This SSH key has already been added to the server.
  495. ssh_key_name_used = An SSH key with same name already exists on your account.
  496. ssh_principal_been_used = This principal has already been added to the server.
  497. gpg_key_id_used = A public GPG key with same ID already exists.
  498. gpg_no_key_email_found = This GPG key is not usable with any email address associated with your account.
  499. subkeys = Subkeys
  500. key_id = Key ID
  501. key_name = Key Name
  502. key_content = Content
  503. principal_content = Content
  504. add_key_success = The SSH key '%s' has been added.
  505. add_gpg_key_success = The GPG key '%s' has been added.
  506. add_principal_success = The SSH certificate principal '%s' has been added.
  507. delete_key = Remove
  508. ssh_key_deletion = Remove SSH Key
  509. gpg_key_deletion = Remove GPG Key
  510. ssh_principal_deletion = Remove SSH Certificate Principal
  511. ssh_key_deletion_desc = Removing an SSH key revokes its access to your account. Continue?
  512. gpg_key_deletion_desc = Removing a GPG key un-verifies commits signed by it. Continue?
  513. ssh_principal_deletion_desc = Removing a SSH Certificate Principal revokes its access to your account. Continue?
  514. ssh_key_deletion_success = The SSH key has been removed.
  515. gpg_key_deletion_success = The GPG key has been removed.
  516. ssh_principal_deletion_success = The principal has been removed.
  517. add_on = Added on
  518. valid_until = Valid until
  519. valid_forever = Valid forever
  520. last_used = Last used on
  521. no_activity = No recent activity
  522. can_read_info = Read
  523. can_write_info = Write
  524. key_state_desc = This key has been used in the last 7 days
  525. token_state_desc = This token has been used in the last 7 days
  526. principal_state_desc = This principal has been used in the last 7 days
  527. show_openid = Show on profile
  528. hide_openid = Hide from profile
  529. ssh_disabled = SSH Disabled
  530. ssh_externally_managed = This SSH key is externally managed for this user
  531. manage_social = Manage Associated Social Accounts
  532. social_desc = These social accounts are linked to your Gitea account. Make sure you recognize all of them as they can be used to sign in to your Gitea account.
  533. unbind = Unlink
  534. unbind_success = The social account has been unlinked from your Gitea account.
  535. manage_access_token = Manage Access Tokens
  536. generate_new_token = Generate New Token
  537. tokens_desc = These tokens grant access to your account using the Gitea API.
  538. new_token_desc = Applications using a token have full access to your account.
  539. token_name = Token Name
  540. generate_token = Generate Token
  541. generate_token_success = Your new token has been generated. Copy it now as it will not be shown again.
  542. generate_token_name_duplicate = <strong>%s</strong> has been used as an application name already. Please use a new one.
  543. delete_token = Delete
  544. access_token_deletion = Delete Access Token
  545. access_token_deletion_desc = Deleting a token will revoke access to your account for applications using it. Continue?
  546. delete_token_success = The token has been deleted. Applications using it no longer have access to your account.
  547. manage_oauth2_applications = Manage OAuth2 Applications
  548. edit_oauth2_application = Edit OAuth2 Application
  549. oauth2_applications_desc = OAuth2 applications enables your third-party application to securely authenticate users at this Gitea instance.
  550. remove_oauth2_application = Remove OAuth2 Application
  551. remove_oauth2_application_desc = Removing an OAuth2 application will revoke access to all signed access tokens. Continue?
  552. remove_oauth2_application_success = The application has been deleted.
  553. create_oauth2_application = Create a new OAuth2 Application
  554. create_oauth2_application_button = Create Application
  555. create_oauth2_application_success = You've successfully created a new OAuth2 application.
  556. update_oauth2_application_success = You've successfully updated the OAuth2 application.
  557. oauth2_application_name = Application Name
  558. oauth2_select_type = Which application type fits?
  559. oauth2_type_web = Web (e.g. Node.JS, Tomcat, Go)
  560. oauth2_type_native = Native (e.g. Mobile, Desktop, Browser)
  561. oauth2_redirect_uri = Redirect URI
  562. save_application = Save
  563. oauth2_client_id = Client ID
  564. oauth2_client_secret = Client Secret
  565. oauth2_regenerate_secret = Regenerate Secret
  566. oauth2_regenerate_secret_hint = Lost your secret?
  567. oauth2_client_secret_hint = The secret won't be visible if you revisit this page. Please save your secret.
  568. oauth2_application_edit = Edit
  569. oauth2_application_create_description = OAuth2 applications gives your third-party application access to user accounts on this instance.
  570. oauth2_application_remove_description = Removing an OAuth2 application will prevent it to access authorized user accounts on this instance. Continue?
  571. authorized_oauth2_applications = Authorized OAuth2 Applications
  572. authorized_oauth2_applications_description = You've granted access to your personal Gitea account to these third party applications. Please revoke access for applications no longer needed.
  573. revoke_key = Revoke
  574. revoke_oauth2_grant = Revoke Access
  575. revoke_oauth2_grant_description = Revoking access for this third party application will prevent this application from accessing your data. Are you sure?
  576. revoke_oauth2_grant_success = You've revoked access successfully.
  577. twofa_desc = Two-factor authentication enhances the security of your account.
  578. twofa_is_enrolled = Your account is currently <strong>enrolled</strong> in two-factor authentication.
  579. twofa_not_enrolled = Your account is not currently enrolled in two-factor authentication.
  580. twofa_disable = Disable Two-Factor Authentication
  581. twofa_scratch_token_regenerate = Regenerate Scratch Token
  582. twofa_scratch_token_regenerated = Your scratch token is now %s. Store it in a safe place.
  583. twofa_enroll = Enroll into Two-Factor Authentication
  584. twofa_disable_note = You can disable two-factor authentication if needed.
  585. twofa_disable_desc = Disabling two-factor authentication will make your account less secure. Continue?
  586. regenerate_scratch_token_desc = If you misplaced your scratch token or have already used it to sign in you can reset it here.
  587. twofa_disabled = Two-factor authentication has been disabled.
  588. scan_this_image = Scan this image with your authentication application:
  589. or_enter_secret = Or enter the secret: %s
  590. then_enter_passcode = And enter the passcode shown in the application:
  591. passcode_invalid = The passcode is incorrect. Try again.
  592. twofa_enrolled = Your account has been enrolled into two-factor authentication. Store your scratch token (%s) in a safe place as it is only shown once!
  593. twofa_failed_get_secret = Failed to get secret.
  594. u2f_desc = Security keys are hardware devices containing cryptographic keys. They can be used for two-factor authentication. Security keys must support the <a rel="noreferrer" href="https://fidoalliance.org/">FIDO U2F</a> standard.
  595. u2f_require_twofa = Your account must be enrolled in two-factor authentication to use security keys.
  596. u2f_register_key = Add Security Key
  597. u2f_nickname = Nickname
  598. u2f_press_button = Press the button on your security key to register it.
  599. u2f_delete_key = Remove Security Key
  600. u2f_delete_key_desc = If you remove a security key you can no longer sign in with it. Continue?
  601. manage_account_links = Manage Linked Accounts
  602. manage_account_links_desc = These external accounts are linked to your Gitea account.
  603. account_links_not_available = There are currently no external accounts linked to your Gitea account.
  604. remove_account_link = Remove Linked Account
  605. remove_account_link_desc = Removing a linked account will revoke its access to your Gitea account. Continue?
  606. remove_account_link_success = The linked account has been removed.
  607. orgs_none = You are not a member of any organizations.
  608. repos_none = You do not own any repositories
  609. delete_account = Delete Your Account
  610. delete_prompt = This operation will permanently delete your user account. It <strong>CAN NOT</strong> be undone.
  611. delete_with_all_comments = Your account is younger than %s. To avoid ghost comments, all issue/PR comments will be deleted with it.
  612. confirm_delete_account = Confirm Deletion
  613. delete_account_title = Delete User Account
  614. delete_account_desc = Are you sure you want to permanently delete this user account?
  615. email_notifications.enable = Enable Email Notifications
  616. email_notifications.onmention = Only Email on Mention
  617. email_notifications.disable = Disable Email Notifications
  618. email_notifications.submit = Set Email Preference
  619. [repo]
  620. new_repo_helper = A repository contains all project files, including revision history. Already have it elsewhere? <a href="%s">Migrate repository.</a>
  621. owner = Owner
  622. owner_helper = Some organizations may not show up in the dropdown due to a maximum repository count limit.
  623. repo_name = Repository Name
  624. repo_name_helper = Good repository names use short, memorable and unique keywords.
  625. repo_size = Repository Size
  626. template = Template
  627. template_select = Select a template.
  628. template_helper = Make repository a template
  629. template_description = Template repositories let users generate new repositories with the same directory structure, files, and optional settings.
  630. visibility = Visibility
  631. visibility_description = Only the owner or the organization members if they have rights, will be able to see it.
  632. visibility_helper = Make Repository Private
  633. visibility_helper_forced = Your site administrator forces new repositories to be private.
  634. visibility_fork_helper = (Changing this will affect all forks.)
  635. clone_helper = Need help cloning? Visit <a target="_blank" rel="noopener noreferrer" href="%s">Help</a>.
  636. fork_repo = Fork Repository
  637. fork_from = Fork From
  638. fork_visibility_helper = The visibility of a forked repository cannot be changed.
  639. use_template = Use this template
  640. generate_repo = Generate Repository
  641. generate_from = Generate From
  642. repo_desc = Description
  643. repo_desc_helper = Enter short description (optional)
  644. repo_lang = Language
  645. repo_gitignore_helper = Select .gitignore templates.
  646. repo_gitignore_helper_desc = Choose which files not to track from a list of templates for common languages. Typical artifacts generated by each language's build tools are included on .gitignore by default.
  647. issue_labels = Issue Labels
  648. issue_labels_helper = Select an issue label set.
  649. license = License
  650. license_helper = Select a license file.
  651. license_helper_desc = A license governs what others can and can't do with your code. Not sure which one is right for your project? See <a target="_blank" rel="noopener noreferrer" href="%s">Choose a license.</a>
  652. readme = README
  653. readme_helper = Select a README file template.
  654. readme_helper_desc = This is the place where you can write a complete description for your project.
  655. auto_init = Initialize Repository (Adds .gitignore, License and README)
  656. trust_model_helper = Select trust model for signature verification. Possible options are:
  657. trust_model_helper_collaborator = Collaborator: Trust signatures by collaborators
  658. trust_model_helper_committer = Committer: Trust signatures that match committers
  659. trust_model_helper_collaborator_committer = Collaborator+Committer: Trust signatures by collaborators which match the committer
  660. trust_model_helper_default = Default: Use the default trust model for this installation
  661. create_repo = Create Repository
  662. default_branch = Default Branch
  663. default_branch_helper = The default branch is the base branch for pull requests and code commits.
  664. mirror_prune = Prune
  665. mirror_prune_desc = Remove obsolete remote-tracking references
  666. mirror_interval = Mirror Interval (valid time units are 'h', 'm', 's'). 0 to disable automatic sync.
  667. mirror_interval_invalid = The mirror interval is not valid.
  668. mirror_address = Clone From URL
  669. mirror_address_desc = Put any required credentials in the Clone Authorization section.
  670. mirror_address_url_invalid = The provided url is invalid. You must escape all components of the url correctly.
  671. mirror_address_protocol_invalid = The provided url is invalid. Only http(s):// or git:// locations can be mirrored from.
  672. mirror_last_synced = Last Synchronized
  673. watchers = Watchers
  674. stargazers = Stargazers
  675. forks = Forks
  676. pick_reaction = Pick your reaction
  677. reactions_more = and %d more
  678. unit_disabled = The site administrator has disabled this repository section.
  679. language_other = Other
  680. adopt_search = Enter username to search for unadopted repositories... (leave blank to find all)
  681. adopt_preexisting_label = Adopt Files
  682. adopt_preexisting = Adopt pre-existing files
  683. adopt_preexisting_content = Create repository from %s
  684. adopt_preexisting_success = Adopted files and created repository from %s
  685. delete_preexisting_label = Delete
  686. delete_preexisting = Delete pre-existing files
  687. delete_preexisting_content = Delete files in %s
  688. delete_preexisting_success = Deleted unadopted files in %s
  689. desc.private = Private
  690. desc.public = Public
  691. desc.private_template = Private template
  692. desc.public_template = Template
  693. desc.internal = Internal
  694. desc.internal_template = Internal template
  695. desc.archived = Archived
  696. template.items = Template Items
  697. template.git_content = Git Content (Default Branch)
  698. template.git_hooks = Git Hooks
  699. template.git_hooks_tooltip = You are currently unable to modify or remove git hooks once added. Select this only if you trust the template repository.
  700. template.webhooks = Webhooks
  701. template.topics = Topics
  702. template.avatar = Avatar
  703. template.issue_labels = Issue Labels
  704. template.one_item = Must select at least one template item
  705. template.invalid = Must select a template repository
  706. archive.title = This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
  707. archive.issue.nocomment = This repo is archived. You cannot comment on issues.
  708. archive.pull.nocomment = This repo is archived. You cannot comment on pull requests.
  709. form.reach_limit_of_creation_1 = You have already reached your limit of %d repository.
  710. form.reach_limit_of_creation_n = You have already reached your limit of %d repositories.
  711. form.name_reserved = The repository name '%s' is reserved.
  712. form.name_pattern_not_allowed = The pattern '%s' is not allowed in a repository name.
  713. need_auth = Clone Authorization
  714. migrate_options = Migration Options
  715. migrate_service = Migration Service
  716. migrate_options_mirror_helper = This repository will be a <span class="text blue">mirror</span>
  717. migrate_options_mirror_disabled = Your site administrator has disabled new mirrors.
  718. migrate_items = Migration Items
  719. migrate_items_wiki = Wiki
  720. migrate_items_milestones = Milestones
  721. migrate_items_labels = Labels
  722. migrate_items_issues = Issues
  723. migrate_items_pullrequests = Pull Requests
  724. migrate_items_merge_requests = Merge Requests
  725. migrate_items_releases = Releases
  726. migrate_repo = Migrate Repository
  727. migrate.clone_address = Migrate / Clone From URL
  728. migrate.clone_address_desc = The HTTP(S) or Git 'clone' URL of an existing repository
  729. migrate.clone_local_path = or a local server path
  730. migrate.permission_denied = You are not allowed to import local repositories.
  731. migrate.invalid_local_path = "The local path is invalid. It does not exist or is not a directory."
  732. migrate.failed = Migration failed: %v
  733. migrate.lfs_mirror_unsupported = Mirroring LFS objects is not supported - use 'git lfs fetch --all' and 'git lfs push --all' instead.
  734. migrate.migrate_items_options = Access Token is required to migrate additional items
  735. migrated_from = Migrated from <a href="%[1]s">%[2]s</a>
  736. migrated_from_fake = Migrated From %[1]s
  737. migrate.migrate = Migrate From %s
  738. migrate.migrating = Migrating from <b>%s</b> ...
  739. migrate.migrating_failed = Migrating from <b>%s</b> failed.
  740. migrate.github.description = Migrating data from Github.com or Github Enterprise.
  741. migrate.git.description = Migrating or Mirroring git data from Git services
  742. migrate.gitlab.description = Migrating data from GitLab.com or Self-Hosted gitlab server.
  743. migrate.gitea.description = Migrating data from Gitea.com or Self-Hosted Gitea server.
  744. migrate.gogs.description = Migrating data from notabug.org or other Self-Hosted Gogs server.
  745. mirror_from = mirror of
  746. forked_from = forked from
  747. generated_from = generated from
  748. fork_from_self = You cannot fork a repository you own.
  749. fork_guest_user = Sign in to fork this repository.
  750. watch_guest_user = Sign in to watch this repository.
  751. star_guest_user = Sign in to star this repository.
  752. copy_link = Copy
  753. copy_link_success = Link has been copied
  754. copy_link_error = Use ⌘C or Ctrl-C to copy
  755. copied = Copied OK
  756. unwatch = Unwatch
  757. watch = Watch
  758. unstar = Unstar
  759. star = Star
  760. fork = Fork
  761. download_archive = Download Repository
  762. no_desc = No Description
  763. quick_guide = Quick Guide
  764. clone_this_repo = Clone this repository
  765. create_new_repo_command = Creating a new repository on the command line
  766. push_exist_repo = Pushing an existing repository from the command line
  767. empty_message = This repository does not contain any content.
  768. code = Code
  769. code.desc = Access source code, files, commits and branches.
  770. branch = Branch
  771. tree = Tree
  772. clear_ref = `Clear current reference`
  773. filter_branch_and_tag = Filter branch or tag
  774. branches = Branches
  775. tags = Tags
  776. issues = Issues
  777. pulls = Pull Requests
  778. project_board = Projects
  779. labels = Labels
  780. org_labels_desc = Organization level labels that can be used with <strong>all repositories</strong> under this organization
  781. org_labels_desc_manage = manage
  782. milestones = Milestones
  783. commits = Commits
  784. commit = Commit
  785. release = Release
  786. releases = Releases
  787. tag = Tag
  788. released_this = released this
  789. file_raw = Raw
  790. file_history = History
  791. file_view_source = View Source
  792. file_view_rendered = View Rendered
  793. file_view_raw = View Raw
  794. file_permalink = Permalink
  795. file_too_large = The file is too large to be shown.
  796. video_not_supported_in_browser = Your browser does not support the HTML5 'video' tag.
  797. audio_not_supported_in_browser = Your browser does not support the HTML5 'audio' tag.
  798. stored_lfs = Stored with Git LFS
  799. symbolic_link = Symbolic link
  800. commit_graph = Commit Graph
  801. commit_graph.select = Select branches
  802. commit_graph.hide_pr_refs = Hide Pull Requests
  803. commit_graph.monochrome = Mono
  804. commit_graph.color = Color
  805. blame = Blame
  806. normal_view = Normal View
  807. line = line
  808. lines = lines
  809. editor.new_file = New File
  810. editor.upload_file = Upload File
  811. editor.edit_file = Edit File
  812. editor.preview_changes = Preview Changes
  813. editor.cannot_edit_lfs_files = LFS files cannot be edited in the web interface.
  814. editor.cannot_edit_non_text_files = Binary files cannot be edited in the web interface.
  815. editor.edit_this_file = Edit File
  816. editor.this_file_locked = File is locked
  817. editor.must_be_on_a_branch = You must be on a branch to make or propose changes to this file.
  818. editor.fork_before_edit = You must fork this repository to make or propose changes to this file.
  819. editor.delete_this_file = Delete File
  820. editor.must_have_write_access = You must have write access to make or propose changes to this file.
  821. editor.file_delete_success = File '%s' has been deleted.
  822. editor.name_your_file = Name your file…
  823. editor.filename_help = Add a directory by typing its name followed by a slash ('/'). Remove a directory by typing backspace at the beginning of the input field.
  824. editor.or = or
  825. editor.cancel_lower = Cancel
  826. editor.commit_signed_changes = Commit Signed Changes
  827. editor.commit_changes = Commit Changes
  828. editor.add_tmpl = Add '<filename>'
  829. editor.add = Add '%s'
  830. editor.update = Update '%s'
  831. editor.delete = Delete '%s'
  832. editor.commit_message_desc = Add an optional extended description…
  833. editor.signoff_desc = Add a Signed-off-by trailer by the committer at the end of the commit log message.
  834. editor.commit_directly_to_this_branch = Commit directly to the <strong class="branch-name">%s</strong> branch.
  835. editor.create_new_branch = Create a <strong>new branch</strong> for this commit and start a pull request.
  836. editor.create_new_branch_np = Create a <strong>new branch</strong> for this commit.
  837. editor.propose_file_change = Propose file change
  838. editor.new_branch_name_desc = New branch name…
  839. editor.cancel = Cancel
  840. editor.filename_cannot_be_empty = The filename cannot be empty.
  841. editor.filename_is_invalid = The filename is invalid: '%s'.
  842. editor.branch_does_not_exist = Branch '%s' does not exist in this repository.
  843. editor.branch_already_exists = Branch '%s' already exists in this repository.
  844. editor.directory_is_a_file = Directory name '%s' is already used as a filename in this repository.
  845. editor.file_is_a_symlink = '%s' is a symbolic link. Symbolic links cannot be edited in the web editor
  846. editor.filename_is_a_directory = Filename '%s' is already used as a directory name in this repository.
  847. editor.file_editing_no_longer_exists = The file being edited, '%s', no longer exists in this repository.
  848. editor.file_deleting_no_longer_exists = The file being deleted, '%s', no longer exists in this repository.
  849. editor.file_changed_while_editing = The file contents have changed since you started editing. <a target="_blank" rel="noopener noreferrer" href="%s">Click here</a> to see them or <strong>Commit Changes again</strong> to overwrite them.
  850. editor.file_already_exists = A file named '%s' already exists in this repository.
  851. editor.commit_empty_file_header = Commit an empty file
  852. editor.commit_empty_file_text = The file you're about to commit is empty. Proceed?
  853. editor.no_changes_to_show = There are no changes to show.
  854. editor.fail_to_update_file = Failed to update/create file '%s'.
  855. editor.fail_to_update_file_summary = Error Message:
  856. editor.push_rejected_no_message = The change was rejected by the server without a message. Please check githooks.
  857. editor.push_rejected = The change was rejected by the server. Please check githooks.
  858. editor.push_rejected_summary = Full Rejection Message:
  859. editor.add_subdir = Add a directory…
  860. editor.unable_to_upload_files = Failed to upload files to '%s' with error: %v
  861. editor.upload_file_is_locked = File '%s' is locked by %s.
  862. editor.upload_files_to_dir = Upload files to '%s'
  863. editor.cannot_commit_to_protected_branch = Cannot commit to protected branch '%s'.
  864. editor.no_commit_to_branch = Unable to commit directly to branch because:
  865. editor.user_no_push_to_branch = User cannot push to branch
  866. editor.require_signed_commit = Branch requires a signed commit
  867. commits.desc = Browse source code change history.
  868. commits.commits = Commits
  869. commits.no_commits = No commits in common. '%s' and '%s' have entirely different histories.
  870. commits.search = Search commits…
  871. commits.search.tooltip = You can prefix keywords with "author:", "committer:", "after:", or "before:", e.g. "revert author:Alice before:2019-04-01".
  872. commits.find = Search
  873. commits.search_all = All Branches
  874. commits.author = Author
  875. commits.message = Message
  876. commits.date = Date
  877. commits.older = Older
  878. commits.newer = Newer
  879. commits.signed_by = Signed by
  880. commits.signed_by_untrusted_user = Signed by untrusted user
  881. commits.signed_by_untrusted_user_unmatched = Signed by untrusted user who does not match committer
  882. commits.gpg_key_id = GPG Key ID
  883. ext_issues = Ext. Issues
  884. ext_issues.desc = Link to an external issue tracker.
  885. projects = Projects
  886. projects.desc = Manage issues and pulls in project boards.
  887. projects.description = Description (optional)
  888. projects.description_placeholder = Description
  889. projects.create = Create Project
  890. projects.title = Title
  891. projects.new = New project
  892. projects.new_subheader = Coordinate, track, and update your work in one place, so projects stay transparent and on schedule.
  893. projects.create_success = The project '%s' has been created.
  894. projects.deletion = Delete Project
  895. projects.deletion_desc = Deleting a project removes it from all related issues. Continue?
  896. projects.deletion_success = The project has been deleted.
  897. projects.edit = Edit Projects
  898. projects.edit_subheader = Projects organize issues and track progress.
  899. projects.modify = Update Project
  900. projects.edit_success = Project '%s' has been updated.
  901. projects.type.none = "None"
  902. projects.type.basic_kanban = "Basic Kanban"
  903. projects.type.bug_triage = "Bug Triage"
  904. projects.template.desc = "Project template"
  905. projects.template.desc_helper = "Select a project template to get started"
  906. projects.type.uncategorized = Uncategorized
  907. projects.board.edit = "Edit board"
  908. projects.board.edit_title = "New Board Name"
  909. projects.board.new_title = "New Board Name"
  910. projects.board.new_submit = "Submit"
  911. projects.board.new = "New Board"
  912. projects.board.set_default = "Set Default"
  913. projects.board.set_default_desc = "Set this board as default for uncategorized issues and pulls"
  914. projects.board.delete = "Delete Board"
  915. projects.board.deletion_desc = "Deleting a project board moves all related issues to 'Uncategorized'. Continue?"
  916. projects.open = Open
  917. projects.close = Close
  918. issues.desc = Organize bug reports, tasks and milestones.
  919. issues.filter_assignees = Filter Assignee
  920. issues.filter_milestones = Filter Milestone
  921. issues.filter_projects = Filter Project
  922. issues.filter_labels = Filter Label
  923. issues.filter_reviewers = Filter Reviewer
  924. issues.new = New Issue
  925. issues.new.title_empty = Title cannot be empty
  926. issues.new.labels = Labels
  927. issues.new.add_labels_title = Apply labels
  928. issues.new.no_label = No Label
  929. issues.new.clear_labels = Clear labels
  930. issues.new.projects = Projects
  931. issues.new.add_project_title = Set Project
  932. issues.new.clear_projects = Clear projects
  933. issues.new.no_projects = No project
  934. issues.new.open_projects = Open Projects
  935. issues.new.closed_projects = Closed Projects
  936. issues.new.no_items = No items
  937. issues.new.milestone = Milestone
  938. issues.new.add_milestone_title = Set milestone
  939. issues.new.no_milestone = No Milestone
  940. issues.new.clear_milestone = Clear milestone
  941. issues.new.open_milestone = Open Milestones
  942. issues.new.closed_milestone = Closed Milestones
  943. issues.new.assignees = Assignees
  944. issues.new.add_assignees_title = Assign users
  945. issues.new.clear_assignees = Clear assignees
  946. issues.new.no_assignees = No Assignees
  947. issues.new.no_reviewers = No reviewers
  948. issues.new.add_reviewer_title = Request review
  949. issues.choose.get_started = Get Started
  950. issues.choose.blank = Default
  951. issues.choose.blank_about = Create an issue from default template.
  952. issues.no_ref = No Branch/Tag Specified
  953. issues.create = Create Issue
  954. issues.new_label = New Label
  955. issues.new_label_placeholder = Label name
  956. issues.new_label_desc_placeholder = Description
  957. issues.create_label = Create Label
  958. issues.label_templates.title = Load a predefined set of labels
  959. issues.label_templates.info = No labels exist yet. Create a label with 'New Label' or use a predefined label set:
  960. issues.label_templates.helper = Select a label set
  961. issues.label_templates.use = Use Label Set
  962. issues.label_templates.fail_to_load_file = Failed to load label template file '%s': %v
  963. issues.add_label = added the %s label %s
  964. issues.add_labels = added the %s labels %s
  965. issues.remove_label = removed the %s label %s
  966. issues.remove_labels = removed the %s labels %s
  967. issues.add_remove_labels = added %s and removed %s labels %s
  968. issues.add_milestone_at = `added this to the <b>%s</b> milestone %s`
  969. issues.add_project_at = `added this to the <b>%s</b> project %s`
  970. issues.change_milestone_at = `modified the milestone from <b>%s</b> to <b>%s</b> %s`
  971. issues.change_project_at = `modified the project from <b>%s</b> to <b>%s</b> %s`
  972. issues.remove_milestone_at = `removed this from the <b>%s</b> milestone %s`
  973. issues.remove_project_at = `removed this from the <b>%s</b> project %s`
  974. issues.deleted_milestone = `(deleted)`
  975. issues.deleted_project = `(deleted)`
  976. issues.self_assign_at = `self-assigned this %s`
  977. issues.add_assignee_at = `was assigned by <b>%s</b> %s`
  978. issues.remove_assignee_at = `was unassigned by <b>%s</b> %s`
  979. issues.remove_self_assignment = `removed their assignment %s`
  980. issues.change_title_at = `changed title from <b><strike>%s</strike></b> to <b>%s</b> %s`
  981. issues.delete_branch_at = `deleted branch <b>%s</b> %s`
  982. issues.open_tab = %d Open
  983. issues.close_tab = %d Closed
  984. issues.filter_label = Label
  985. issues.filter_label_exclude = `Use <code>alt</code> + <code>click/enter</code> to exclude labels`
  986. issues.filter_label_no_select = All labels
  987. issues.filter_milestone = Milestone
  988. issues.filter_milestone_no_select = All milestones
  989. issues.filter_assignee = Assignee
  990. issues.filter_assginee_no_select = All assignees
  991. issues.filter_type = Type
  992. issues.filter_type.all_issues = All issues
  993. issues.filter_type.assigned_to_you = Assigned to you
  994. issues.filter_type.created_by_you = Created by you
  995. issues.filter_type.mentioning_you = Mentioning you
  996. issues.filter_type.review_requested = Review requested
  997. issues.filter_sort = Sort
  998. issues.filter_sort.latest = Newest
  999. issues.filter_sort.oldest = Oldest
  1000. issues.filter_sort.recentupdate = Recently updated
  1001. issues.filter_sort.leastupdate = Least recently updated
  1002. issues.filter_sort.mostcomment = Most commented
  1003. issues.filter_sort.leastcomment = Least commented
  1004. issues.filter_sort.nearduedate = Nearest due date
  1005. issues.filter_sort.farduedate = Farthest due date
  1006. issues.filter_sort.moststars = Most stars
  1007. issues.filter_sort.feweststars = Fewest stars
  1008. issues.filter_sort.mostforks = Most forks
  1009. issues.filter_sort.fewestforks = Fewest forks
  1010. issues.action_open = Open
  1011. issues.action_close = Close
  1012. issues.action_label = Label
  1013. issues.action_milestone = Milestone
  1014. issues.action_milestone_no_select = No milestone
  1015. issues.action_assignee = Assignee
  1016. issues.action_assignee_no_select = No assignee
  1017. issues.opened_by = opened %[1]s by <a href="%[2]s">%[3]s</a>
  1018. pulls.merged_by = by <a href="%[2]s">%[3]s</a> merged %[1]s
  1019. pulls.merged_by_fake = by %[2]s merged %[1]s
  1020. issues.closed_by = by <a href="%[2]s">%[3]s</a> closed %[1]s
  1021. issues.opened_by_fake = by %[2]s opened %[1]s
  1022. issues.closed_by_fake = by %[2]s closed %[1]s
  1023. issues.previous = Previous
  1024. issues.next = Next
  1025. issues.open_title = Open
  1026. issues.closed_title = Closed
  1027. issues.num_comments = %d comments
  1028. issues.commented_at = `commented <a href="#%s">%s</a>`
  1029. issues.delete_comment_confirm = Are you sure you want to delete this comment?
  1030. issues.context.copy_link = Copy Link
  1031. issues.context.quote_reply = Quote Reply
  1032. issues.context.reference_issue = Reference in new issue
  1033. issues.context.edit = Edit
  1034. issues.context.delete = Delete
  1035. issues.no_content = There is no content yet.
  1036. issues.close_issue = Close
  1037. issues.pull_merged_at = `merged commit <a href="%[1]s">%[2]s</a> into <b>%[3]s</b> %[4]s`
  1038. issues.close_comment_issue = Comment and Close
  1039. issues.reopen_issue = Reopen
  1040. issues.reopen_comment_issue = Comment and Reopen
  1041. issues.create_comment = Comment
  1042. issues.closed_at = `closed this issue <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1043. issues.reopened_at = `reopened this issue <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1044. issues.commit_ref_at = `referenced this issue from a commit <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1045. issues.ref_issue_from = `<a href="%[3]s">referenced this issue %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1046. issues.ref_pull_from = `<a href="%[3]s">referenced this pull request %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1047. issues.ref_closing_from = `<a href="%[3]s">referenced a pull request %[4]s that will close this issue</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1048. issues.ref_reopening_from = `<a href="%[3]s">referenced a pull request %[4]s that will reopen this issue</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1049. issues.ref_closed_from = `<a href="%[3]s">closed this issue %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1050. issues.ref_reopened_from = `<a href="%[3]s">reopened this issue %[4]s</a> <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1051. issues.ref_from = `from %[1]s`
  1052. issues.poster = Poster
  1053. issues.collaborator = Collaborator
  1054. issues.owner = Owner
  1055. issues.re_request_review=Re-request review
  1056. issues.is_stale = There have been changes to this PR since this review
  1057. issues.remove_request_review=Remove review request
  1058. issues.remove_request_review_block=Can't remove review request
  1059. issues.dismiss_review = Dismiss Review
  1060. issues.dismiss_review_warning = Are you sure you want to dismiss this review?
  1061. issues.sign_in_require_desc = <a href="%s">Sign in</a> to join this conversation.
  1062. issues.edit = Edit
  1063. issues.cancel = Cancel
  1064. issues.save = Save
  1065. issues.label_title = Label name
  1066. issues.label_description = Label description
  1067. issues.label_color = Label color
  1068. issues.label_count = %d labels
  1069. issues.label_open_issues = %d open issues
  1070. issues.label_edit = Edit
  1071. issues.label_delete = Delete
  1072. issues.label_modify = Edit Label
  1073. issues.label_deletion = Delete Label
  1074. issues.label_deletion_desc = Deleting a label removes it from all issues. Continue?
  1075. issues.label_deletion_success = The label has been deleted.
  1076. issues.label.filter_sort.alphabetically = Alphabetically
  1077. issues.label.filter_sort.reverse_alphabetically = Reverse alphabetically
  1078. issues.label.filter_sort.by_size = Smallest size
  1079. issues.label.filter_sort.reverse_by_size = Largest size
  1080. issues.num_participants = %d Participants
  1081. issues.attachment.open_tab = `Click to see "%s" in a new tab`
  1082. issues.attachment.download = `Click to download "%s"`
  1083. issues.subscribe = Subscribe
  1084. issues.unsubscribe = Unsubscribe
  1085. issues.lock = Lock conversation
  1086. issues.unlock = Unlock conversation
  1087. issues.lock.unknown_reason = Cannot lock an issue with an unknown reason.
  1088. issues.lock_duplicate = An issue cannot be locked twice.
  1089. issues.unlock_error = Cannot unlock an issue that is not locked.
  1090. issues.lock_with_reason = "locked as <strong>%s</strong> and limited conversation to collaborators %s"
  1091. issues.lock_no_reason = "locked and limited conversation to collaborators %s"
  1092. issues.unlock_comment = "unlocked this conversation %s"
  1093. issues.lock_confirm = Lock
  1094. issues.unlock_confirm = Unlock
  1095. issues.lock.notice_1 = - Other users can’t add new comments to this issue.
  1096. issues.lock.notice_2 = - You and other collaborators with access to this repository can still leave comments that others can see.
  1097. issues.lock.notice_3 = - You can always unlock this issue again in the future.
  1098. issues.unlock.notice_1 = - Everyone would be able to comment on this issue once more.
  1099. issues.unlock.notice_2 = - You can always lock this issue again in the future.
  1100. issues.lock.reason = Reason for locking
  1101. issues.lock.title = Lock conversation on this issue.
  1102. issues.unlock.title = Unlock conversation on this issue.
  1103. issues.comment_on_locked = You cannot comment on a locked issue.
  1104. issues.tracker = Time Tracker
  1105. issues.start_tracking_short = Start Timer
  1106. issues.start_tracking = Start Time Tracking
  1107. issues.start_tracking_history = `started working %s`
  1108. issues.tracker_auto_close = Timer will be stopped automatically when this issue gets closed
  1109. issues.tracking_already_started = `You have already started time tracking on <a href="%s">another issue</a>!`
  1110. issues.stop_tracking = Stop Timer
  1111. issues.stop_tracking_history = `stopped working %s`
  1112. issues.cancel_tracking = Discard
  1113. issues.cancel_tracking_history = `cancelled time tracking %s`
  1114. issues.add_time = Manually Add Time
  1115. issues.del_time = Delete this time log
  1116. issues.add_time_short = Add Time
  1117. issues.add_time_cancel = Cancel
  1118. issues.add_time_history = `added spent time %s`
  1119. issues.del_time_history= `deleted spent time %s`
  1120. issues.add_time_hours = Hours
  1121. issues.add_time_minutes = Minutes
  1122. issues.add_time_sum_to_small = No time was entered.
  1123. issues.time_spent_total = Total Time Spent
  1124. issues.time_spent_from_all_authors = `Total Time Spent: %s`
  1125. issues.due_date = Due Date
  1126. issues.invalid_due_date_format = "Due date format must be 'yyyy-mm-dd'."
  1127. issues.error_modifying_due_date = "Failed to modify the due date."
  1128. issues.error_removing_due_date = "Failed to remove the due date."
  1129. issues.push_commit_1 = "added %d commit %s"
  1130. issues.push_commits_n = "added %d commits %s"
  1131. issues.force_push_codes = `force-pushed %[1]s from <a href="%[3]s">%[2]s</a> to <a href="%[5]s">%[4]s</a> %[6]s`
  1132. issues.due_date_form = "yyyy-mm-dd"
  1133. issues.due_date_form_add = "Add due date"
  1134. issues.due_date_form_edit = "Edit"
  1135. issues.due_date_form_remove = "Remove"
  1136. issues.due_date_not_writer = "You need repository write access to update an issue's due date."
  1137. issues.due_date_not_set = "No due date set."
  1138. issues.due_date_added = "added the due date %s %s"
  1139. issues.due_date_modified = "modified the due date to %s from %s %s"
  1140. issues.due_date_remove = "removed the due date %s %s"
  1141. issues.due_date_overdue = "Overdue"
  1142. issues.due_date_invalid = "The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'."
  1143. issues.dependency.title = Dependencies
  1144. issues.dependency.issue_no_dependencies = This issue currently doesn't have any dependencies.
  1145. issues.dependency.pr_no_dependencies = This pull request currently doesn't have any dependencies.
  1146. issues.dependency.add = Add dependency…
  1147. issues.dependency.cancel = Cancel
  1148. issues.dependency.remove = Remove
  1149. issues.dependency.remove_info = Remove this dependency
  1150. issues.dependency.added_dependency = `added a new dependency %s`
  1151. issues.dependency.removed_dependency = `removed a dependency %s`
  1152. issues.dependency.issue_closing_blockedby = Closing this pull request is blocked by the following issues
  1153. issues.dependency.pr_closing_blockedby = Closing this issue is blocked by the following issues
  1154. issues.dependency.issue_close_blocks = This issue blocks closing of the following issues
  1155. issues.dependency.pr_close_blocks = This pull request blocks closing of the following issues
  1156. issues.dependency.issue_close_blocked = You need to close all issues blocking this issue before you can close it.
  1157. issues.dependency.pr_close_blocked = You need to close all issues blocking this pull request before you can merge it.
  1158. issues.dependency.blocks_short = Blocks
  1159. issues.dependency.blocked_by_short = Depends on
  1160. issues.dependency.remove_header = Remove Dependency
  1161. issues.dependency.issue_remove_text = This will remove the dependency from this issue. Continue?
  1162. issues.dependency.pr_remove_text = This will remove the dependency from this pull request. Continue?
  1163. issues.dependency.setting = Enable Dependencies For Issues and Pull Requests
  1164. issues.dependency.add_error_same_issue = You cannot make an issue depend on itself.
  1165. issues.dependency.add_error_dep_issue_not_exist = Dependent issue does not exist.
  1166. issues.dependency.add_error_dep_not_exist = Dependency does not exist.
  1167. issues.dependency.add_error_dep_exists = Dependency already exists.
  1168. issues.dependency.add_error_cannot_create_circular = You cannot create a dependency with two issues blocking each other.
  1169. issues.dependency.add_error_dep_not_same_repo = Both issues must be in the same repository.
  1170. issues.review.self.approval = You cannot approve your own pull request.
  1171. issues.review.self.rejection = You cannot request changes on your own pull request.
  1172. issues.review.approve = "approved these changes %s"
  1173. issues.review.comment = "reviewed %s"
  1174. issues.review.dismissed = "dismissed %s’s review %s"
  1175. issues.review.dismissed_label = Dismissed
  1176. issues.review.left_comment = left a comment
  1177. issues.review.content.empty = You need to leave a comment indicating the requested change(s).
  1178. issues.review.reject = "requested changes %s"
  1179. issues.review.wait = "was requested for review %s"
  1180. issues.review.add_review_request = "requested review from %s %s"
  1181. issues.review.remove_review_request = "removed review request for %s %s"
  1182. issues.review.remove_review_request_self = "refused to review %s"
  1183. issues.review.pending = Pending
  1184. issues.review.review = Review
  1185. issues.review.reviewers = Reviewers
  1186. issues.review.outdated = Outdated
  1187. issues.review.show_outdated = Show outdated
  1188. issues.review.hide_outdated = Hide outdated
  1189. issues.review.show_resolved = Show resolved
  1190. issues.review.hide_resolved = Hide resolved
  1191. issues.review.resolve_conversation = Resolve conversation
  1192. issues.review.un_resolve_conversation = Unresolve conversation
  1193. issues.review.resolved_by = marked this conversation as resolved
  1194. issues.assignee.error = Not all assignees was added due to an unexpected error.
  1195. issues.reference_issue.body = Body
  1196. pulls.desc = Enable pull requests and code reviews.
  1197. pulls.new = New Pull Request
  1198. pulls.compare_changes = New Pull Request
  1199. pulls.compare_changes_desc = Select the branch to merge into and the branch to pull from.
  1200. pulls.compare_base = merge into
  1201. pulls.compare_compare = pull from
  1202. pulls.filter_branch = Filter branch
  1203. pulls.no_results = No results found.
  1204. pulls.nothing_to_compare = These branches are equal. There is no need to create a pull request.
  1205. pulls.has_pull_request = `A pull request between these branches already exists: <a href="%[1]s/pulls/%[3]d">%[2]s#%[3]d</a>`
  1206. pulls.create = Create Pull Request
  1207. pulls.title_desc = wants to merge %[1]d commits from <code>%[2]s</code> into <code id="branch_target">%[3]s</code>
  1208. pulls.merged_title_desc = merged %[1]d commits from <code>%[2]s</code> into <code>%[3]s</code> %[4]s
  1209. pulls.change_target_branch_at = `changed target branch from <b>%s</b> to <b>%s</b> %s`
  1210. pulls.tab_conversation = Conversation
  1211. pulls.tab_commits = Commits
  1212. pulls.tab_files = Files Changed
  1213. pulls.reopen_to_merge = Please reopen this pull request to perform a merge.
  1214. pulls.cant_reopen_deleted_branch = This pull request cannot be reopened because the branch was deleted.
  1215. pulls.merged = Merged
  1216. pulls.merged_as = The pull request has been merged as <a rel="nofollow" class="ui sha" href="%[1]s"><code>%[2]s</code></a>.
  1217. pulls.is_closed = The pull request has been closed.
  1218. pulls.has_merged = The pull request has been merged.
  1219. pulls.title_wip_desc = `<a href="#">Start the title with <strong>%s</strong></a> to prevent the pull request from being merged accidentally.`
  1220. pulls.cannot_merge_work_in_progress = This pull request is marked as a work in progress. Remove the <strong>%s</strong> prefix from the title when it's ready
  1221. pulls.data_broken = This pull request is broken due to missing fork information.
  1222. pulls.files_conflicted = This pull request has changes conflicting with the target branch.
  1223. pulls.is_checking = "Merge conflict checking is in progress. Try again in few moments."
  1224. pulls.required_status_check_failed = Some required checks were not successful.
  1225. pulls.required_status_check_missing = Some required checks are missing.
  1226. pulls.required_status_check_administrator = As an administrator, you may still merge this pull request.
  1227. pulls.blocked_by_approvals = "This Pull Request doesn't have enough approvals yet. %d of %d approvals granted."
  1228. pulls.blocked_by_rejection = "This Pull Request has changes requested by an official reviewer."
  1229. pulls.blocked_by_official_review_requests = "This Pull Request has official review requests."
  1230. pulls.blocked_by_outdated_branch = "This Pull Request is blocked because it's outdated."
  1231. pulls.blocked_by_changed_protected_files_1= "This Pull Request is blocked because it changes a protected file:"
  1232. pulls.blocked_by_changed_protected_files_n= "This Pull Request is blocked because it changes protected files:"
  1233. pulls.can_auto_merge_desc = This pull request can be merged automatically.
  1234. pulls.cannot_auto_merge_desc = This pull request cannot be merged automatically due to conflicts.
  1235. pulls.cannot_auto_merge_helper = Merge manually to resolve the conflicts.
  1236. pulls.num_conflicting_files_1 = "%d conflicting file"
  1237. pulls.num_conflicting_files_n = "%d conflicting files"
  1238. pulls.approve_count_1 = "%d approval"
  1239. pulls.approve_count_n = "%d approvals"
  1240. pulls.reject_count_1 = "%d change request"
  1241. pulls.reject_count_n = "%d change requests"
  1242. pulls.waiting_count_1 = "%d waiting review"
  1243. pulls.waiting_count_n = "%d waiting reviews"
  1244. pulls.no_merge_desc = This pull request cannot be merged because all repository merge options are disabled.
  1245. pulls.no_merge_helper = Enable merge options in the repository settings or merge the pull request manually.
  1246. pulls.no_merge_wip = This pull request can not be merged because it is marked as being a work in progress.
  1247. pulls.no_merge_not_ready = This pull request is not ready to be merged, check review status and status checks.
  1248. pulls.no_merge_access = You are not authorized to merge this pull request.
  1249. pulls.merge_pull_request = Merge Pull Request
  1250. pulls.rebase_merge_pull_request = Rebase and Merge
  1251. pulls.rebase_merge_commit_pull_request = Rebase and Merge (--no-ff)
  1252. pulls.squash_merge_pull_request = Squash and Merge
  1253. pulls.require_signed_wont_sign = The branch requires signed commits but this merge will not be signed
  1254. pulls.invalid_merge_option = You cannot use this merge option for this pull request.
  1255. pulls.merge_conflict = Merge Failed: There was a conflict whilst merging. Hint: Try a different strategy
  1256. pulls.merge_conflict_summary = Error Message
  1257. pulls.rebase_conflict = Merge Failed: There was a conflict whilst rebasing commit: %[1]s. Hint: Try a different strategy
  1258. pulls.rebase_conflict_summary = Error Message
  1259. ; </summary><code>%[2]s<br>%[3]s</code></details>
  1260. pulls.unrelated_histories = Merge Failed: The merge head and base do not share a common history. Hint: Try a different strategy
  1261. pulls.merge_out_of_date = Merge Failed: Whilst generating the merge, the base was updated. Hint: Try again.
  1262. pulls.push_rejected = Merge Failed: The push was rejected. Review the githooks for this repository.
  1263. pulls.push_rejected_summary = Full Rejection Message
  1264. pulls.push_rejected_no_message = Merge Failed: The push was rejected but there was no remote message.<br>Review the githooks for this repository
  1265. pulls.open_unmerged_pull_exists = `You cannot perform a reopen operation because there is a pending pull request (#%d) with identical properties.`
  1266. pulls.status_checking = Some checks are pending
  1267. pulls.status_checks_success = All checks were successful
  1268. pulls.status_checks_warning = Some checks reported warnings
  1269. pulls.status_checks_failure = Some checks failed
  1270. pulls.status_checks_error = Some checks reported errors
  1271. pulls.status_checks_requested = Required
  1272. pulls.status_checks_details = Details
  1273. pulls.update_branch = Update branch
  1274. pulls.update_branch_success = Branch update was successful
  1275. pulls.update_not_allowed = You are not allowed to update branch
  1276. pulls.outdated_with_base_branch = This branch is out-of-date with the base branch
  1277. pulls.closed_at = `closed this pull request <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1278. pulls.reopened_at = `reopened this pull request <a id="%[1]s" href="#%[1]s">%[2]s</a>`
  1279. pulls.merge_instruction_hint = `You can also view <a class="show-instruction">command line instructions</a>.`
  1280. pulls.merge_instruction_step1_desc = From your project repository, check out a new branch and test the changes.
  1281. pulls.merge_instruction_step2_desc = Merge the changes and update on Gitea.
  1282. milestones.new = New Milestone
  1283. milestones.open_tab = %d Open
  1284. milestones.close_tab = %d Closed
  1285. milestones.closed = Closed %s
  1286. milestones.update_ago = Updated %s ago
  1287. milestones.no_due_date = No due date
  1288. milestones.open = Open
  1289. milestones.close = Close
  1290. milestones.new_subheader = Milestones organize issues and track progress.
  1291. milestones.completeness = %d%% Completed
  1292. milestones.create = Create Milestone
  1293. milestones.title = Title
  1294. milestones.desc = Description
  1295. milestones.due_date = Due Date (optional)
  1296. milestones.clear = Clear
  1297. milestones.invalid_due_date_format = "Due date format must be 'yyyy-mm-dd'."
  1298. milestones.create_success = The milestone '%s' has been created.
  1299. milestones.edit = Edit Milestone
  1300. milestones.edit_subheader = Milestones organize issues and track progress.
  1301. milestones.cancel = Cancel
  1302. milestones.modify = Update Milestone
  1303. milestones.edit_success = Milestone '%s' has been updated.
  1304. milestones.deletion = Delete Milestone
  1305. milestones.deletion_desc = Deleting a milestone removes it from all related issues. Continue?
  1306. milestones.deletion_success = The milestone has been deleted.
  1307. milestones.filter_sort.closest_due_date = Closest due date
  1308. milestones.filter_sort.furthest_due_date = Furthest due date
  1309. milestones.filter_sort.least_complete = Least complete
  1310. milestones.filter_sort.most_complete = Most complete
  1311. milestones.filter_sort.most_issues = Most issues
  1312. milestones.filter_sort.least_issues = Least issues
  1313. signing.will_sign = This commit will be signed with key '%s'
  1314. signing.wont_sign.error = There was an error whilst checking if the commit could be signed
  1315. signing.wont_sign.nokey = There is no key available to sign this commit
  1316. signing.wont_sign.never = Commits are never signed
  1317. signing.wont_sign.always = Commits are always signed
  1318. signing.wont_sign.pubkey = The commit will not be signed because you do not have a public key associated with your account
  1319. signing.wont_sign.twofa = You must have two factor authentication enabled to have commits signed
  1320. signing.wont_sign.parentsigned = The commit will not be signed as the parent commit is not signed
  1321. signing.wont_sign.basesigned = The merge will not be signed as the base commit is not signed
  1322. signing.wont_sign.headsigned = The merge will not be signed as the head commit is not signed
  1323. signing.wont_sign.commitssigned = The merge will not be signed as all the associated commits are not signed
  1324. signing.wont_sign.approved = The merge will not be signed as the PR is not approved
  1325. signing.wont_sign.not_signed_in = You are not signed in
  1326. ext_wiki = Ext. Wiki
  1327. ext_wiki.desc = Link to an external wiki.
  1328. wiki = Wiki
  1329. wiki.welcome = Welcome to the Wiki.
  1330. wiki.welcome_desc = The wiki lets you write and share documentation with collaborators.
  1331. wiki.desc = Write and share documentation with collaborators.
  1332. wiki.create_first_page = Create the First Page
  1333. wiki.page = Page
  1334. wiki.filter_page = Filter page
  1335. wiki.new_page = Page
  1336. wiki.default_commit_message = Write a note about this page update (optional).
  1337. wiki.save_page = Save Page
  1338. wiki.last_commit_info = %s edited this page %s
  1339. wiki.edit_page_button = Edit
  1340. wiki.new_page_button = New Page
  1341. wiki.file_revision = Page Revision
  1342. wiki.wiki_page_revisions = Wiki Page Revisions
  1343. wiki.back_to_wiki = Back to wiki page
  1344. wiki.delete_page_button = Delete Page
  1345. wiki.delete_page_notice_1 = Deleting the wiki page '%s' cannot be undone. Continue?
  1346. wiki.page_already_exists = A wiki page with the same name already exists.
  1347. wiki.reserved_page = The wiki page name '%s' is reserved.
  1348. wiki.pages = Pages
  1349. wiki.last_updated = Last updated %s
  1350. activity = Activity
  1351. activity.period.filter_label = Period:
  1352. activity.period.daily = 1 day
  1353. activity.period.halfweekly = 3 days
  1354. activity.period.weekly = 1 week
  1355. activity.period.monthly = 1 month
  1356. activity.period.quarterly = 3 months
  1357. activity.period.semiyearly = 6 months
  1358. activity.period.yearly = 1 year
  1359. activity.overview = Overview
  1360. activity.active_prs_count_1 = <strong>%d</strong> Active Pull Request
  1361. activity.active_prs_count_n = <strong>%d</strong> Active Pull Requests
  1362. activity.merged_prs_count_1 = Merged Pull Request
  1363. activity.merged_prs_count_n = Merged Pull Requests
  1364. activity.opened_prs_count_1 = Proposed Pull Request
  1365. activity.opened_prs_count_n = Proposed Pull Requests
  1366. activity.title.user_1 = %d user
  1367. activity.title.user_n = %d users
  1368. activity.title.prs_1 = %d Pull request
  1369. activity.title.prs_n = %d Pull requests
  1370. activity.title.prs_merged_by = %s merged by %s
  1371. activity.title.prs_opened_by = %s proposed by %s
  1372. activity.merged_prs_label = Merged
  1373. activity.opened_prs_label = Proposed
  1374. activity.active_issues_count_1 = <strong>%d</strong> Active Issue
  1375. activity.active_issues_count_n = <strong>%d</strong> Active Issues
  1376. activity.closed_issues_count_1 = Closed Issue
  1377. activity.closed_issues_count_n = Closed Issues
  1378. activity.title.issues_1 = %d Issue
  1379. activity.title.issues_n = %d Issues
  1380. activity.title.issues_closed_from = %s closed from %s
  1381. activity.title.issues_created_by = %s created by %s
  1382. activity.closed_issue_label = Closed
  1383. activity.new_issues_count_1 = New Issue
  1384. activity.new_issues_count_n = New Issues
  1385. activity.new_issue_label = Opened
  1386. activity.title.unresolved_conv_1 = %d Unresolved Conversation
  1387. activity.title.unresolved_conv_n = %d Unresolved Conversations
  1388. activity.unresolved_conv_desc = These recently changed issues and pull requests have not been resolved yet.
  1389. activity.unresolved_conv_label = Open
  1390. activity.title.releases_1 = %d Release
  1391. activity.title.releases_n = %d Releases
  1392. activity.title.releases_published_by = %s published by %s
  1393. activity.published_release_label = Published
  1394. activity.no_git_activity = There has not been any commit activity in this period.
  1395. activity.git_stats_exclude_merges = Excluding merges,
  1396. activity.git_stats_author_1 = %d author
  1397. activity.git_stats_author_n = %d authors
  1398. activity.git_stats_pushed_1 = has pushed
  1399. activity.git_stats_pushed_n = have pushed
  1400. activity.git_stats_commit_1 = %d commit
  1401. activity.git_stats_commit_n = %d commits
  1402. activity.git_stats_push_to_branch = to %s and
  1403. activity.git_stats_push_to_all_branches = to all branches.
  1404. activity.git_stats_on_default_branch = On %s,
  1405. activity.git_stats_file_1 = %d file
  1406. activity.git_stats_file_n = %d files
  1407. activity.git_stats_files_changed_1 = has changed
  1408. activity.git_stats_files_changed_n = have changed
  1409. activity.git_stats_additions = and there have been
  1410. activity.git_stats_addition_1 = %d addition
  1411. activity.git_stats_addition_n = %d additions
  1412. activity.git_stats_and_deletions = and
  1413. activity.git_stats_deletion_1 = %d deletion
  1414. activity.git_stats_deletion_n = %d deletions
  1415. search = Search
  1416. search.search_repo = Search repository
  1417. search.fuzzy = Fuzzy
  1418. search.match = Match
  1419. search.results = Search results for "%s" in <a href="%s">%s</a>
  1420. settings = Settings
  1421. settings.desc = Settings is where you can manage the settings for the repository
  1422. settings.options = Repository
  1423. settings.collaboration = Collaborators
  1424. settings.collaboration.admin = Administrator
  1425. settings.collaboration.write = Write
  1426. settings.collaboration.read = Read
  1427. settings.collaboration.owner = Owner
  1428. settings.collaboration.undefined = Undefined
  1429. settings.hooks = Webhooks
  1430. settings.githooks = Git Hooks
  1431. settings.basic_settings = Basic Settings
  1432. settings.mirror_settings = Mirror Settings
  1433. settings.sync_mirror = Synchronize Now
  1434. settings.mirror_sync_in_progress = Mirror synchronization is in progress. Check back in a minute.
  1435. settings.email_notifications.enable = Enable Email Notifications
  1436. settings.email_notifications.onmention = Only Email on Mention
  1437. settings.email_notifications.disable = Disable Email Notifications
  1438. settings.email_notifications.submit = Set Email Preference
  1439. settings.site = Website
  1440. settings.update_settings = Update Settings
  1441. settings.advanced_settings = Advanced Settings
  1442. settings.wiki_desc = Enable Repository Wiki
  1443. settings.use_internal_wiki = Use Built-In Wiki
  1444. settings.use_external_wiki = Use External Wiki
  1445. settings.external_wiki_url = External Wiki URL
  1446. settings.external_wiki_url_error = The external wiki URL is not a valid URL.
  1447. settings.external_wiki_url_desc = Visitors are redirected to the external wiki URL when clicking the wiki tab.
  1448. settings.issues_desc = Enable Repository Issue Tracker
  1449. settings.use_internal_issue_tracker = Use Built-In Issue Tracker
  1450. settings.use_external_issue_tracker = Use External Issue Tracker
  1451. settings.external_tracker_url = External Issue Tracker URL
  1452. settings.external_tracker_url_error = The external issue tracker URL is not a valid URL.
  1453. settings.external_tracker_url_desc = Visitors are redirected to the external issue tracker URL when clicking on the issues tab.
  1454. settings.tracker_url_format = External Issue Tracker URL Format
  1455. settings.tracker_url_format_error = The external issue tracker URL format is not a valid URL.
  1456. settings.tracker_issue_style = External Issue Tracker Number Format
  1457. settings.tracker_issue_style.numeric = Numeric
  1458. settings.tracker_issue_style.alphanumeric = Alphanumeric
  1459. settings.tracker_url_format_desc = Use the placeholders <code>{user}</code>, <code>{repo}</code> and <code>{index}</code> for the username, repository name and issue index.
  1460. settings.enable_timetracker = Enable Time Tracking
  1461. settings.allow_only_contributors_to_track_time = Let Only Contributors Track Time
  1462. settings.pulls_desc = Enable Repository Pull Requests
  1463. settings.pulls.ignore_whitespace = Ignore Whitespace for Conflicts
  1464. settings.pulls.allow_merge_commits = Enable Commit Merging
  1465. settings.pulls.allow_rebase_merge = Enable Rebasing to Merge Commits
  1466. settings.pulls.allow_rebase_merge_commit = Enable Rebasing with explicit merge commits (--no-ff)
  1467. settings.pulls.allow_squash_commits = Enable Squashing to Merge Commits
  1468. settings.projects_desc = Enable Repository Projects
  1469. settings.admin_settings = Administrator Settings
  1470. settings.admin_enable_health_check = Enable Repository Health Checks (git fsck)
  1471. settings.admin_enable_close_issues_via_commit_in_any_branch = Close an issue via a commit made in a non default branch
  1472. settings.danger_zone = Danger Zone
  1473. settings.new_owner_has_same_repo = The new owner already has a repository with same name. Please choose another name.
  1474. settings.convert = Convert to Regular Repository
  1475. settings.convert_desc = You can convert this mirror into a regular repository. This cannot be undone.
  1476. settings.convert_notices_1 = This operation will convert the mirror into a regular repository and cannot be undone.
  1477. settings.convert_confirm = Convert Repository
  1478. settings.convert_succeed = The mirror has been converted into a regular repository.
  1479. settings.convert_fork = Convert to Regular Repository
  1480. settings.convert_fork_desc = You can convert this fork into a regular repository. This cannot be undone.
  1481. settings.convert_fork_notices_1 = This operation will convert the fork into a regular repository and cannot be undone.
  1482. settings.convert_fork_confirm = Convert Repository
  1483. settings.convert_fork_succeed = The fork has been converted into a regular repository.
  1484. settings.transfer = Transfer Ownership
  1485. settings.transfer_desc = Transfer this repository to a user or to an organization for which you have administrator rights.
  1486. settings.transfer_notices_1 = - You will lose access to the repository if you transfer it to an individual user.
  1487. settings.transfer_notices_2 = - You will keep access to the repository if you transfer it to an organization that you (co-)own.
  1488. settings.transfer_form_title = Enter the repository name as confirmation:
  1489. settings.signing_settings = Signing Verification Settings
  1490. settings.trust_model = Signature Trust Model
  1491. settings.trust_model.default = Default Trust Model
  1492. settings.trust_model.default.desc= Use the default repository trust model for this installation.
  1493. settings.trust_model.collaborator = Collaborator
  1494. settings.trust_model.collaborator.long = Collaborator: Trust signatures by collaborators
  1495. settings.trust_model.collaborator.desc = Valid signatures by collaborators of this repository will be marked "trusted" - (whether they match the committer or not). Otherwise, valid signatures will be marked "untrusted" if the signature matches the committer and "unmatched" if not.
  1496. settings.trust_model.committer = Committer
  1497. settings.trust_model.committer.long = Committer: Trust signatures that match committers (This matches GitHub and will force Gitea signed commits to have Gitea as the committer)
  1498. settings.trust_model.committer.desc = Valid signatures will only be marked "trusted" if they match the committer, otherwise they will be marked "unmatched". This will force Gitea to be the committer on signed commits with the actual committer marked as Co-authored-by: and Co-committed-by: trailer in the commit. The default Gitea key must match a User in the database.
  1499. settings.trust_model.collaboratorcommitter = Collaborator+Committer
  1500. settings.trust_model.collaboratorcommitter.long = Collaborator+Committer: Trust signatures by collaborators which match the committer
  1501. settings.trust_model.collaboratorcommitter.desc = Valid signatures by collaborators of this repository will be marked "trusted" if they match the committer. Otherwise, valid signatures will be marked "untrusted" if the signature matches the committer and "unmatched" otherwise. This will force Gitea to be marked as the committer on signed commits with the actual committer marked as Co-Authored-By: and Co-Committed-By: trailer in the commit. The default Gitea key must match a User in the database.
  1502. settings.wiki_delete = Delete Wiki Data
  1503. settings.wiki_delete_desc = Deleting repository wiki data is permanent and cannot be undone.
  1504. settings.wiki_delete_notices_1 = - This will permanently delete and disable the repository wiki for %s.
  1505. settings.confirm_wiki_delete = Delete Wiki Data
  1506. settings.wiki_deletion_success = The repository wiki data has been deleted.
  1507. settings.delete = Delete This Repository
  1508. settings.delete_desc = Deleting a repository is permanent and cannot be undone.
  1509. settings.delete_notices_1 = - This operation <strong>CANNOT</strong> be undone.
  1510. settings.delete_notices_2 = - This operation will permanently delete the <strong>%s</strong> repository including code, issues, comments, wiki data and collaborator settings.
  1511. settings.delete_notices_fork_1 = - Forks of this repository will become independent after deletion.
  1512. settings.deletion_success = The repository has been deleted.
  1513. settings.update_settings_success = The repository settings have been updated.
  1514. settings.transfer_owner = New Owner
  1515. settings.make_transfer = Perform Transfer
  1516. settings.transfer_succeed = The repository has been transferred.
  1517. settings.confirm_delete = Delete Repository
  1518. settings.add_collaborator = Add Collaborator
  1519. settings.add_collaborator_success = The collaborator has been added.
  1520. settings.add_collaborator_inactive_user = Can not add an inactive user as a collaborator.
  1521. settings.add_collaborator_duplicate = The collaborator is already added to this repository.
  1522. settings.delete_collaborator = Remove
  1523. settings.collaborator_deletion = Remove Collaborator
  1524. settings.collaborator_deletion_desc = Removing a collaborator will revoke their access to this repository. Continue?
  1525. settings.remove_collaborator_success = The collaborator has been removed.
  1526. settings.search_user_placeholder = Search user…
  1527. settings.org_not_allowed_to_be_collaborator = Organizations cannot be added as a collaborator.
  1528. settings.change_team_access_not_allowed = Changing team access for repository has been restricted to organization owner
  1529. settings.team_not_in_organization = The team is not in the same organization as the repository
  1530. settings.teams = Teams
  1531. settings.add_team = Add Team
  1532. settings.add_team_duplicate = Team already has the repository
  1533. settings.add_team_success = The team now have access to the repository.
  1534. settings.search_team = Search Team…
  1535. settings.change_team_permission_tip = Team's permission is set on the team setting page and can't be changed per repository
  1536. settings.delete_team_tip = This team has access to all repositories and can't be removed
  1537. settings.remove_team_success = The team's access to the repository has been removed.
  1538. settings.add_webhook = Add Webhook
  1539. settings.add_webhook.invalid_channel_name = Webhook channel name cannot be empty and cannot contain only a # character.
  1540. settings.hooks_desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
  1541. settings.webhook_deletion = Remove Webhook
  1542. settings.webhook_deletion_desc = Removing a webhook deletes its settings and delivery history. Continue?
  1543. settings.webhook_deletion_success = The webhook has been removed.
  1544. settings.webhook.test_delivery = Test Delivery
  1545. settings.webhook.test_delivery_desc = Test this webhook with a fake event.
  1546. settings.webhook.test_delivery_success = A fake event has been added to the delivery queue. It may take few seconds before it shows up in the delivery history.
  1547. settings.webhook.request = Request
  1548. settings.webhook.response = Response
  1549. settings.webhook.headers = Headers
  1550. settings.webhook.payload = Content
  1551. settings.webhook.body = Body
  1552. settings.githooks_desc = "Git hooks are powered by Git itself. You can edit hook files below to set up custom operations."
  1553. settings.githook_edit_desc = If the hook is inactive, sample content will be presented. Leaving content to an empty value will disable this hook.
  1554. settings.githook_name = Hook Name
  1555. settings.githook_content = Hook Content
  1556. settings.update_githook = Update Hook
  1557. settings.add_webhook_desc = Gitea will send <code>POST</code> requests with a specified content type to the target URL. Read more in the <a target="_blank" rel="noopener noreferrer" href="%s">webhooks guide</a>.
  1558. settings.payload_url = Target URL
  1559. settings.http_method = HTTP Method
  1560. settings.content_type = POST Content Type
  1561. settings.secret = Secret
  1562. settings.slack_username = Username
  1563. settings.slack_icon_url = Icon URL
  1564. settings.discord_username = Username
  1565. settings.discord_icon_url = Icon URL
  1566. settings.slack_color = Color
  1567. settings.event_desc = Trigger On:
  1568. settings.event_push_only = Push Events
  1569. settings.event_send_everything = All Events
  1570. settings.event_choose = Custom Events…
  1571. settings.event_header_repository = Repository Events
  1572. settings.event_create = Create
  1573. settings.event_create_desc = Branch or tag created.
  1574. settings.event_delete = Delete
  1575. settings.event_delete_desc = Branch or tag deleted.
  1576. settings.event_fork = Fork
  1577. settings.event_fork_desc = Repository forked.
  1578. settings.event_release = Release
  1579. settings.event_release_desc = Release published, updated or deleted in a repository.
  1580. settings.event_push = Push
  1581. settings.event_push_desc = Git push to a repository.
  1582. settings.event_repository = Repository
  1583. settings.event_repository_desc = Repository created or deleted.
  1584. settings.event_header_issue = Issue Events
  1585. settings.event_issues = Issues
  1586. settings.event_issues_desc = Issue opened, closed, reopened, or edited.
  1587. settings.event_issue_assign = Issue Assigned
  1588. settings.event_issue_assign_desc = Issue assigned or unassigned.
  1589. settings.event_issue_label = Issue Labeled
  1590. settings.event_issue_label_desc = Issue labels updated or cleared.
  1591. settings.event_issue_milestone = Issue Milestoned
  1592. settings.event_issue_milestone_desc = Issue milestoned or demilestoned.
  1593. settings.event_issue_comment = Issue Comment
  1594. settings.event_issue_comment_desc = Issue comment created, edited, or deleted.
  1595. settings.event_header_pull_request = Pull Request Events
  1596. settings.event_pull_request = Pull Request
  1597. settings.event_pull_request_desc = Pull request opened, closed, reopened, or edited.
  1598. settings.event_pull_request_assign = Pull Request Assigned
  1599. settings.event_pull_request_assign_desc = Pull request assigned or unassigned.
  1600. settings.event_pull_request_label = Pull Request Labeled
  1601. settings.event_pull_request_label_desc = Pull request labels updated or cleared.
  1602. settings.event_pull_request_milestone = Pull Request Milestoned
  1603. settings.event_pull_request_milestone_desc = Pull request milestoned or demilestoned.
  1604. settings.event_pull_request_comment = Pull Request Comment
  1605. settings.event_pull_request_comment_desc = Pull request comment created, edited, or deleted.
  1606. settings.event_pull_request_review = Pull Request Reviewed
  1607. settings.event_pull_request_review_desc = Pull request approved, rejected, or review comment.
  1608. settings.event_pull_request_sync = Pull Request Synchronized
  1609. settings.event_pull_request_sync_desc = Pull request synchronized.
  1610. settings.branch_filter = Branch filter
  1611. settings.branch_filter_desc = Branch whitelist for push, branch creation and branch deletion events, specified as glob pattern. If empty or <code>*</code>, events for all branches are reported. See <a href="https://godoc.org/github.com/gobwas/glob#Compile">github.com/gobwas/glob</a> documentation for syntax. Examples: <code>master</code>, <code>{master,release*}</code>.
  1612. settings.active = Active
  1613. settings.active_helper = Information about triggered events will be sent to this webhook URL.
  1614. settings.add_hook_success = The webhook has been added.
  1615. settings.update_webhook = Update Webhook
  1616. settings.update_hook_success = The webhook has been updated.
  1617. settings.delete_webhook = Remove Webhook
  1618. settings.recent_deliveries = Recent Deliveries
  1619. settings.hook_type = Hook Type
  1620. settings.add_slack_hook_desc = Integrate <a href="%s">Slack</a> into your repository.
  1621. settings.slack_token = Token
  1622. settings.slack_domain = Domain
  1623. settings.slack_channel = Channel
  1624. settings.add_discord_hook_desc = Integrate <a href="%s">Discord</a> into your repository.
  1625. settings.add_dingtalk_hook_desc = Integrate <a href="%s">Dingtalk</a> into your repository.
  1626. settings.add_telegram_hook_desc = Integrate <a href="%s">Telegram</a> into your repository.
  1627. settings.add_matrix_hook_desc = Integrate <a href="%s">Matrix</a> into your repository.
  1628. settings.add_msteams_hook_desc = Integrate <a href="%s">Microsoft Teams</a> into your repository.
  1629. settings.add_feishu_hook_desc = Integrate <a href="%s">Feishu</a> into your repository.
  1630. settings.deploy_keys = Deploy Keys
  1631. settings.add_deploy_key = Add Deploy Key
  1632. settings.deploy_key_desc = Deploy keys have read-only pull access to the repository.
  1633. settings.is_writable = Enable Write Access
  1634. settings.is_writable_info = Allow this deploy key to <strong>push</strong> to the repository.
  1635. settings.no_deploy_keys = There are no deploy keys yet.
  1636. settings.title = Title
  1637. settings.deploy_key_content = Content
  1638. settings.key_been_used = A deploy key with identical content is already in use.
  1639. settings.key_name_used = A deploy key with the same name already exists.
  1640. settings.add_key_success = The deploy key '%s' has been added.
  1641. settings.deploy_key_deletion = Remove Deploy Key
  1642. settings.deploy_key_deletion_desc = Removing a deploy key will revoke its access to this repository. Continue?
  1643. settings.deploy_key_deletion_success = The deploy key has been removed.
  1644. settings.branches = Branches
  1645. settings.protected_branch = Branch Protection
  1646. settings.protected_branch_can_push = Allow push?
  1647. settings.protected_branch_can_push_yes = You can push
  1648. settings.protected_branch_can_push_no = You can not push
  1649. settings.branch_protection = Branch Protection for Branch '<b>%s</b>'
  1650. settings.protect_this_branch = Enable Branch Protection
  1651. settings.protect_this_branch_desc = Prevents deletion and restricts Git pushing and merging to the branch.
  1652. settings.protect_disable_push = Disable Push
  1653. settings.protect_disable_push_desc = No pushing will be allowed to this branch.
  1654. settings.protect_enable_push = Enable Push
  1655. settings.protect_enable_push_desc = Anyone with write access will be allowed to push to this branch (but not force push).
  1656. settings.protect_whitelist_committers = Whitelist Restricted Push
  1657. settings.protect_whitelist_committers_desc = Only whitelisted users or teams will be allowed to push to this branch (but not force push).
  1658. settings.protect_whitelist_deploy_keys = Whitelist deploy keys with write access to push.
  1659. settings.protect_whitelist_users = Whitelisted users for pushing:
  1660. settings.protect_whitelist_search_users = Search users…
  1661. settings.protect_whitelist_teams = Whitelisted teams for pushing:
  1662. settings.protect_whitelist_search_teams = Search teams…
  1663. settings.protect_merge_whitelist_committers = Enable Merge Whitelist
  1664. settings.protect_merge_whitelist_committers_desc = Allow only whitelisted users or teams to merge pull requests into this branch.
  1665. settings.protect_merge_whitelist_users = Whitelisted users for merging:
  1666. settings.protect_merge_whitelist_teams = Whitelisted teams for merging:
  1667. settings.protect_check_status_contexts = Enable Status Check
  1668. settings.protect_check_status_contexts_desc = Require status checks to pass before merging. Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. If no contexts are selected, the last commit must be successful regardless of context.
  1669. settings.protect_check_status_contexts_list = Status checks found in the last week for this repository
  1670. settings.protect_required_approvals = Required approvals:
  1671. settings.protect_required_approvals_desc = Allow only to merge pull request with enough positive reviews.
  1672. settings.protect_approvals_whitelist_enabled = Restrict approvals to whitelisted users or teams
  1673. settings.protect_approvals_whitelist_enabled_desc = Only reviews from whitelisted users or teams will count to the required approvals. Without approval whitelist, reviews from anyone with write access count to the required approvals.
  1674. settings.protect_approvals_whitelist_users = Whitelisted reviewers:
  1675. settings.protect_approvals_whitelist_teams = Whitelisted teams for reviews:
  1676. settings.dismiss_stale_approvals = Dismiss stale approvals
  1677. settings.dismiss_stale_approvals_desc = When new commits that change the content of the pull request are pushed to the branch, old approvals will be dismissed.
  1678. settings.require_signed_commits = Require Signed Commits
  1679. settings.require_signed_commits_desc = Reject pushes to this branch if they are unsigned or unverifiable.
  1680. settings.protect_protected_file_patterns = Protected file patterns (separated using semicolon '\;'):
  1681. settings.protect_protected_file_patterns_desc = Protected files that are not allowed to be changed directly even if user has rights to add, edit, or delete files in this branch. Multiple patterns can be separated using semicolon ('\;'). See <a href="https://godoc.org/github.com/gobwas/glob#Compile">github.com/gobwas/glob</a> documentation for pattern syntax. Examples: <code>.drone.yml</code>, <code>/docs/**/*.txt</code>.
  1682. settings.add_protected_branch = Enable protection
  1683. settings.delete_protected_branch = Disable protection
  1684. settings.update_protect_branch_success = Branch protection for branch '%s' has been updated.
  1685. settings.remove_protected_branch_success = Branch protection for branch '%s' has been disabled.
  1686. settings.protected_branch_deletion = Disable Branch Protection
  1687. settings.protected_branch_deletion_desc = Disabling branch protection allows users with write permission to push to the branch. Continue?
  1688. settings.block_rejected_reviews = Block merge on rejected reviews
  1689. settings.block_rejected_reviews_desc = Merging will not be possible when changes are requested by official reviewers, even if there are enough approvals.
  1690. settings.block_on_official_review_requests = Block merge on official review requests
  1691. settings.block_on_official_review_requests_desc = Merging will not be possible when it has official review requests, even if there are enough approvals.
  1692. settings.block_outdated_branch = Block merge if pull request is outdated
  1693. settings.block_outdated_branch_desc = Merging will not be possible when head branch is behind base branch.
  1694. settings.default_branch_desc = Select a default repository branch for pull requests and code commits:
  1695. settings.choose_branch = Choose a branch…
  1696. settings.no_protected_branch = There are no protected branches.
  1697. settings.edit_protected_branch = Edit
  1698. settings.protected_branch_required_approvals_min = Required approvals cannot be negative.
  1699. settings.bot_token = Bot Token
  1700. settings.chat_id = Chat ID
  1701. settings.matrix.homeserver_url = Homeserver URL
  1702. settings.matrix.room_id = Room ID
  1703. settings.matrix.access_token = Access Token
  1704. settings.matrix.message_type = Message Type
  1705. settings.archive.button = Archive Repo
  1706. settings.archive.header = Archive This Repo
  1707. settings.archive.text = Archiving the repo will make it entirely read-only. It is hidden from the dashboard, cannot be committed to and no issues or pull-requests can be created.
  1708. settings.archive.success = The repo was successfully archived.
  1709. settings.archive.error = An error occurred while trying to archive the repo. See the log for more details.
  1710. settings.archive.error_ismirror = You cannot archive a mirrored repo.
  1711. settings.archive.branchsettings_unavailable = Branch settings are not available if the repo is archived.
  1712. settings.unarchive.button = Un-Archive Repo
  1713. settings.unarchive.header = Un-Archive This Repo
  1714. settings.unarchive.text = Un-Archiving the repo will restore its ability to receive commits and pushes, as well as new issues and pull-requests.
  1715. settings.unarchive.success = The repo was successfully un-archived.
  1716. settings.unarchive.error = An error occurred while trying to un-archive the repo. See the log for more details.
  1717. settings.update_avatar_success = The repository avatar has been updated.
  1718. settings.lfs=LFS
  1719. settings.lfs_filelist=LFS files stored in this repository
  1720. settings.lfs_no_lfs_files=No LFS files stored in this repository
  1721. settings.lfs_findcommits=Find commits
  1722. settings.lfs_lfs_file_no_commits=No Commits found for this LFS file
  1723. settings.lfs_noattribute=This path does not have the lockable attribute in the default branch
  1724. settings.lfs_delete=Delete LFS file with OID %s
  1725. settings.lfs_delete_warning=Deleting an LFS file may cause 'object does not exist' errors on checkout. Are you sure?
  1726. settings.lfs_findpointerfiles=Find pointer files
  1727. settings.lfs_locks=Locks
  1728. settings.lfs_invalid_locking_path=Invalid path: %s
  1729. settings.lfs_invalid_lock_directory=Cannot lock directory: %s
  1730. settings.lfs_lock_already_exists=Lock already exists: %s
  1731. settings.lfs_lock=Lock
  1732. settings.lfs_lock_path=Filepath to lock...
  1733. settings.lfs_locks_no_locks=No Locks
  1734. settings.lfs_lock_file_no_exist=Locked file does not exist in default branch
  1735. settings.lfs_force_unlock=Force Unlock
  1736. settings.lfs_pointers.found=Found %d blob pointer(s) - %d associated, %d unassociated (%d missing from store)
  1737. settings.lfs_pointers.sha=Blob SHA
  1738. settings.lfs_pointers.oid=OID
  1739. settings.lfs_pointers.inRepo=In Repo
  1740. settings.lfs_pointers.exists=Exists in store
  1741. settings.lfs_pointers.accessible=Accessible to User
  1742. settings.lfs_pointers.associateAccessible=Associate accessible %d OIDs
  1743. diff.browse_source = Browse Source
  1744. diff.parent = parent
  1745. diff.commit = commit
  1746. diff.git-notes = Notes
  1747. diff.data_not_available = Diff Content Not Available
  1748. diff.options_button = Diff Options
  1749. diff.show_diff_stats = Show Stats
  1750. diff.download_patch = Download Patch File
  1751. diff.download_diff = Download Diff File
  1752. diff.show_split_view = Split View
  1753. diff.show_unified_view = Unified View
  1754. diff.whitespace_button = Whitespace
  1755. diff.whitespace_show_everything = Show all changes
  1756. diff.whitespace_ignore_all_whitespace = Ignore whitespace when comparing lines
  1757. diff.whitespace_ignore_amount_changes = Ignore changes in amount of whitespace
  1758. diff.whitespace_ignore_at_eol = Ignore changes in whitespace at EOL
  1759. diff.stats_desc = <strong> %d changed files</strong> with <strong>%d additions</strong> and <strong>%d deletions</strong>
  1760. diff.stats_desc_file = %d changes: %d additions and %d deletions
  1761. diff.bin = BIN
  1762. diff.view_file = View File
  1763. diff.file_before = Before
  1764. diff.file_after = After
  1765. diff.file_image_width = Width
  1766. diff.file_image_height = Height
  1767. diff.file_byte_size = Size
  1768. diff.file_suppressed = File diff suppressed because it is too large
  1769. diff.too_many_files = Some files were not shown because too many files changed in this diff
  1770. diff.comment.placeholder = Leave a comment
  1771. diff.comment.markdown_info = Styling with markdown is supported.
  1772. diff.comment.add_single_comment = Add single comment
  1773. diff.comment.add_review_comment = Add comment
  1774. diff.comment.start_review = Start review
  1775. diff.comment.reply = Reply
  1776. diff.review = Review
  1777. diff.review.header = Submit review
  1778. diff.review.placeholder = Review comment
  1779. diff.review.comment = Comment
  1780. diff.review.approve = Approve
  1781. diff.review.reject = Request changes
  1782. diff.committed_by = committed by
  1783. diff.protected = Protected
  1784. diff.image.side_by_side = Side by Side
  1785. diff.image.swipe = Swipe
  1786. diff.image.overlay = Overlay
  1787. releases.desc = Track project versions and downloads.
  1788. release.releases = Releases
  1789. release.detail = Release details
  1790. release.tags = Tags
  1791. release.new_release = New Release
  1792. release.draft = Draft
  1793. release.prerelease = Pre-Release
  1794. release.stable = Stable
  1795. release.edit = edit
  1796. release.ahead.commits = <strong>%d</strong> commits
  1797. release.ahead.target = to %s since this release
  1798. release.source_code = Source Code
  1799. release.new_subheader = Releases organize project versions.
  1800. release.edit_subheader = Releases organize project versions.
  1801. release.tag_name = Tag name
  1802. release.target = Target
  1803. release.tag_helper = Choose an existing tag or create a new tag.
  1804. release.title = Title
  1805. release.content = Content
  1806. release.prerelease_desc = Mark as Pre-Release
  1807. release.prerelease_helper = Mark this release unsuitable for production use.
  1808. release.cancel = Cancel
  1809. release.publish = Publish Release
  1810. release.save_draft = Save Draft
  1811. release.edit_release = Update Release
  1812. release.delete_release = Delete Release
  1813. release.delete_tag = Delete Tag
  1814. release.deletion = Delete Release
  1815. release.deletion_desc = Deleting a release only removes it from Gitea. Git tag, repository contents and history remain unchanged. Continue?
  1816. release.deletion_success = The release has been deleted.
  1817. release.deletion_tag_desc = Will delete this tag from repository. Repository contents and history remain unchanged. Continue?
  1818. release.deletion_tag_success = The tag has been deleted.
  1819. release.tag_name_already_exist = A release with this tag name already exists.
  1820. release.tag_name_invalid = The tag name is not valid.
  1821. release.tag_already_exist = This tag name already exists.
  1822. release.downloads = Downloads
  1823. release.download_count = Downloads: %s
  1824. release.add_tag_msg = Use the title and content of release as tag message.
  1825. release.add_tag = Create Tag Only
  1826. branch.name = Branch Name
  1827. branch.search = Search branches
  1828. branch.already_exists = A branch named '%s' already exists.
  1829. branch.delete_head = Delete
  1830. branch.delete = Delete Branch '%s'
  1831. branch.delete_html = Delete Branch
  1832. branch.delete_desc = Deleting a branch is permanent. It <strong>CANNOT</strong> be undone. Continue?
  1833. branch.deletion_success = Branch '%s' has been deleted.
  1834. branch.deletion_failed = Failed to delete branch '%s'.
  1835. branch.delete_branch_has_new_commits = Branch '%s' cannot be deleted because new commits have been added after merging.
  1836. branch.create_branch = Create branch <strong>%s</strong>
  1837. branch.create_from = from '%s'
  1838. branch.create_success = Branch '%s' has been created.
  1839. branch.branch_already_exists = Branch '%s' already exists in this repository.
  1840. branch.branch_name_conflict = Branch name '%s' conflicts with the already existing branch '%s'.
  1841. branch.tag_collision = Branch '%s' cannot be created as a tag with same name already exists in the repository.
  1842. branch.deleted_by = Deleted by %s
  1843. branch.restore_success = Branch '%s' has been restored.
  1844. branch.restore_failed = Failed to restore branch '%s'.
  1845. branch.protected_deletion_failed = Branch '%s' is protected. It cannot be deleted.
  1846. branch.default_deletion_failed = Branch '%s' is the default branch. It cannot be deleted.
  1847. branch.restore = Restore Branch '%s'
  1848. branch.download = Download Branch '%s'
  1849. branch.included_desc = This branch is part of the default branch
  1850. branch.included = Included
  1851. tag.create_tag = Create tag <strong>%s</strong>
  1852. tag.create_success = Tag '%s' has been created.
  1853. topic.manage_topics = Manage Topics
  1854. topic.done = Done
  1855. topic.count_prompt = You can not select more than 25 topics
  1856. topic.format_prompt = Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
  1857. [org]
  1858. org_name_holder = Organization Name
  1859. org_full_name_holder = Organization Full Name
  1860. org_name_helper = Organization names should be short and memorable.
  1861. create_org = Create Organization
  1862. repo_updated = Updated
  1863. people = People
  1864. teams = Teams
  1865. lower_members = members
  1866. lower_repositories = repositories
  1867. create_new_team = New Team
  1868. create_team = Create Team
  1869. org_desc = Description
  1870. team_name = Team Name
  1871. team_desc = Description
  1872. team_name_helper = Team names should be short and memorable.
  1873. team_desc_helper = Describe the purpose or role of the team.
  1874. team_access_desc = Repository access
  1875. team_permission_desc = Permission
  1876. team_unit_desc = Allow Access to Repository Sections
  1877. team_unit_disabled = (Disabled)
  1878. form.name_reserved = The organization name '%s' is reserved.
  1879. form.name_pattern_not_allowed = The pattern '%s' is not allowed in an organization name.
  1880. form.create_org_not_allowed = You are not allowed to create an organization.
  1881. settings = Settings
  1882. settings.options = Organization
  1883. settings.full_name = Full Name
  1884. settings.website = Website
  1885. settings.location = Location
  1886. settings.permission = Permissions
  1887. settings.repoadminchangeteam = Repository admin can add and remove access for teams
  1888. settings.visibility = Visibility
  1889. settings.visibility.public = Public
  1890. settings.visibility.limited = Limited (Visible to logged in users only)
  1891. settings.visibility.limited_shortname = Limited
  1892. settings.visibility.private = Private (Visible only to organization members)
  1893. settings.visibility.private_shortname = Private
  1894. settings.update_settings = Update Settings
  1895. settings.update_setting_success = Organization settings have been updated.
  1896. settings.change_orgname_prompt = Note: changing the organization name also changes the organization's URL.
  1897. settings.change_orgname_redirect_prompt = The old name will redirect until it is claimed.
  1898. settings.update_avatar_success = The organization's avatar has been updated.
  1899. settings.delete = Delete Organization
  1900. settings.delete_account = Delete This Organization
  1901. settings.delete_prompt = The organization will be permanently removed. This <strong>CANNOT</strong> be undone!
  1902. settings.confirm_delete_account = Confirm Deletion
  1903. settings.delete_org_title = Delete Organization
  1904. settings.delete_org_desc = This organization will be deleted permanently. Continue?
  1905. settings.hooks_desc = Add webhooks which will be triggered for <strong>all repositories</strong> under this organization.
  1906. settings.labels_desc = Add labels which can be used on issues for <strong>all repositories</strong> under this organization.
  1907. members.membership_visibility = Membership Visibility:
  1908. members.public = Visible
  1909. members.public_helper = make hidden
  1910. members.private = Hidden
  1911. members.private_helper = make visible
  1912. members.member_role = Member Role:
  1913. members.owner = Owner
  1914. members.member = Member
  1915. members.remove = Remove
  1916. members.leave = Leave
  1917. members.invite_desc = Add a new member to %s:
  1918. members.invite_now = Invite Now
  1919. teams.join = Join
  1920. teams.leave = Leave
  1921. teams.can_create_org_repo = Create repositories
  1922. teams.can_create_org_repo_helper = Members can create new repositories in organization. Creator will get administrator access to the new repository.
  1923. teams.read_access = Read Access
  1924. teams.read_access_helper = Members can view and clone team repositories.
  1925. teams.write_access = Write Access
  1926. teams.write_access_helper = Members can read and push to team repositories.
  1927. teams.admin_access = Administrator Access
  1928. teams.admin_access_helper = Members can pull and push to team repositories and add collaborators to them.
  1929. teams.no_desc = This team has no description
  1930. teams.settings = Settings
  1931. teams.owners_permission_desc = Owners have full access to <strong>all repositories</strong> and have <strong>administrator access</strong> to the organization.
  1932. teams.members = Team Members
  1933. teams.update_settings = Update Settings
  1934. teams.delete_team = Delete Team
  1935. teams.add_team_member = Add Team Member
  1936. teams.delete_team_title = Delete Team
  1937. teams.delete_team_desc = Deleting a team revokes repository access from its members. Continue?
  1938. teams.delete_team_success = The team has been deleted.
  1939. teams.read_permission_desc = This team grants <strong>Read</strong> access: members can view and clone team repositories.
  1940. teams.write_permission_desc = This team grants <strong>Write</strong> access: members can read from and push to team repositories.
  1941. teams.admin_permission_desc = This team grants <strong>Admin</strong> access: members can read from, push to and add collaborators to team repositories.
  1942. teams.create_repo_permission_desc = Additionally, this team grants <strong>Create repository</strong> permission: members can create new repositories in organization.
  1943. teams.repositories = Team Repositories
  1944. teams.search_repo_placeholder = Search repository…
  1945. teams.remove_all_repos_title = Remove all team repositories
  1946. teams.remove_all_repos_desc = This will remove all repositories from the team.
  1947. teams.add_all_repos_title = Add all repositories
  1948. teams.add_all_repos_desc = This will add all the organization's repositories to the team.
  1949. teams.add_nonexistent_repo = "The repository you're trying to add does not exist; please create it first."
  1950. teams.add_duplicate_users = User is already a team member.
  1951. teams.repos.none = No repositories could be accessed by this team.
  1952. teams.members.none = No members on this team.
  1953. teams.specific_repositories = Specific repositories
  1954. teams.specific_repositories_helper = Members will only have access to repositories explicitly added to the team. Selecting this <strong>will not</strong> automatically remove repositories already added with <i>All repositories</i>.
  1955. teams.all_repositories = All repositories
  1956. teams.all_repositories_helper = Team has access to all repositories. Selecting this will <strong>add all existing</strong> repositories to the team.
  1957. teams.all_repositories_read_permission_desc = This team grants <strong>Read</strong> access to <strong>all repositories</strong>: members can view and clone repositories.
  1958. teams.all_repositories_write_permission_desc = This team grants <strong>Write</strong> access to <strong>all repositories</strong>: members can read from and push to repositories.
  1959. teams.all_repositories_admin_permission_desc = This team grants <strong>Admin</strong> access to <strong>all repositories</strong>: members can read from, push to and add collaborators to repositories.
  1960. [admin]
  1961. dashboard = Dashboard
  1962. users = User Accounts
  1963. organizations = Organizations
  1964. repositories = Repositories
  1965. hooks = Webhooks
  1966. authentication = Authentication Sources
  1967. emails = User Emails
  1968. config = Configuration
  1969. notices = System Notices
  1970. monitor = Monitoring
  1971. first_page = First
  1972. last_page = Last
  1973. total = Total: %d
  1974. dashboard.statistic = Summary
  1975. dashboard.operations = Maintenance Operations
  1976. dashboard.system_status = System Status
  1977. dashboard.statistic_info = The Gitea database holds <b>%d</b> users, <b>%d</b> organizations, <b>%d</b> public keys, <b>%d</b> repositories, <b>%d</b> watches, <b>%d</b> stars, <b>%d</b> actions, <b>%d</b> accesses, <b>%d</b> issues, <b>%d</b> comments, <b>%d</b> social accounts, <b>%d</b> follows, <b>%d</b> mirrors, <b>%d</b> releases, <b>%d</b> authentication sources, <b>%d</b> webhooks, <b>%d</b> milestones, <b>%d</b> labels, <b>%d</b> hook tasks, <b>%d</b> teams, <b>%d</b> update tasks, <b>%d</b> attachments.
  1978. dashboard.operation_name = Operation Name
  1979. dashboard.operation_switch = Switch
  1980. dashboard.operation_run = Run
  1981. dashboard.clean_unbind_oauth = Clean unbound OAuth connections
  1982. dashboard.clean_unbind_oauth_success = All unbound OAuth connections have been deleted.
  1983. dashboard.task.started=Started Task: %[1]s
  1984. dashboard.task.process=Task: %[1]s
  1985. dashboard.task.cancelled=Task: %[1]s cancelled: %[3]s
  1986. dashboard.task.error=Error in Task: %[1]s: %[3]s
  1987. dashboard.task.finished=Task: %[1]s started by %[2]s has finished
  1988. dashboard.task.unknown=Unknown task: %[1]s
  1989. dashboard.cron.started=Started Cron: %[1]s
  1990. dashboard.cron.process=Cron: %[1]s
  1991. dashboard.cron.cancelled=Cron: %s cancelled: %[3]s
  1992. dashboard.cron.error=Error in Cron: %s: %[3]s
  1993. dashboard.cron.finished=Cron: %[1]s has finished
  1994. dashboard.delete_inactive_accounts = Delete all unactivated accounts
  1995. dashboard.delete_inactive_accounts.started = Delete all unactivated accounts task started.
  1996. dashboard.delete_repo_archives = "Delete all repositories' archives (ZIP, TAR.GZ, etc..)"
  1997. dashboard.delete_repo_archives.started = Delete all repository archives task started.
  1998. dashboard.delete_missing_repos = Delete all repositories missing their Git files
  1999. dashboard.delete_missing_repos.started = Delete all repositories missing their Git files task started.
  2000. dashboard.delete_generated_repository_avatars = Delete generated repository avatars
  2001. dashboard.update_mirrors = Update Mirrors
  2002. dashboard.repo_health_check = Health check all repositories
  2003. dashboard.check_repo_stats = Check all repository statistics
  2004. dashboard.archive_cleanup = Delete old repository archives
  2005. dashboard.deleted_branches_cleanup = Clean-up deleted branches
  2006. dashboard.update_migration_poster_id = Update migration poster IDs
  2007. dashboard.git_gc_repos = Garbage collect all repositories
  2008. dashboard.resync_all_sshkeys = Update the '.ssh/authorized_keys' file with Gitea SSH keys.
  2009. dashboard.resync_all_sshkeys.desc = (Not needed for the built-in SSH server.)
  2010. dashboard.resync_all_sshprincipals = Update the '.ssh/authorized_principals' file with Gitea SSH principals.
  2011. dashboard.resync_all_sshprincipals.desc = (Not needed for the built-in SSH server.)
  2012. dashboard.resync_all_hooks = Resynchronize pre-receive, update and post-receive hooks of all repositories.
  2013. dashboard.reinit_missing_repos = Reinitialize all missing Git repositories for which records exist
  2014. dashboard.sync_external_users = Synchronize external user data
  2015. dashboard.cleanup_hook_task_table = Cleanup hook_task table
  2016. dashboard.server_uptime = Server Uptime
  2017. dashboard.current_goroutine = Current Goroutines
  2018. dashboard.current_memory_usage = Current Memory Usage
  2019. dashboard.total_memory_allocated = Total Memory Allocated
  2020. dashboard.memory_obtained = Memory Obtained
  2021. dashboard.pointer_lookup_times = Pointer Lookup Times
  2022. dashboard.memory_allocate_times = Memory Allocations
  2023. dashboard.memory_free_times = Memory Frees
  2024. dashboard.current_heap_usage = Current Heap Usage
  2025. dashboard.heap_memory_obtained = Heap Memory Obtained
  2026. dashboard.heap_memory_idle = Heap Memory Idle
  2027. dashboard.heap_memory_in_use = Heap Memory In Use
  2028. dashboard.heap_memory_released = Heap Memory Released
  2029. dashboard.heap_objects = Heap Objects
  2030. dashboard.bootstrap_stack_usage = Bootstrap Stack Usage
  2031. dashboard.stack_memory_obtained = Stack Memory Obtained
  2032. dashboard.mspan_structures_usage = MSpan Structures Usage
  2033. dashboard.mspan_structures_obtained = MSpan Structures Obtained
  2034. dashboard.mcache_structures_usage = MCache Structures Usage
  2035. dashboard.mcache_structures_obtained = MCache Structures Obtained
  2036. dashboard.profiling_bucket_hash_table_obtained = Profiling Bucket Hash Table Obtained
  2037. dashboard.gc_metadata_obtained = GC Metadata Obtained
  2038. dashboard.other_system_allocation_obtained = Other System Allocation Obtained
  2039. dashboard.next_gc_recycle = Next GC Recycle
  2040. dashboard.last_gc_time = Since Last GC Time
  2041. dashboard.total_gc_time = Total GC Pause
  2042. dashboard.total_gc_pause = Total GC Pause
  2043. dashboard.last_gc_pause = Last GC Pause
  2044. dashboard.gc_times = GC Times
  2045. users.user_manage_panel = User Account Management
  2046. users.new_account = Create User Account
  2047. users.name = Username
  2048. users.full_name = Full Name
  2049. users.activated = Activated
  2050. users.admin = Admin
  2051. users.restricted = Restricted
  2052. users.2fa = 2FA
  2053. users.repos = Repos
  2054. users.created = Created
  2055. users.last_login = Last Sign-In
  2056. users.never_login = Never Signed-In
  2057. users.send_register_notify = Send User Registration Notification
  2058. users.new_success = The user account '%s' has been created.
  2059. users.edit = Edit
  2060. users.auth_source = Authentication Source
  2061. users.local = Local
  2062. users.auth_login_name = Authentication Sign-In Name
  2063. users.password_helper = Leave the password empty to keep it unchanged.
  2064. users.update_profile_success = The user account has been updated.
  2065. users.edit_account = Edit User Account
  2066. users.max_repo_creation = Maximum Number of Repositories
  2067. users.max_repo_creation_desc = (Enter -1 to use the global default limit.)
  2068. users.is_activated = User Account Is Activated
  2069. users.prohibit_login = Disable Sign-In
  2070. users.is_admin = Is Administrator
  2071. users.is_restricted = Is Restricted
  2072. users.allow_git_hook = May Create Git Hooks
  2073. users.allow_git_hook_tooltip = Git Hooks are executed as the OS user running Gitea and will have the same level of host access. As a result, users with this special Git Hook privilege can access and modify all Gitea repositories as well as the database used by Gitea. Consequently they are also able to gain Gitea administrator privileges.
  2074. users.allow_import_local = May Import Local Repositories
  2075. users.allow_create_organization = May Create Organizations
  2076. users.update_profile = Update User Account
  2077. users.delete_account = Delete User Account
  2078. users.still_own_repo = This user still owns one or more repositories. Delete or transfer these repositories first.
  2079. users.still_has_org = This user is a member of an organization. Remove the user from any organizations first.
  2080. users.deletion_success = The user account has been deleted.
  2081. users.reset_2fa = Reset 2FA
  2082. emails.email_manage_panel = User Email Management
  2083. emails.primary = Primary
  2084. emails.activated = Activated
  2085. emails.filter_sort.email = Email
  2086. emails.filter_sort.email_reverse = Email (reverse)
  2087. emails.filter_sort.name = User Name
  2088. emails.filter_sort.name_reverse = User Name (reverse)
  2089. emails.updated = Email updated
  2090. emails.not_updated = Failed to update the requested email address: %v
  2091. emails.duplicate_active = This email address is already active for a different user.
  2092. emails.change_email_header = Update Email Properties
  2093. emails.change_email_text = Are your sure you want to update this email address?
  2094. orgs.org_manage_panel = Organization Management
  2095. orgs.name = Name
  2096. orgs.teams = Teams
  2097. orgs.members = Members
  2098. orgs.new_orga = New Organization
  2099. repos.repo_manage_panel = Repository Management
  2100. repos.unadopted = Unadopted Repositories
  2101. repos.unadopted.no_more = No more unadopted repositories found
  2102. repos.owner = Owner
  2103. repos.name = Name
  2104. repos.private = Private
  2105. repos.watches = Watches
  2106. repos.stars = Stars
  2107. repos.forks = Forks
  2108. repos.issues = Issues
  2109. repos.size = Size
  2110. defaulthooks = Default Webhooks
  2111. defaulthooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here are defaults and will be copied into all new repositories. Read more in the <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/webhooks/">webhooks guide</a>.
  2112. defaulthooks.add_webhook = Add Default Webhook
  2113. defaulthooks.update_webhook = Update Default Webhook
  2114. systemhooks = System Webhooks
  2115. systemhooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here will act on all repositories on the system, so please consider any performance implications this may have. Read more in the <a target="_blank" rel="noopener" href="https://docs.gitea.io/en-us/webhooks/">webhooks guide</a>.
  2116. systemhooks.add_webhook = Add System Webhook
  2117. systemhooks.update_webhook = Update System Webhook
  2118. auths.auth_manage_panel = Authentication Source Management
  2119. auths.new = Add Authentication Source
  2120. auths.name = Name
  2121. auths.type = Type
  2122. auths.enabled = Enabled
  2123. auths.syncenabled = Enable User Synchronization
  2124. auths.updated = Updated
  2125. auths.auth_type = Authentication Type
  2126. auths.auth_name = Authentication Name
  2127. auths.security_protocol = Security Protocol
  2128. auths.domain = Domain
  2129. auths.host = Host
  2130. auths.port = Port
  2131. auths.bind_dn = Bind DN
  2132. auths.bind_password = Bind Password
  2133. auths.bind_password_helper = Warning: This password is stored in plain text. Use a read-only account if possible.
  2134. auths.user_base = User Search Base
  2135. auths.user_dn = User DN
  2136. auths.attribute_username = Username Attribute
  2137. auths.attribute_username_placeholder = Leave empty to use the username entered in Gitea.
  2138. auths.attribute_name = First Name Attribute
  2139. auths.attribute_surname = Surname Attribute
  2140. auths.attribute_mail = Email Attribute
  2141. auths.attribute_ssh_public_key = Public SSH Key Attribute
  2142. auths.attributes_in_bind = Fetch Attributes in Bind DN Context
  2143. auths.allow_deactivate_all = Allow an empty search result to deactivate all users
  2144. auths.use_paged_search = Use Paged Search
  2145. auths.search_page_size = Page Size
  2146. auths.filter = User Filter
  2147. auths.admin_filter = Admin Filter
  2148. auths.restricted_filter = Restricted Filter
  2149. auths.restricted_filter_helper = Leave empty to not set any users as restricted. Use an asterisk ('*') to set all users that do not match Admin Filter as restricted.
  2150. auths.verify_group_membership = Verify group membership in LDAP
  2151. auths.group_search_base = Group Search Base DN
  2152. auths.valid_groups_filter = Valid Groups Filter
  2153. auths.group_attribute_list_users = Group Attribute Containing List Of Users
  2154. auths.user_attribute_in_group = User Attribute Listed In Group
  2155. auths.ms_ad_sa = MS AD Search Attributes
  2156. auths.smtp_auth = SMTP Authentication Type
  2157. auths.smtphost = SMTP Host
  2158. auths.smtpport = SMTP Port
  2159. auths.allowed_domains = Allowed Domains
  2160. auths.allowed_domains_helper = Leave empty to allow all domains. Separate multiple domains with a comma (',').
  2161. auths.enable_tls = Enable TLS Encryption
  2162. auths.skip_tls_verify = Skip TLS Verify
  2163. auths.pam_service_name = PAM Service Name
  2164. auths.oauth2_provider = OAuth2 Provider
  2165. auths.oauth2_icon_url = Icon URL
  2166. auths.oauth2_clientID = Client ID (Key)
  2167. auths.oauth2_clientSecret = Client Secret
  2168. auths.openIdConnectAutoDiscoveryURL = OpenID Connect Auto Discovery URL
  2169. auths.oauth2_use_custom_url = Use Custom URLs Instead of Default URLs
  2170. auths.oauth2_tokenURL = Token URL
  2171. auths.oauth2_authURL = Authorize URL
  2172. auths.oauth2_profileURL = Profile URL
  2173. auths.oauth2_emailURL = Email URL
  2174. auths.enable_auto_register = Enable Auto Registration
  2175. auths.sspi_auto_create_users = Automatically create users
  2176. auths.sspi_auto_create_users_helper = Allow SSPI auth method to automatically create new accounts for users that login for the first time
  2177. auths.sspi_auto_activate_users = Automatically activate users
  2178. auths.sspi_auto_activate_users_helper = Allow SSPI auth method to automatically activate new users
  2179. auths.sspi_strip_domain_names = Remove domain names from usernames
  2180. auths.sspi_strip_domain_names_helper = If checked, domain names will be removed from logon names (eg. "DOMAIN\user" and "user@example.org" both will become just "user").
  2181. auths.sspi_separator_replacement = Separator to use instead of \, / and @
  2182. auths.sspi_separator_replacement_helper = The character to use to replace the separators of down-level logon names (eg. the \ in "DOMAIN\user") and user principal names (eg. the @ in "user@example.org").
  2183. auths.sspi_default_language = Default user language
  2184. auths.sspi_default_language_helper = Default language for users automatically created by SSPI auth method. Leave empty if you prefer language to be automatically detected.
  2185. auths.tips = Tips
  2186. auths.tips.oauth2.general = OAuth2 Authentication
  2187. auths.tips.oauth2.general.tip = When registering a new OAuth2 authentication, the callback/redirect URL should be: <host>/user/oauth2/<Authentication Name>/callback
  2188. auths.tip.oauth2_provider = OAuth2 Provider
  2189. auths.tip.bitbucket = Register a new OAuth consumer on https://bitbucket.org/account/user/<your username>/oauth-consumers/new and add the permission 'Account' - 'Read'
  2190. auths.tip.nextcloud = Register a new OAuth consumer on your instance using the following menu "Settings -> Security -> OAuth 2.0 client"
  2191. auths.tip.dropbox = Create a new application at https://www.dropbox.com/developers/apps
  2192. auths.tip.facebook = Register a new application at https://developers.facebook.com/apps and add the product "Facebook Login"
  2193. auths.tip.github = Register a new OAuth application on https://github.com/settings/applications/new
  2194. auths.tip.gitlab = Register a new application on https://gitlab.com/profile/applications
  2195. auths.tip.google_plus = Obtain OAuth2 client credentials from the Google API console at https://console.developers.google.com/
  2196. auths.tip.openid_connect = Use the OpenID Connect Discovery URL (<server>/.well-known/openid-configuration) to specify the endpoints
  2197. auths.tip.twitter = Go to https://dev.twitter.com/apps, create an application and ensure that the “Allow this application to be used to Sign in with Twitter” option is enabled
  2198. auths.tip.discord = Register a new application on https://discordapp.com/developers/applications/me
  2199. auths.tip.gitea = Register a new OAuth2 application. Guide can be found at https://docs.gitea.io/en-us/oauth2-provider/
  2200. auths.tip.yandex = Create a new application at https://oauth.yandex.com/client/new. Select following permissions from the "Yandex.Passport API" section: "Access to email address", "Access to user avatar" and "Access to username, first name and surname, gender"
  2201. auths.tip.mastodon = Input a custom instance URL for the mastodon instance you want to authenticate with (or use the default one)
  2202. auths.edit = Edit Authentication Source
  2203. auths.activated = This Authentication Source is Activated
  2204. auths.new_success = The authentication '%s' has been added.
  2205. auths.update_success = The authentication source has been updated.
  2206. auths.update = Update Authentication Source
  2207. auths.delete = Delete Authentication Source
  2208. auths.delete_auth_title = Delete Authentication Source
  2209. auths.delete_auth_desc = Deleting an authentication source prevents users from using it to sign in. Continue?
  2210. auths.still_in_used = The authentication source is still in use. Convert or delete any users using this authentication source first.
  2211. auths.deletion_success = The authentication source has been deleted.
  2212. auths.login_source_exist = The authentication source '%s' already exists.
  2213. auths.login_source_of_type_exist = An authentication source of this type already exists.
  2214. config.server_config = Server Configuration
  2215. config.app_name = Site Title
  2216. config.app_ver = Gitea Version
  2217. config.app_url = Gitea Base URL
  2218. config.custom_conf = Configuration File Path
  2219. config.custom_file_root_path = "Custom File Root Path"
  2220. config.domain = SSH Server Domain
  2221. config.offline_mode = Local Mode
  2222. config.disable_router_log = Disable Router Log
  2223. config.run_user = Run As Username
  2224. config.run_mode = Run Mode
  2225. config.git_version = Git Version
  2226. config.repo_root_path = Repository Root Path
  2227. config.lfs_root_path = LFS Root Path
  2228. config.static_file_root_path = Static File Root Path
  2229. config.log_file_root_path = Log Path
  2230. config.script_type = Script Type
  2231. config.reverse_auth_user = Reverse Authentication User
  2232. config.ssh_config = SSH Configuration
  2233. config.ssh_enabled = Enabled
  2234. config.ssh_start_builtin_server = Use Built-In Server
  2235. config.ssh_domain = Server Domain
  2236. config.ssh_port = Port
  2237. config.ssh_listen_port = Listen Port
  2238. config.ssh_root_path = Root Path
  2239. config.ssh_key_test_path = Key Test Path
  2240. config.ssh_keygen_path = Keygen ('ssh-keygen') Path
  2241. config.ssh_minimum_key_size_check = Minimum Key Size Check
  2242. config.ssh_minimum_key_sizes = Minimum Key Sizes
  2243. config.lfs_config = LFS Configuration
  2244. config.lfs_enabled = Enabled
  2245. config.lfs_content_path = LFS Content Path
  2246. config.lfs_http_auth_expiry = LFS HTTP Auth Expiry
  2247. config.db_config = Database Configuration
  2248. config.db_type = Type
  2249. config.db_host = Host
  2250. config.db_name = Name
  2251. config.db_user = Username
  2252. config.db_schema = Schema
  2253. config.db_ssl_mode = SSL
  2254. config.db_path = Path
  2255. config.service_config = Service Configuration
  2256. config.register_email_confirm = Require Email Confirmation to Register
  2257. config.disable_register = Disable Self-Registration
  2258. config.allow_only_external_registration = Allow Registration Only Through External Services
  2259. config.enable_openid_signup = Enable OpenID Self-Registration
  2260. config.enable_openid_signin = Enable OpenID Sign-In
  2261. config.show_registration_button = Show Register Button
  2262. config.require_sign_in_view = Require Sign-In to View Pages
  2263. config.mail_notify = Enable Email Notifications
  2264. config.disable_key_size_check = Disable Minimum Key Size Check
  2265. config.enable_captcha = Enable CAPTCHA
  2266. config.active_code_lives = Active Code Lives
  2267. config.reset_password_code_lives = Recover Account Code Expiry Time
  2268. config.default_keep_email_private = Hide Email Addresses by Default
  2269. config.default_allow_create_organization = Allow Creation of Organizations by Default
  2270. config.enable_timetracking = Enable Time Tracking
  2271. config.default_enable_timetracking = Enable Time Tracking by Default
  2272. config.default_allow_only_contributors_to_track_time = Let Only Contributors Track Time
  2273. config.no_reply_address = Hidden Email Domain
  2274. config.default_visibility_organization = Default visibility for new Organizations
  2275. config.default_enable_dependencies = Enable Issue Dependencies by Default
  2276. config.webhook_config = Webhook Configuration
  2277. config.queue_length = Queue Length
  2278. config.deliver_timeout = Deliver Timeout
  2279. config.skip_tls_verify = Skip TLS Verification
  2280. config.mailer_config = SMTP Mailer Configuration
  2281. config.mailer_enabled = Enabled
  2282. config.mailer_disable_helo = Disable HELO
  2283. config.mailer_name = Name
  2284. config.mailer_host = Host
  2285. config.mailer_user = User
  2286. config.mailer_use_sendmail = Use Sendmail
  2287. config.mailer_sendmail_path = Sendmail Path
  2288. config.mailer_sendmail_args = Extra Arguments to Sendmail
  2289. config.mailer_sendmail_timeout = Sendmail Timeout
  2290. config.test_email_placeholder = Email (e.g. test@example.com)
  2291. config.send_test_mail = Send Testing Email
  2292. config.test_mail_failed = Failed to send a testing email to '%s': %v
  2293. config.test_mail_sent = A testing email has been sent to '%s'.
  2294. config.oauth_config = OAuth Configuration
  2295. config.oauth_enabled = Enabled
  2296. config.cache_config = Cache Configuration
  2297. config.cache_adapter = Cache Adapter
  2298. config.cache_interval = Cache Interval
  2299. config.cache_conn = Cache Connection
  2300. config.cache_item_ttl = Cache Item TTL
  2301. config.session_config = Session Configuration
  2302. config.session_provider = Session Provider
  2303. config.provider_config = Provider Config
  2304. config.cookie_name = Cookie Name
  2305. config.gc_interval_time = GC Interval Time
  2306. config.session_life_time = Session Life Time
  2307. config.https_only = HTTPS Only
  2308. config.cookie_life_time = Cookie Life Time
  2309. config.picture_config = Picture and Avatar Configuration
  2310. config.picture_service = Picture Service
  2311. config.disable_gravatar = Disable Gravatar
  2312. config.enable_federated_avatar = Enable Federated Avatars
  2313. config.git_config = Git Configuration
  2314. config.git_disable_diff_highlight = Disable Diff Syntax Highlight
  2315. config.git_max_diff_lines = Max Diff Lines (for a single file)
  2316. config.git_max_diff_line_characters = Max Diff Characters (for a single line)
  2317. config.git_max_diff_files = Max Diff Files (to be shown)
  2318. config.git_gc_args = GC Arguments
  2319. config.git_migrate_timeout = Migration Timeout
  2320. config.git_mirror_timeout = Mirror Update Timeout
  2321. config.git_clone_timeout = Clone Operation Timeout
  2322. config.git_pull_timeout = Pull Operation Timeout
  2323. config.git_gc_timeout = GC Operation Timeout
  2324. config.log_config = Log Configuration
  2325. config.log_mode = Log Mode
  2326. config.own_named_logger = Named Logger
  2327. config.routes_to_default_logger = Routes To Default Logger
  2328. config.go_log = Uses Go Log (redirected to default)
  2329. config.router_log_mode = Router Log Mode
  2330. config.disabled_logger = Disabled
  2331. config.access_log_mode = Access Log Mode
  2332. config.access_log_template = Template
  2333. config.xorm_log_mode = XORM Log Mode
  2334. config.xorm_log_sql = Log SQL
  2335. monitor.cron = Cron Tasks
  2336. monitor.name = Name
  2337. monitor.schedule = Schedule
  2338. monitor.next = Next Time
  2339. monitor.previous = Previous Time
  2340. monitor.execute_times = Executions
  2341. monitor.process = Running Processes
  2342. monitor.desc = Description
  2343. monitor.start = Start Time
  2344. monitor.execute_time = Execution Time
  2345. monitor.process.cancel = Cancel process
  2346. monitor.process.cancel_desc = Cancelling a process may cause data loss
  2347. monitor.process.cancel_notices = Cancel: <strong>%s</strong>?
  2348. monitor.queues = Queues
  2349. monitor.queue = Queue: %s
  2350. monitor.queue.name = Name
  2351. monitor.queue.type = Type
  2352. monitor.queue.exemplar = Exemplar Type
  2353. monitor.queue.numberworkers = Number of Workers
  2354. monitor.queue.maxnumberworkers = Max Number of Workers
  2355. monitor.queue.review = Review Config
  2356. monitor.queue.review_add = Review/Add Workers
  2357. monitor.queue.configuration = Initial Configuration
  2358. monitor.queue.nopool.title = No Worker Pool
  2359. monitor.queue.nopool.desc = This queue wraps other queues and does not itself have a worker pool.
  2360. monitor.queue.wrapped.desc = A wrapped queue wraps a slow starting queue, buffering queued requests in a channel. It does not have a worker pool itself.
  2361. monitor.queue.persistable-channel.desc = A persistable-channel wraps two queues, a channel queue that has its own worker pool and a level queue for persisted requests from previous shutdowns. It does not have a worker pool itself.
  2362. monitor.queue.pool.timeout = Timeout
  2363. monitor.queue.pool.addworkers.title = Add Workers
  2364. monitor.queue.pool.addworkers.submit = Add Workers
  2365. monitor.queue.pool.addworkers.desc = Add Workers to this pool with or without a timeout. If you set a timeout these workers will be removed from the pool after the timeout has lapsed.
  2366. monitor.queue.pool.addworkers.numberworkers.placeholder = Number of Workers
  2367. monitor.queue.pool.addworkers.timeout.placeholder = Set to 0 for no timeout
  2368. monitor.queue.pool.addworkers.mustnumbergreaterzero = Number of Workers to add must be greater than zero
  2369. monitor.queue.pool.addworkers.musttimeoutduration = Timeout must be a golang duration eg. 5m or be 0
  2370. monitor.queue.pool.flush.title = Flush Queue
  2371. monitor.queue.pool.flush.desc = Flush will add a worker that will terminate once the queue is empty, or it times out.
  2372. monitor.queue.pool.flush.submit = Add Flush Worker
  2373. monitor.queue.pool.flush.added = Flush Worker added for %[1]s
  2374. monitor.queue.settings.title = Pool Settings
  2375. monitor.queue.settings.desc = Pools dynamically grow with a boost in response to their worker queue blocking. These changes will not affect current worker groups.
  2376. monitor.queue.settings.timeout = Boost Timeout
  2377. monitor.queue.settings.timeout.placeholder = Currently %[1]v
  2378. monitor.queue.settings.timeout.error = Timeout must be a golang duration eg. 5m or be 0
  2379. monitor.queue.settings.numberworkers = Boost Number of Workers
  2380. monitor.queue.settings.numberworkers.placeholder = Currently %[1]d
  2381. monitor.queue.settings.numberworkers.error = Number of Workers to add must be greater than or equal to zero
  2382. monitor.queue.settings.maxnumberworkers = Max Number of workers
  2383. monitor.queue.settings.maxnumberworkers.placeholder = Currently %[1]d
  2384. monitor.queue.settings.maxnumberworkers.error = Max number of workers must be a number
  2385. monitor.queue.settings.submit = Update Settings
  2386. monitor.queue.settings.changed = Settings Updated
  2387. monitor.queue.settings.blocktimeout = Current Block Timeout
  2388. monitor.queue.settings.blocktimeout.value = %[1]v
  2389. monitor.queue.pool.none = This queue does not have a Pool
  2390. monitor.queue.pool.added = Worker Group Added
  2391. monitor.queue.pool.max_changed = Maximum number of workers changed
  2392. monitor.queue.pool.workers.title = Active Worker Groups
  2393. monitor.queue.pool.workers.none = No worker groups.
  2394. monitor.queue.pool.cancel = Shutdown Worker Group
  2395. monitor.queue.pool.cancelling = Worker Group shutting down
  2396. monitor.queue.pool.cancel_notices = Shutdown this group of %s workers?
  2397. monitor.queue.pool.cancel_desc = Leaving a queue without any worker groups may cause requests to block indefinitely.
  2398. notices.system_notice_list = System Notices
  2399. notices.view_detail_header = View Notice Details
  2400. notices.actions = Actions
  2401. notices.select_all = Select All
  2402. notices.deselect_all = Deselect All
  2403. notices.inverse_selection = Inverse Selection
  2404. notices.delete_selected = Delete Selected
  2405. notices.delete_all = Delete All Notices
  2406. notices.type = Type
  2407. notices.type_1 = Repository
  2408. notices.type_2 = Task
  2409. notices.desc = Description
  2410. notices.op = Op.
  2411. notices.delete_success = The system notices have been deleted.
  2412. [action]
  2413. create_repo = created repository <a href="%s">%s</a>
  2414. rename_repo = renamed repository from <code>%[1]s</code> to <a href="%[2]s">%[3]s</a>
  2415. commit_repo = pushed to <a href="%[1]s/src/branch/%[2]s">%[3]s</a> at <a href="%[1]s">%[4]s</a>
  2416. create_issue = `opened issue <a href="%s/issues/%s">%s#%[2]s</a>`
  2417. close_issue = `closed issue <a href="%s/issues/%s">%s#%[2]s</a>`
  2418. reopen_issue = `reopened issue <a href="%s/issues/%s">%s#%[2]s</a>`
  2419. create_pull_request = `created pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
  2420. close_pull_request = `closed pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
  2421. reopen_pull_request = `reopened pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
  2422. comment_issue = `commented on issue <a href="%s/issues/%s">%s#%[2]s</a>`
  2423. comment_pull = `commented on pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
  2424. merge_pull_request = `merged pull request <a href="%s/pulls/%s">%s#%[2]s</a>`
  2425. transfer_repo = transferred repository <code>%s</code> to <a href="%s">%s</a>
  2426. push_tag = pushed tag <a href="%s/src/tag/%s">%[2]s</a> to <a href="%[1]s">%[3]s</a>
  2427. delete_tag = deleted tag %[2]s from <a href="%[1]s">%[3]s</a>
  2428. delete_branch = deleted branch %[2]s from <a href="%[1]s">%[3]s</a>
  2429. compare_branch = Compare
  2430. compare_commits = Compare %d commits
  2431. compare_commits_general = Compare commits
  2432. mirror_sync_push = synced commits to <a href="%[1]s/src/%[2]s">%[3]s</a> at <a href="%[1]s">%[4]s</a> from mirror
  2433. mirror_sync_create = synced new reference <a href="%s/src/%s">%[2]s</a> to <a href="%[1]s">%[3]s</a> from mirror
  2434. mirror_sync_delete = synced and deleted reference <code>%[2]s</code> at <a href="%[1]s">%[3]s</a> from mirror
  2435. approve_pull_request = `approved <a href="%s/pulls/%s">%s#%[2]s</a>`
  2436. reject_pull_request = `suggested changes for <a href="%s/pulls/%s">%s#%[2]s</a>`
  2437. publish_release = `released <a href="%s/releases/tag/%s"> "%[4]s" </a> at <a href="%[1]s">%[3]s</a>`
  2438. review_dismissed = `dismissed review from <b>%[4]s</b> for <a href="%[1]s/pulls/%[2]s">%[3]s#%[2]s</a>`
  2439. review_dismissed_reason = Reason:
  2440. create_branch = created branch <a href="%[1]s/src/branch/%[2]s">%[3]s</a> in <a href="%[1]s">%[4]s</a>
  2441. [tool]
  2442. ago = %s ago
  2443. from_now = %s from now
  2444. now = now
  2445. future = future
  2446. 1s = 1 second
  2447. 1m = 1 minute
  2448. 1h = 1 hour
  2449. 1d = 1 day
  2450. 1w = 1 week
  2451. 1mon = 1 month
  2452. 1y = 1 year
  2453. seconds = %d seconds
  2454. minutes = %d minutes
  2455. hours = %d hours
  2456. days = %d days
  2457. weeks = %d weeks
  2458. months = %d months
  2459. years = %d years
  2460. raw_seconds = seconds
  2461. raw_minutes = minutes
  2462. [dropzone]
  2463. default_message = Drop files or click here to upload.
  2464. invalid_input_type = You can not upload files of this type.
  2465. file_too_big = File size ({{filesize}} MB) exceeds the maximum size of ({{maxFilesize}} MB).
  2466. remove_file = Remove file
  2467. [notification]
  2468. notifications = Notifications
  2469. unread = Unread
  2470. read = Read
  2471. no_unread = No unread notifications.
  2472. no_read = No read notifications.
  2473. pin = Pin notification
  2474. mark_as_read = Mark as read
  2475. mark_as_unread = Mark as unread
  2476. mark_all_as_read = Mark all as read
  2477. [gpg]
  2478. default_key=Signed with default key
  2479. error.extract_sign = Failed to extract signature
  2480. error.generate_hash = Failed to generate hash of commit
  2481. error.no_committer_account = No account linked to committer's email address
  2482. error.no_gpg_keys_found = "No known key found for this signature in database"
  2483. error.not_signed_commit = "Not a signed commit"
  2484. error.failed_retrieval_gpg_keys = "Failed to retrieve any key attached to the committer's account"
  2485. error.probable_bad_signature = "WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS."
  2486. error.probable_bad_default_signature = "WARNING! Although the default key has this ID it does not verify this commit! This commit is SUSPICIOUS."
  2487. [units]
  2488. error.no_unit_allowed_repo = You are not allowed to access any section of this repository.
  2489. error.unit_not_allowed = You are not allowed to access this repository section.