1544 Commits (834fc74873e8047552e9181e130bd53d8e890eb0)

Author SHA1 Message Date
EV3R4 af7054511e
Add TrN for repository limit (#12492)
* Added TrN for repository limit

* Removed form.reach_limit_of_creation_0

* disable Create Button if user can not create

Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot aa4c33b43d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot c05c0a1512 [skip ci] Updated translations via Crowdin 3 years ago
6543 81c833d92d
Add support to migrate from gogs (#14342)
Add support to migrate gogs:

  *  issues
  *  comments
  *  labels
  *  milestones
  *  wiki


Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
3 years ago
Norwin b5570d3e68
Display current stopwatch in navbar (#14122)
* add notification about running stopwatch to header

* serialize seconds, duration in stopwatches api

* ajax update stopwatch

i should get my testenv working locally...

* new variant: hover dialog

* noscript compatibility

* js: live-update stopwatch time

* js live update robustness
3 years ago
KN4CK3R 56a8929605
Comment - Reference in new issue (#14366)
* Implemented "Reference in new issue"

* Fixed menu style on "pulls/x/files" because "button" has a style.

* Added context menu for PR file comments.

* Use only a single modal for every comment.

* Use current repository as default. Added search filter.

* Added suggested changes.

* Fixed assignment.

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot 83c920d7fa [skip ci] Updated translations via Crowdin 4 years ago
Artemis Tosini cb08248c33
Add support for ed25519_sk and ecdsa_sk SSH keys (#13462)
* Add support for ed25519_sk and ecdsa_sk SSH keys

These start with sk-ssh-ed25519@openssh.com and sk-ecdsa-sha2-nistp256@openssh.com.
They are supported in recent versions of go x/crypto/ssh and OpenSSH 8.2
or higher.

* skip ssh-keygen

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Andrew Thornton <art27@cantab.net>
4 years ago
Ash McKenzie 6ff63c8202
Display error if twofaSecret cannot be retrieved (#14372) 4 years ago
GiteaBot 8e39157e92 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 3aa53dc6bc [skip ci] Updated translations via Crowdin 4 years ago
6543 21da519c0c
Implement ghost comment mitigation (#14349)
* Implement ghost comment mitigation

Adds a config option USER_DELETE_WITH_COMMENTS_MAX_DAYS to the [service] section. See https://codeberg.org/Codeberg/Discussion/issues/24 for the underlying issue.

* cleanup

* use setting module correctly

* add to docs

Co-authored-by: Moritz Marquardt <git@momar.de>
4 years ago
Jimmy Praet acb1ceb1f4
Add review requested filter on pull request overview (#13701)
* Add review requested filter on pull request overview #13682

fix formatting

* add review_requested filter to /repos/issues/search API endpoint

* only Approve and Reject status should supersede Request status

* add support for team reviews

* refactor: remove duplication of issue filtering conditions
4 years ago
GiteaBot 66e426b2f1 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e6155ff9b6 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 76fefd803f [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 2db4733c7d [skip ci] Updated translations via Crowdin 4 years ago
6543 3091600cc8
KanBan: be able to set default board (#14147)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
GiteaBot c09e11d018 [skip ci] Updated translations via Crowdin 4 years ago
Lauris BH 6eee9f0f4e
Merge default and system webhooks under one menu (#14244) 4 years ago
GiteaBot 648d85d426 [skip ci] Updated translations via Crowdin 4 years ago
Jonathan Tran 81467e6f35
Display SVG files as images instead of text (#14101)
* Change to display SVG files as images

* Remove unsafe styles from SVG CSP

* Add integration test to test SVG headers

* Add config setting to disable SVG rendering

* Add test for img tag when loading SVG image

* Remove the Raw view button for svg files since we don't fully support this

* Fix copyright year

* Rename and move config setting

* Add setting to cheat sheet in docs

* Fix so that comment matches cheat sheet

* Add allowing styles in CSP based on pull request feedback

* Re-enable raw button since we show SVG styles now

* Change so that SVG files are editable

* Add UI to toggle between source and rendered image for SVGs

* Change to show blame button for SVG images

* Fix to update ctx data

* Add test for DetectContentType when file is longer than sniffLen

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
4 years ago
GiteaBot 9465e60504 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 9659808172 [skip ci] Updated translations via Crowdin 4 years ago
6543 6b3b6f1833
Add option to change username to the admin panel (#14229)
Co-authored-by: Bwko <bouwko@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
GiteaBot 461406070c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 8688c2be95 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 91ceba0427 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 4ef5f17a7e [skip ci] Updated translations via Crowdin 4 years ago
6543 325add71cf
Add option for administrator to reset user 2FA (#14243)
* Frontend

* Backend

* only show 2FA-Reset option if posible
4 years ago
Cirno the Strongest 8db0372a45
Handle NotifyCreateRef as create branch in feeds (#14245)
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
GiteaBot af2fe9a733 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot cfc3916b3f [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot d75f011345 [skip ci] Updated translations via Crowdin 4 years ago
Timo Ley 2b2a4a53bf
Custom icons for OAuth sources (#14161)
* Add Icon URL to Backend

* Template for Icon URL

* Localization & Edit Icon URL

* Improve Custom Icon URL

* Removed not working else

Co-authored-by: 6543 <6543@obermui.de>
4 years ago
GiteaBot f6ca44c706 [skip ci] Updated translations via Crowdin 4 years ago
Jimmy Praet 40274b4a93
Team dashboards (#14159) 4 years ago
GiteaBot 5a1ccacac7 [skip ci] Updated translations via Crowdin 4 years ago
zeripath ad1164f73b
Disable SSH key deletion of externally managed Keys (#13985)
* Disable SSH key addition and deletion when externally managed

When a user has a login source which has SSH key management
key addition and deletion using the UI should be disabled.

Fix #13983

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Make only externally managed keys disabled

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
GiteaBot 4c2a1c01a8 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot a9876bca82 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 30edcd5c71 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot c236fe2f10 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot cd607b5f98 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 6f1dddf5c3 [skip ci] Updated translations via Crowdin 4 years ago
Cirno the Strongest 2c9dd71140
Standardize Co-Authored-By / Reviewed-By strings (#14097)
* Standardize Co-Authored-By / Reviewed-By strings

* Use lowercase variant

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
GiteaBot f8fd8996c0 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 1b1adab26c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 3a500cf8c4 [skip ci] Updated translations via Crowdin 4 years ago
Norwin 7a3c71433a
expose translation of previously hardcoded string (#14087)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
GiteaBot 7dd32276b7 [skip ci] Updated translations via Crowdin 4 years ago
DuckDuckWhale e8a354f819
Locale: say another issue instead of this issue (#14082)
Saying "this issue" is confusing because it could be understood as the
issue that the user is currently viewing, not which the "issue" link
points to.
4 years ago
GiteaBot 029836c34c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e674478227 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot cf6f8b22ca [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot de06ee6a30 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot d07b8a75d7 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot f8e9a3df40 [skip ci] Updated translations via Crowdin 4 years ago
silverwind 1837e647eb
Diff stat improvements (#13954)
* Diff stat improvements

- Combine number to just total number of changes
- Add tooltip over stats bar
- Increase contrast on file name
- Refactor classes and CSS to be more reusable

* misc tweaks

* make count bold
4 years ago
GiteaBot 5fdf500ace [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 0c5fca2d85 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot bc1cf6e5d3 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 338bfeebe7 [skip ci] Updated translations via Crowdin 4 years ago
Lunny Xiao 2d71cdb668
Add pull request manually merge instruction (#13840)
* add pull request command line instructions

* Add pull request manually merge instuction

* Fix styles

* Fix lint

* Move inline style to class file

* add space between merge button and hint text

* Add sentence end charcter

* Change the language file

* adjust secondary bg

* further adjustment

Co-authored-by: silverwind <me@silverwind.io>
4 years ago
GiteaBot b830eca720 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 654c480c99 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 557479642d [skip ci] Updated translations via Crowdin 4 years ago
6543 48a3bb7a32
User Settings: Ignore empty language codes & validate (#13755) 4 years ago
GiteaBot 5d43d2965a [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot c2ac1c73f2 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 4f82a0b12e [skip ci] Updated translations via Crowdin 4 years ago
a1012112796 9c26dc1f3a
Add block on official review requests branch protection (#13705)
Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
GiteaBot 72e62ac12b [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot de1e4b2da9 [skip ci] Updated translations via Crowdin 4 years ago
Norwin b651409c0a
Improve strings (#13548)
* Correct oauth signup title

When linking accounts, a password is not required anymore,
so this string becomes confusing

* string "remenber me": be more precise

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
GiteaBot 6626a048df [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 859e3d3db6 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot f0ed71251e [skip ci] Updated translations via Crowdin 4 years ago
Chris Shyi d025d84d91
Add email validity check (#13475)
* Improve error feedback for duplicate deploy keys

Instead of a generic HTTP 500 error page, a flash message is rendered
with the deploy key page template so inform the user that a key with the
intended title already exists.

* API returns 422 error when key with name exists

* Add email validity checking

Add email validity checking for the following routes:
[Web interface]
1. User registration
2. User creation by admin
3. Adding an email through user settings
[API]
1. POST /admin/users
2. PATCH /admin/users/:username
3. POST /user/emails

* Add further tests

* Add signup email tests

* Add email validity check for linking existing account

* Address PR comments

* Remove unneeded DB session

* Move email check to updateUser

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
GiteaBot d0a676c8ff [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot ee7133d135 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 6838bacc4c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 9155f13bf8 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot ffa712e783 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot ef2ffc6aed [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 004b40dad0 [skip ci] Updated translations via Crowdin 4 years ago
zeripath c05a8abc76
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
GiteaBot d4e0b28655 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot ed47da2e29 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 3c7908b51c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 5b636bdec7 [skip ci] Updated translations via Crowdin 4 years ago
John Olheiser 7c68ac8f7d
Tags cleanup (#13428)
* Tags cleanup

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago
GiteaBot dd882f6a69 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 59c3cf6388 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 951a333733 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot fa8492fb70 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot be880d4063 [skip ci] Updated translations via Crowdin 4 years ago
a1012112796 b687707014
Add the tag list page to the release page (#12096)
* Add the tag list page to the release page

* Add the tags list view
* Add the delete tag way on ui
* Not delete tag and clear message when delete a release

Signed-off-by: a1012112796 <1012112796@qq.com>

* Apply suggestions from code review

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: zeripath <art27@cantab.net>

* fix ui

* Add to header

* ui

* permission

* ui

* Update options/locale/locale_en-US.ini

Co-authored-by: Lauris BH <lauris@nix.lv>

* tweaks

* monospace commit hashes

* Add read permission check

* fix permission

* fix nit

* Update web_src/less/_base.less

Co-authored-by: silverwind <me@silverwind.io>

* ui fixes

* title tweaks

* fix lint

* fix test

* fix test and some ui nits

* Apply suggestions from code review

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: silverwind <me@silverwind.io>
4 years ago
GiteaBot fc40cdfa89 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 8176ba6573 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e7750e0f6a [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot d01d39d6cf [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e16a5bb634 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 764237e78c [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 643a0a691a [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot bb89fa1aaa [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot afe9d79104 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot dbebc6b0e3 [skip ci] Updated translations via Crowdin 4 years ago
Pedro Alves c40df54e28
Group Label Changed Comments in timeline (#13304)
* Create function to group label comments

* Combine multiple label additions into one

* Group removed and added labels in the same comment

* Fix indentation on comments.tmpl

Co-authored-by: zeripath <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
4 years ago
GiteaBot 756c090dbe [skip ci] Updated translations via Crowdin 4 years ago
Divyam Bhasin 7974b34183
#12897 - add mastodon provider (#13293)
* added mastodon provider to oauth code

* changed go.mod and vendor/modules.txt to add updated goth

* vendored mastodon and new goth

* committing result of go mod tidy && go mod vendor

* added pic and mastodon to oauth models

* handled instance url

* applied lafriks suggestion

* Update web_src/js/index.js

Co-authored-by: techknowlogick <matti@mdranta.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago
GiteaBot f565cf5dcf [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 65dc4d0410 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot eef5871042 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 2fa4c4ad3a [skip ci] Updated translations via Crowdin 4 years ago
zeripath 0800c7e91d
Rearrange the order of the merged by etc. in locale (#13284)
Fix #13260

Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
GiteaBot e4d9533543 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot bfc553164a [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 9912a11b33 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 1989fe2ddc [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e9869f59af [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 178861952e [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e964c6ec18 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot a06ea38207 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot f0fe5683fe [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 53359b1861 [skip ci] Updated translations via Crowdin 4 years ago
zeripath 965861043a
Return the full rejection message and errors in flash errors (#13221)
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
GiteaBot 70cb9e38e2 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot b50448b286 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot d67172b136 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 40779938a9 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 27687fa4f0 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 131278ff22 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot bcf45bb162 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 25f7e1c50b [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot deb0333c96 [skip ci] Updated translations via Crowdin 4 years ago
Iván Valdés 05c7e58742
Show outdated comments in pull request (#13148)
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
GiteaBot bfb3333528 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e4a3785218 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 07c9f6dca4 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 8fa74045c4 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 36e41d4764 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot 93f7525061 [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot e70df67d47 [skip ci] Updated translations via Crowdin 4 years ago
Lauris BH a2a05d164b
Fix punctuation in trust model description (#13140) 4 years ago
GiteaBot aa73b7b7e5 [skip ci] Updated translations via Crowdin 4 years ago
6543 49b1948cb1
Gitea 2 Gitea migration (#12657)
* first draft

* update gitea sdk to 9e280adb4da

* adapt feat of updated sdk

* releases now works

* break the Reactions loop

* use convertGiteaLabel

* fix endless loop because paggination is not supported there !!!

* rename gitea local uploader files

* pagination can bite you in the ass

* Version Checks

* lint

* docs

* rename gitea sdk import to miss future conficts

* go-swagger: dont scan the sdk structs

* make sure gitea can shutdown gracefully

* make GetPullRequests and GetIssues similar

* rm useles

* Add Test: started ...

* ... add tests ...

* Add tests and Fixing things

* Workaround missing SHA

* Adapt: Ensure that all migration requests are cancellable
(714ab71ddc)

* LINT: fix misspells in test set

* adapt ListMergeRequestAwardEmoji

* update sdk

* Return error when creating giteadownloader failed

* update sdk

* adapt new sdk

* adopt new features

* check version before err

* adapt: 'migrate service type switch page'

* optimize

* Fix DefaultBranch

* impruve

* handle subPath

* fix test

* Fix ReviewCommentPosition

* test GetReviews

* add DefaultBranch int test set

* rm unused

* Update SDK to v0.13.0

* addopt sdk changes

* found better link

* format template

* Update Docs

* Update Gitea SDK (v0.13.1)
4 years ago
赵智超 dfa7291f8f
[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>
4 years ago
GiteaBot da32d0e72a [skip ci] Updated translations via Crowdin 4 years ago
GiteaBot b546eda7a8 [skip ci] Updated translations via Crowdin 4 years ago