| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* Fix branch page pull request title and link error (#10092)
* Fix tmpl
|
|
|
|
|
|
|
|
|
|
| |
* Fix milestone API state parameter unhandled (#10049)
* Fix milestone API state parameter unhandled
* Fix test
* Fix test
|
|
|
|
|
|
|
|
|
|
| |
* Fix wiki raw view on sub path
* Add test for subpath wiki raw file
* Fix bug
Co-authored-by: zeripath <art27@cantab.net>
|
|
|
|
|
|
|
|
|
| |
* Backport of #9879 (Add option to prevent LDAP from deactivating everything on empty search)
* go fmtted
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
|
|
|
|
|
|
| |
* fix bug about wrong dependencies permissions check and other wrong permissions check
* improve code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Ensure that 2fa is checked on reset-password
* Apply suggestions from code review
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lauris BH <lauris@nix.lv>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Fix download file wrong content-type
* change the error text to be more precise
* fix test
Co-authored-by: Lauris BH <lauris@nix.lv>
|
|
|
|
| |
(#9831)
|
|
|
|
|
|
| |
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
|
| |
|
| |
|
|
|
|
|
|
|
| |
through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.
Co-authored-by: Jordan <eatsleepgame@gmail.com>
|
|
|
|
| |
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Once a branch has been merged if the commit ID no longer equals that of
the pulls ref commit id don't offer to delete the branch on the pull screen
and don't list it as merged on branches.
Fix #9201
When looking at the pull page we should also get the commits from the refs/pulls/x/head
Fix #9158
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#9580)
* Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)
* dont insert "-1" in any case to issue.poster_id
* Make sure API cant override importand fields
* code format
* add Test for IssueEdit
* load milestone and return it on IssueEdit via API
* extend Test for TestAPIEditIssue
* fix TEST
* make sure Poster is loaded
* keep code format on backport as it is
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix bug when migrate from API (#8631)
* fix bug when migrate from API
* fix test
* fix test
* improve
* fix error message
* Update routers/api/v1/repo/repo.go
* remove unrelated
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
filter (#9512) (#9528)
* Fix repository issues pagination bug when there are more than one label filter (#9512)
* fix merge
|
|
|
|
|
|
| |
* Fix API migration wrong repository status
* Force push for ci
|
| |
|
|
|
| |
Signed-off-by: jolheiser <john.olheiser@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Properly fix #7147
Although #7300 properly shadows the password from the virtual session
provider, the template displaying the provider config still presumed
that the config was JSON.
This PR updates the template and properly hides the Virtual Session
provider.
Fixes #7147
* update per @silverwind's suggestion
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 'update'
* Send push tag event when release created
* send tag create event while release created in UI
* update to go v1.13
* fix gofmt error
* fix #8576 create pull request on current repository by default
|
|
|
|
| |
CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.
|
|
|
|
|
|
| |
* Fix password checks on admin create/edit user
* Remove incorrect trimspace
|
| |
|
|
|
|
|
|
|
| |
Fix #8718
This PR shadows passwords in session config correctly by detecting
the VirtualProvider, unmarshalling the original config and then
shadowing config within that.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Backport #8901
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
|
|
|
|
|
|
| |
* Fix registration password complexity
* Fix integration to use a complex password ;)
|
|
|
|
|
|
| |
* Fix require external registration password
* Fix ctx on error condition by @jolheiser
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Backport #8653
When doing GET /api/v1/users/{user} as an unauthenticated user,
gitea throws a 500 because it's trying to dereference elements
from the context user. It wants to do this to see whether to
show the primary email and will do that if the logged in user
is admin or the user in question. However, if ctx.User is nil there is a panic
|
|
|
|
|
|
|
| |
(#8657)
* Hide some user information via API if user have no enough permission
* fix test
|
|
|
|
|
|
| |
Partial backport without changes to locale files.
Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection
|
| |
|
|
|
|
|
|
|
| |
* fix bug on pull requests when transfer head repository
* add migration and fix lint
* fix tests and add a cache check on LoadBaseRepo
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#8524)
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords.
Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com>
Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: Lauris BH <lauris@nix.lv>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
github external user saved (#7751)
* update migrated issues/comments when login as github
* add get userid when migrating or login with github oauth2
* fix lint
* add migrations for repository service type
* fix build
* remove unnecessary dependencies on migrations
* add cron task to update migrations poster ids and fix posterid when migrating
* fix lint
* fix lint
* improve code
* fix lint
* improve code
* replace releases publish id to actual author id
* fix import
* fix bug
* fix lint
* fix rawdata definition
* fix some bugs
* fix error message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* move migrating to backend
* add loading image when migrating and fix tests
* fix format
* fix lint
* add redis task queue support and improve docs
* add redis vendor
* fix vet
* add database migrations and fix app.ini sample
* add comments for task section on app.ini.sample
* Update models/migrations/v84.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* Update models/repo.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* move migrating to backend
* add loading image when migrating and fix tests
* fix fmt
* add redis task queue support and improve docs
* fix fixtures
* fix fixtures
* fix duplicate function on index.js
* fix tests
* rename repository statuses
* check if repository is being create when SSH request
* fix lint
* fix template
* some improvements
* fix template
* unified migrate options
* fix lint
* fix loading page
* refactor
* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration
* fix js
* Update models/repo.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix tests
* rename ErrTaskIsNotExist to ErrTaskDoesNotExist
* delete release after add one on tests to make it run happy
* fix tests
* fix tests
* improve codes
* fix lint
* fix lint
* fix migrations
|
|
|
|
|
|
|
|
| |
* move change issue title from models to issue service package
* make the change less
* fix typo
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Check for either escaped or unescaped wiki filenames
+ Gitea currently saves wiki pages with escaped filenames.
+ Wikis mirrored from other places like Github use unescaped filenames.
+ We need to be checking for filenames in either format to increase compatibility.
* Better logic for escaped and unescaped wiki filenames
Co-Authored-By: null <guillep2k@users.noreply.github.com>
|
| |
|