| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
variables (#5935)
The gitea prerecieve and postrecieve hooks and the gitea PushUpdate function require that the PusherID and PusherName are real users. Previously, these environment variables were not being set when using a deploy key - the main result being that pushing to empty repositories meant that is_empty status was not changed.
I've also added an integration test to ensure that the is_empty status is updated on pushing with a deploy key.
There is a slight issue in that the deploy key is now considered a proxy for the owner - we don't have a way of separating out the deploy key from the owner at present. This can be fixed in another PR.
Fix #3795
Signed-off-by: Andrew Thornton art27@cantab.net
|
|
|
|
|
|
|
| |
By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH.
This PR disables the console logger whilst in `serv.go`
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
|
|
| |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
|
|
|
|
| |
* add single commit API support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Create log mailer for testing email settings
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Switch on the log mailer for the integration tests
This ensures that the sending mail process works
Signed-off-by: Andrew Thornton <art27@cantab.net>
* rename the from user for mysql/mssql
* rename log sender to dummy sender
* update the integration tests
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wrapping was initially added in https://github.com/go-gitea/gitea/pull/2789
but it is currently disabled because the rule that applies wrapping to
the wrap class did not have enough CSS specificity.
Resolved the issue by using a general selector that matches all code
boxes. The previous wrap class was removed because it had only been
inconsistenly applied to various code boxes and because I found no easy
way to add classes to code boxes rendered in Markdown.
Also removed a seemingly useless :before on code view and added padding
to restore the spacing.
|
|
|
|
|
|
| |
* UI: Make long repo names wrap less often
* also adjust news feed column widths
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* fix bug when read public repo lfs file
* add comment on lfs permission check
|
|
|
|
|
|
|
| |
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
|