2
0
Commit Graph

860 Commits

Author SHA1 Message Date
GiteaBot
bcbf7c19a9 [skip ci] Updated translations via Crowdin 2019-11-02 15:29:18 +00:00
GiteaBot
ffd6d0a265 [skip ci] Updated translations via Crowdin 2019-11-02 13:40:49 +00:00
David Svantesson
f5368d91ba Prevent upload (overwrite) of lfs locked file (#8769)
* Check if file is locked on upload file commit.

* Better user message if file is locked.

* Check lfs lock before creating temporary repository. fix some errors.

* move lines

* Add comment that enabled setting is checked.
2019-11-02 15:37:05 +08:00
GiteaBot
52e4f2747b [skip ci] Updated translations via Crowdin 2019-11-01 18:20:30 +00:00
GiteaBot
4b68bb6f36 [skip ci] Updated translations via Crowdin 2019-10-31 18:01:29 +00:00
GiteaBot
f0eab7e721 [skip ci] Updated translations via Crowdin 2019-10-31 05:12:32 +00:00
GiteaBot
d3841c5cd9 [skip ci] Updated translations via Crowdin 2019-10-30 20:34:47 +00:00
zeripath
6b10652e12 Update licenses (#8752)
Replaces #8182
2019-10-30 16:19:14 +00:00
GiteaBot
b4b87581b2 [skip ci] Updated translations via Crowdin 2019-10-30 12:45:34 +00:00
GiteaBot
45570e523d [skip ci] Updated translations via Crowdin 2019-10-30 06:01:01 +00:00
Benno
d9a2d54477 Respect LFS File Lock on UI (#8719)
* update #8687 respect file locking

* upate #8687 Add LFS locker information

* update #8719 enhance coding style and return error
2019-10-29 23:32:21 +02:00
GiteaBot
6f14183c0f [skip ci] Updated translations via Crowdin 2019-10-29 14:49:58 +00:00
GiteaBot
ad1a45d6ed [skip ci] Updated translations via Crowdin 2019-10-28 19:31:28 +00:00
zeripath
1a5dec237a Add basic repository lfs management (#7199)
This PR adds basic repository LFS management UI including the ability to find all possible pointers within the repository. Locks are not managed at present but would be addable through some simple additions.

* Add basic repository lfs management
* add auto-associate function
* Add functionality to find commits with this lfs file
* Add link to find commits on the lfs file view
* Adjust commit view to state the likely branch causing the commit
* Only read Oid from database
2019-10-28 18:31:55 +00:00
GiteaBot
03fea86637 [skip ci] Updated translations via Crowdin 2019-10-27 20:48:38 +00:00
GiteaBot
57fe0128ce [skip ci] Updated translations via Crowdin 2019-10-26 06:56:48 +00:00
GiteaBot
406584c90e [skip ci] Updated translations via Crowdin 2019-10-26 00:45:54 +00:00
David Svantesson
c7ae6a7c8d 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
2019-10-25 22:46:37 +08:00
GiteaBot
60eb790175 [skip ci] Updated translations via Crowdin 2019-10-25 07:23:33 +00:00
GiteaBot
9d6576b4a6 [skip ci] Updated translations via Crowdin 2019-10-24 21:14:00 +00:00
GiteaBot
318f0f4b0d [skip ci] Updated translations via Crowdin 2019-10-24 01:20:30 +00:00
zeripath
0456ab7d8d Use AppSubUrl for more redirections (#8647)
Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection
2019-10-23 22:04:22 +01:00
GiteaBot
a1e1ad3df2 [skip ci] Updated translations via Crowdin 2019-10-23 17:58:51 +00:00
jaqra
838dbee5f4 Add 'Alt + click' feature to exclude labels (#8199)
Add 'Alt + click' and 'Alt +enter' feature to exclude particular labels on searching for issues.
2019-10-23 17:29:14 +01:00
GiteaBot
10a5d920ee [skip ci] Updated translations via Crowdin 2019-10-23 15:37:47 +00:00
GiteaBot
834cdbafb7 [skip ci] Updated translations via Crowdin 2019-10-23 14:39:37 +00:00
GiteaBot
41b098c164 [skip ci] Updated translations via Crowdin 2019-10-23 11:51:49 +00:00
GiteaBot
1bc764634d [skip ci] Updated translations via Crowdin 2019-10-22 12:39:06 +00:00
GiteaBot
c663a06a74 [skip ci] Updated translations via Crowdin 2019-10-21 20:22:31 +00:00
GiteaBot
43f63d1eac [skip ci] Updated translations via Crowdin 2019-10-21 13:41:05 +00:00
zeripath
5812624734 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
2019-10-21 09:21:45 +01:00
GiteaBot
0508c37bf5 [skip ci] Updated translations via Crowdin 2019-10-21 06:58:59 +00:00
GiteaBot
c18ffbe0c8 [skip ci] Updated translations via Crowdin 2019-10-20 18:32:35 +00:00
GiteaBot
2e26f30770 [skip ci] Updated translations via Crowdin 2019-10-20 11:44:44 +00:00
6543
3b93d0a7e1 move translation to crowdin (#8596) 2019-10-20 12:06:53 +03:00
GiteaBot
ba89615cb5 [skip ci] Updated translations via Crowdin 2019-10-18 11:15:16 +00:00
GiteaBot
15aef89cdd [skip ci] Updated translations via Crowdin 2019-10-18 08:35:26 +00:00
GiteaBot
8c2e61684a [skip ci] Updated translations via Crowdin 2019-10-18 07:00:14 +00:00
GiteaBot
4770596622 [skip ci] Updated translations via Crowdin 2019-10-17 23:53:45 +00:00
GiteaBot
2237e8e5aa [skip ci] Updated translations via Crowdin 2019-10-17 02:10:15 +00:00
GiteaBot
9ca1c5f376 [skip ci] Updated translations via Crowdin 2019-10-17 00:17:55 +00:00
Lukas
712c74bd58 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>
2019-10-16 22:28:41 +03:00
zeripath
e5f6f3e8c3 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.
2019-10-16 14:42:42 +01:00
GiteaBot
0ed34520a4 [skip ci] Updated translations via Crowdin 2019-10-16 10:17:24 +00:00
guillep2k
11a04ee9e4 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
2019-10-16 11:09:58 +08:00
GiteaBot
53f332698b [skip ci] Updated translations via Crowdin 2019-10-15 13:42:26 +00:00
GiteaBot
a582fe18c8 [skip ci] Updated translations via Crowdin 2019-10-15 12:21:14 +00:00
6543
fe3b2f5413 [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
2019-10-15 13:44:36 +03:00
6543
49a1c036d7 [Branch View] Add Included TAG (#8449)
* included message

* add property IsIncluded

* Add Orange Lable
2019-10-14 23:40:17 +01:00
GiteaBot
ae68faf09d [skip ci] Updated translations via Crowdin 2019-10-14 21:39:15 +00:00