846 Commits (e3875ace913ca428804acc9a9ee1cd0b06cd8026)

Author SHA1 Message Date
GiteaBot 478f7db68e [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 70fa80df11 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot d2d5910894 [skip ci] Updated translations via Crowdin 5 years ago
David Svantesson 6aa3f8bc29 Mail assignee when issue/pull request is assigned (#8546)
* Send email to assigned user

* Only send mail if enabled

* Mail also when assigned through API

* Need to refactor functions from models to issue service

* Refer to issue index rather than ID

* Disable email notifications completly at initalization if global disable

* Check of user enbled mail shall be in mail notification function only

* Initialize notifications from routers init function.

* Use the assigned comment when sending assigned mail

* Refactor so that assignees always added as separate step when new issue/pr.

* Check error from AddAssignees

* Check if user can be assiged to issue or pull request

* Missing return

* Refactor of CanBeAssigned check.

CanBeAssigned shall have same check as UI.

* Clarify function names (toggle rather than update/change), and clean up.

* Fix review comments.

* Flash error if assignees was not added when creating issue/pr

* Generate error if assignee users doesn't exist
5 years ago
GiteaBot 516fd7d3ae [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot a520236cb5 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot ab791fe7bb [skip ci] Updated translations via Crowdin 5 years ago
zeripath c84174b764
Use AppSubUrl for more redirections (#8647)
Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection
5 years ago
GiteaBot ace0346c66 [skip ci] Updated translations via Crowdin 5 years ago
jaqra dbd9d8dd54 Add 'Alt + click' feature to exclude labels (#8199)
Add 'Alt + click' and 'Alt +enter' feature to exclude particular labels on searching for issues.
5 years ago
GiteaBot 637e3219ab [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 7d1a7c05db [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot b4b0e22f5f [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot a41a965db2 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 73f8069249 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 41c7aa5a3a [skip ci] Updated translations via Crowdin 5 years ago
zeripath 0bfe5eb10b
Allow Protected Branches to Whitelist Deploy Keys (#8483)
Add an option to protected branches to add writing deploy keys to the whitelist for pushing.

Please note this is technically a breaking change: previously if the owner of a repository was on the whitelist then any writing deploy key was effectively on the whitelist. This option will now need to be set if that is desired.

Closes #8472 

Details:
* Allow Protected Branches to Whitelist Deploy Keys
* Add migration
* Ensure that IsDeployKey is set to false on the http pushes
* add not null default false
5 years ago
GiteaBot b539a6e6e3 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot c8f3146cd5 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 85e4190761 [skip ci] Updated translations via Crowdin 5 years ago
6543 3b379691fa move translation to crowdin (#8596) 5 years ago
GiteaBot 23045c7d53 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot fecd8f949d [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot d44053eeda [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 37028f0e4e [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot ae132632a9 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot c43feedb96 [skip ci] Updated translations via Crowdin 5 years ago
Lukas de4f10be86 Allow committing / adding empty files using the web ui (#8420) (#8532)
* Allow committing / adding empty files from the web ui (#8420)

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>

* Add a modal to confirm the commit of an empty file

Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
5 years ago
zeripath fcb535c5c3
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.
5 years ago
GiteaBot 50b66b66e7 [skip ci] Updated translations via Crowdin 5 years ago
guillep2k 31655aabfc Fix password complexity regex for special characters (on master) (#8525)
* Fix extra space

* Fix regular expression

* Fix error template name

* Simplify check code, fix default values, add test

* Fix router tests

* Fix fmt

* Fix setting and lint

* Move cleaning up code to test, improve comments

* Tidy up variable declaration
5 years ago
GiteaBot 9b9b67cd31 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 4a290bd64c [skip ci] Updated translations via Crowdin 5 years ago
6543 d7d348ea86 [UI] Pull Request Download diff Button (#8470)
* Add Diff Download to Compare List

* Add&Change Text for Diff Options

* move button to seperate template

* add drop down menue with options

* Update: Compare

update Gogs, BitBucket, RhodeCode and remove gitea issue link

Co-Authored-By: Lauris BH <lauris@nix.lv>

* remove last things from TESTing
5 years ago
6543 733c898a90 [Branch View] Add Included TAG (#8449)
* included message

* add property IsIncluded

* Add Orange Lable
5 years ago
GiteaBot b6ef539ef4 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 54c137b373 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 8c8a93c025 [skip ci] Updated translations via Crowdin 5 years ago
Maxim Tkachenko db657192d0 Password Complexity Checks (#6230)
Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords.

Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com>
Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years ago
GiteaBot 0c680f337d [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot c23cf4c97c [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot f858b89b13 [skip ci] Updated translations via Crowdin 5 years ago
Lunny Xiao f2a3abc683
Move migrating repository from frontend to backend (#6200)
* move migrating to backend

* add loading image when migrating and fix tests

* fix format

* fix lint

* add redis task queue support and improve docs

* add redis vendor

* fix vet

* add database migrations and fix app.ini sample

* add comments for task section on app.ini.sample

* Update models/migrations/v84.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>

* Update models/repo.go

Co-Authored-By: lunny <xiaolunwen@gmail.com>

* move migrating to backend

* add loading image when migrating and fix tests

* fix fmt

* add redis task queue support and improve docs

* fix fixtures

* fix fixtures

* fix duplicate function on index.js

* fix tests

* rename repository statuses

* check if repository is being create when SSH request

* fix lint

* fix template

* some improvements

* fix template

* unified migrate options

* fix lint

* fix loading page

* refactor

* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration

* fix js

* Update models/repo.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* fix tests

* rename ErrTaskIsNotExist to ErrTaskDoesNotExist

* delete release after add one on tests to make it run happy

* fix tests

* fix tests

* improve codes

* fix lint

* fix lint

* fix migrations
5 years ago
GiteaBot ac3613b791 [skip ci] Updated translations via Crowdin 5 years ago
Yaşar Çiv 57b0d9a38b Add @yasarciv67 to TRANSLATORS file (#8451) 5 years ago
GiteaBot 7c1ddd5692 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 5109d18b29 [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 3810fa48ac [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 4fe04f1adc [skip ci] Updated translations via Crowdin 5 years ago
GiteaBot 736ad8f091 [skip ci] Updated translations via Crowdin 5 years ago