Commit Graph

693 Commits (e8e56da9ac321aacb3c06968997a45c2f133cd4e)

Author SHA1 Message Date
Denis Denisov fd941db246 Protected branches system ()
* Protected branches system

* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
  - Admin does not restrict
  - Owner not to limit
  - To write permission restrictions

* reformat tmpl

* finished the UI and add/delete protected branch response

* remove unused comment

* indent all the template files and remove ru translations since we use crowdin

* fix the push bug
Lunny Xiao 6076c95dd1 Security: fix XSS attack on milestone ()
Reported by Miguel Ángel Jimeno.
Bo-Yi Wu 4c12e2a4b9 fix: fill in ssh key title on setting of repo ()
* fix: fill in ssh key title on setting of repo

* fix: Don't overwrite ssh key title if exist.
Unknwon 134f3e6e09 Security: prevent XSS attach on wiki page
Reported by Miguel Ángel Jimeno.
Andrew Boyarshin dc8248f8a4 Markdown rendering overhaul ()
* Markdown rendering overhaul

Cleaned up and squashed commits into single one.

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>

* Fix markdown API, add markdown module and API tests, improve code coverage

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
Lunny Xiao 8a0be5e9f0 Bug fixed for deleted label in issue comment ()
* bug fixed for deleted label in issue comment

* fix indent
Lunny Xiao cf0f451c37 Add delete branch track on pull request comments ()
* add delete branch track on pull request comments

* don't change vendor
Stephen Brown 94130da63a Fixes by moving emoji tag to the correct span ()
Signed-off-by: Stephen Brown <steve@evolvedlight.co.uk>
Zsombor e388db311b Add checkbox to search for all the branches by commit message ()
and updating the vendor directory
Lunny Xiao f35b20b042 track issue title changes ()
Ethan Koenig 027591a3a5 Redirects for renamed repos ()
* Redirects for renamed repos

* Remove unused phrase from locales
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Lunny Xiao 3e0525b47d Track assignee for issue ()
* track assignee for issue

* fix lint

* use getUserByID instead Get
Lunny Xiao 081485ecfd add milestone changed traker on issue view ()
Lunny Xiao f94869d2d1 Track labels changed on issue view & resolved ()
* track labels changed on issue view & resolved 

* add missing head comment & sort & fix refresh
Bwko e08421017c Add ability to fork your own repos ()
Bwko 067ae5d96e Fix to reflect selected branch for fork ()
PullRequestCtx.HeadInfo did not contain the current selected branch
causing issue 
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Bwko 74ed6dc3ad Add option to app.ini to enable local import paths ()
Kjell Kvinge f9a3aa8737 add scroolbars to wide graphs. ()
* Add scrollbars to graph and revlist if needed.

* Add border
Philip Couling 64375d875b Attach to release ()
* Moved attachaments POST url from /issues/attachments to /attachments

* Implemented attachment upload on release page

* Implemented downloading attachments on the release page

* Added zip and gzip files to default allowed attachments

* Implemented uploading attachments on edit release

* Renamed UploadIssueAttachment to UploadAttachment
Manuel Kuhlmann eb9ce39bb7 Fix unified diff view styling ()
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
Manuel Kuhlmann a5e07da8be Fix diff split view coloring () ()
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
Kjell Kvinge 22e1bd31c6 commithgraph / timeline ()
* Add model and tests for graph

* Add route and router for graph

* Add assets for graph

* Add template for graph
Sl@ny c22f9114c7 Implementation of Folder Jumping
Bwko 71dee6b7c0 Improve the way how branches are deleted
Delete branch from HeadRepo instead of BaseRepo
Prevent the deletion of a master branch
Show a yes/no overlay when you press the delete branch button
Fabian Zaremba 2e7ccecfe6 Git LFS support v2 ()
* 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
Lunny Xiao 4b7594d9fa Provide button to delete merged pull request ()
* provide button to delete merged pull request

* golint fix
Bwko a345a03d99 Added sorting to the labels & milestones page ()
Nico Mandery 6ade13e86e serve video files using the HTML5 video tag ()
* serve video files using the HTML5 video tag

* lint fix: add comment to IsVideoFile
Henning Henkel bab737bf02 Fix alignment of tooltip and add bindata - related to ()
Henning Henkel 08b9af9ad8 Added download tooltip - solves ()
Avelino baf60bf603 Fixed project on repo template hook settings
Bwko 5ab85372da Added rel="noopener" to target="_blank" hrefs ()
* Added rel="noopener" to target="_blank" hrefs

* Replaced gogs.io/docs with docs.gitea.io
Lunny Xiao 2343feadd4 resolved : hide fork to self ()
Lunny Xiao abf6c3a8e3 bug fixed caused by ()
Sandro Santilli cd339263d9 Allow updating draft releases while keeping them as draft
Closes 
Matthias Loibl 63ca42d17f Fix bug that tries to load mistyped templates
Matthias Loibl 45c4539c61 Merge pull request from LefsFlarey/issue/3666
Fixed 404 caused by unexpected question mark
Flare 01c5233b53
Fixed 404 caused by unexpected question mark
This fixes 404 caused when creating new files or wiki pages with question marks. Amended to force CI rebuild
Lunny Xiao 5667d4daae Merge pull request from bkcsoft/gt/2164-release-pagination
Add Pagination to Releases-page (and de-duplicate pagination templates)
Thomas Boerger ceb920802a
Dropped link to Gogs docs from template
Kim "BKC" Carlbäcker 562f9b6eae Merge all pagination-templates into 'base/paginate'
to reduce code-duplicity
Kim "BKC" Carlbäcker 86fb1a0cb1 Add Pagination to Releases-page
Rachid Zarouali be5607e510 Merge pull request from 0xbaadf00d/feature/2583-disablehttpcloning
Disable HTTP cloning
Rémy Boulanouar 8dc49dc114 Implementation of the feature to redirect to an external issue tracker
Thibault Meyer 17f9ab4ff8 Use user fullname if resolved
Thibault Meyer 93f1eabe30
rename variable + fix wiki link
Thibault Meyer 9d66497abc
Can disable GIT interactions by HTTP protocol
Unknwon c50d59874d
incorrect URL produced by AvatarLink