| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This PR protects against the panic referred to in chaseadmsio/goorgeous#82
by recovering from the panic and just returning the raw bytes if
there is an error.
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
|
|
|
|
|
|
| |
This PR gitea'ises the macaron.Recovery() handler meaning that in
the event of panic we get proper gitea 500 pages and the stacktrace
is logged with the gitea logger.
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
| |
|
| |
|
|
|
|
|
|
| |
* don't allow pull requests to be created on an archived repository
Also disable the "PR" button if the repo is archived
* Refuse creating an issue/PR via API calls too
|
|
|
|
|
| |
* Consider the configuration value of DISABLE_REGULAR_ORG_CREATION when
creating a user
|
| |
|
|
|
|
|
|
|
|
| |
* Fix new release creation API to allow empty target
* Add more test cases
* Update swagger
|
| |
|
|
|
|
| |
(#5889)
|
| |
|
| |
|
|
|
| |
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
| |
|
|
|
|
|
|
| |
Previous code could potentially dereference nil - this PR ensures
that the poster is loaded before dereferencing it.
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add migration test
This commit adds a simple migration test for v1.5.3, v1.6.4 and v1.7.0-rc3
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Automigrate based on available dbs
* remove old ini file
* Standardise the dialect names
|
| |
|
|
|
|
|
|
|
|
| |
* Fix wrong URL to download link.
The link does not contain trailing slash and cause error page displayed.
* Update version
|
|
|
|
|
|
|
|
| |
* New Issue ?body= query
* Override issue template with body query
* Add documentation for issue body query
|
| |
|
| |
|
|
|
| |
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
|
|
|
|
| |
(#5836)
Revert #3711 overwrite of only show "No Description" to repo admins #2167 and add tests to prevent accidental overwrite again.
|
|
|
|
|
| |
As per @lafriks comment this should be: requested changes
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
| |
|
|
|
| |
Fixes: #5783
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a new config option to enable / disable the automatic watching of
repos for new repositories and if a user is added to a team.
Fixes #653
Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
|
|
|
|
|
|
| |
* remame reject to 'request changes
* make usee of requested changes in issue's view content
|
|
|
| |
Fixes #5848
|
|
|
| |
Fixes #5847
|
| |
|
|
|
|
|
|
| |
Move input fields to the top so no scrolling is needed to add
new members / repos to a team.
Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
| |
* improve the releases api paging
* add max limit on API paging
|
|
|
|
|
|
|
|
| |
* Added docs for the tree api
* Added missing response definition
* Fixed swagger docs
|
| |
|
|
|
|
|
|
| |
* Include Go version
* fix import order
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Ensure valid git author names passed in signatures
Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and
must not be empty. Ensure that the name passed in a signature is valid.
* Account for pathologically named external users
LDAP and the like usernames are not checked in the same way that users who signup are.
Therefore just ensure that user names are also git safe and if totally pathological -
Set them to "user-$UID"
* Add Tests and adjust test users
Make our testcases a little more pathological so that we be sure that integration
tests have a chance to spot these cases.
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
| |
|
|
|
|
|
|
| |
* Make sure .git/info is created before generating .git/info/sparse-checkout
* fix permissions
|
|
|
|
|
|
|
|
|
|
| |
* Remove tidb reference from docs
* Update from-source.fr-fr.md
* Update from-source.zh-cn.md
* Update from-source.zh-tw.md
|
| |
|
| |
|
|
|
|
|
|
| |
* Update go-ldap dependency
* Request for public keys only if attribute is set
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* New API routes added
* Comments added
* Build fix
* swagger_v1_json.tmpl without new line character
* Typo fix
* Code review changes
* Code review changes
* Add copyright
* Add copyright
* Add copyright
* Update per @lafriks feedback
* Update org.go
* Update user.go
* Update user.go
* make fmt
|
| |
|
|
|
|
|
| |
Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from #3572 (commit a74426d631e3311cc3c460ae9917f76f0221f4de)
Signed-off-by: Peter Colberg <peter@colberg.org>
|