Age | Commit message (Expand) | Author |
2019-10-24 | Hide some user information via API if user have no enough permission (#8655) ...•••* Hide some user information via API if user have no enough permission
* fix test | Lunny Xiao |
2019-10-21 | Update heatmap fixtures to restore tests (#8615) (#8617)•••* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail | zeripath |
2019-10-13 | Restore functionality for early gits (#7775) (#8476)•••* Change tests to make it possible to run TestGit with 1.7.2
* Make merge run on 1.7.2
* Fix tracking and staging branch name problem
* Ensure that git 1.7.2 works on tests
* ensure that there is no chance for conflicts
* Fix-up missing merge issues
* Final rm
* Ensure LFS filters run on the tests
* Do not sign commits from temp repo
* Apply suggestions from code review
* Update modules/repofiles/temp_repo.go
| zeripath |
2019-09-17 | Fix data race (#8206)•••* Fix data race
* Fix data race in modules/log
* Make the scope of lock finner-grained
* Use syc.Map
* Fix missing change in the test
* Do not export LoggerMap
| Mura Li |
2019-09-17 | Fix team user api (#8172) (#8188)•••* fix team user api
* fix tests
* fix api
* fix team user api
* change user convert
* fix tests
* fix tests | Lunny Xiao |
2019-08-20 | Fix pull creation with empty changes (#7920) (#7926)•••* Logs the stderr of git-apply
* Add an integration test
* Skip testPatch when patch is empty | Mura Li |
2019-08-15 | lfs/lock: round locked_at timestamp to second (#7872) (#7875)•••* lfs/lock: round locked_at timestamp to second
* test returned locked_at values
* tests: use time RFC3339
| Antoine GIRARD |
2019-08-14 | Fix local runs of ssh-requiring integration tests (#7857) | zeripath |
2019-08-12 | Fix duplicate call of webhook (#7821) (#7824) | Antoine GIRARD |
2019-08-09 | api: fix multiple bugs with statuses endpoints (#7785) (#7807)•••* fix commit statuses api url
* search refs before passing sha
* adjust tests
* directly search tags and branches names + remove un-needed check in NewCommitStatus
* fix comment
* de-duplicate code
* test: use relative setting.AppURL
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* remove return
* Update routers/api/v1/repo/status.go
Co-Authored-By: Lauris BH <lauris@nix.lv> | Antoine GIRARD |
2019-08-06 | Fix dropTableColumns sqlite implementation (#7710) (#7765)•••* Fix dropTableColumns sqlite implementation
* use droptables and its index dropping support in v78 and v85
* golang-ci fixes
* Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works | zeripath |
2019-07-01 | fix pull view ui merge section (#7335)•••* fix pull view ui merge section
* fix tests
* fix tests
| Lunny Xiao |
2019-06-30 | Add commit statuses reports on pull request view (#6845)•••* Add commit statuses reports on pull view
* Add some translations
* improve the UI
* fix fmt
* fix tests
* add a new test git repo to fix tests
* fix bug when headRepo or headBranch missing
* fix tests
* fix tests
* fix consistency
* fix tests
* fix tests
* change the test repo
* fix tests
* fix tests
* fix migration
* keep db size consistency
* fix translation
* change commit hash status table unique index
* remove unused table
* use char instead varchar
* make hashCommitStatusContext private
* split merge section with status check on pull view ui
* fix tests; fix arc-green theme on pull ui
| Lunny Xiao |
2019-06-29 | Fixes #7292 - API File Contents bug (#7301) | Richard Mahn |
2019-06-29 | Fixes #7152 - Allow create/update/delete message to be empty, use default mes...•••* Fixes #7152 - Allow create/update/delete message to be empty, use default message
* Linting fix
* Fix to delete integration tests
| Richard Mahn |
2019-06-22 | Fix #732: Add LFS objects to base repository on merging (#7082)•••On merge we walk the merge history and ensure that all lfs objects pointed to in
the history are added to the base repository. This switches from relying on having git-lfs installed on the server, (and in fact .gitattributes being correctly installed.) | zeripath |
2019-06-12 | API error cleanup (#7186) | John Olheiser |
2019-06-12 | Add golangci (#6418) | kolaente |
2019-06-08 | Fixes #2738 - Adds the /git/tags API endpoint (#7138)•••* Fixes #2738 - /git/tags API
* proper URLs
* Adds function comments
* Updates swagger
* Removes newline from tag message
* Removes trailing newline from commit message
* Adds integration test
* Removed debugging
* Adds tests
* Fixes bug where multiple tags of same commit show wrong tag name
* Fix formatting
* Removes unused varaible
* Fix to annotated tag function names and response
* Update modules/git/repo_tag.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Uses TagPrefix
* Changes per review, better error handling for getting tag and commit IDs
* Fix to getting commit ID
* Fix to getting commit ID
* Fix to getting commit ID
* Fix to getting commit ID
| Richard Mahn |
2019-06-01 | Move serv hook functionality & drop GitLogger (#6993)•••* Move hook functionality internally
* Internalise serv logic
* Remove old internal paths
* finally remove the gitlogger
* Disallow push on archived repositories
* fix lint error
* Update modules/private/key.go
* Update routers/private/hook.go
* Update routers/private/hook.go
* Update routers/private/hook.go
* Updated routers/private/serv.go
* Fix LFS Locks over SSH
* rev-list needs to be run by the hook process
* fixup
* Improve git test
* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
* slight refactor
* Remove unnecessary "/"
* Restore ensureAnonymousClone
* Restore ensureAnonymousClone
* Run rev-list on server side
* Try passing in the alternative directories instead
* Mark test as skipped
* Improve git test
* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
* Remove unnecessary "/"
| zeripath |
2019-05-31 | Improve git test (#7086)•••* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
| zeripath |
2019-05-30 | Fixes #7023 - API Org Visibility (#7028) | Richard Mahn |
2019-05-30 | Fixes #5960 - Adds API Endpoint for Repo Edit (#7006)•••* Feature - #5960 - API Endpoint for Repo Editing
* Revert from merge
* Adds integration testing
* Updates to integration tests
* Revert changes
* Update year in file header
* Misspell fix
* XORM = test
* XORM = test
* revert XORM = file
* Makes RepoUnit.ID be pk and autoincr
* Fix to units
* revert header
* Remove print statement
* Adds other responses
* Improves swagger for creating repo
* Fixes import order
* Better Unit Type does not exist error
* Adds editable repo properties to the response repo structure
* Fix to api_repo_edit_test.go
* Fixes repo test
* Changes per review
* Fixes typo and standardizes comments in the EditRepoOption struct for swagger
* Fixes typo and standardizes comments in the EditRepoOption struct for swagger
* Actually can unarchive through the API
* Unlike delete, user doesn't have to be the owner of the org, just admin to the repo
* Fix to swagger comments for field name change
* Update to swagger docs
* Update swagger
* Changes allow_pull_requests to has_pull_requests
| Richard Mahn |
2019-05-28 | refactor: append, build variable and type switch (#4940)•••* refactor: append, build variable and type switch
* fix: remove redundant space.
| Bo-Yi Wu |
2019-05-28 | Fix LFS Locks over SSH (#6999)•••* Fix LFS Locks over SSH
* Mark test as skipped
| zeripath |
2019-05-23 | Change UpdateRepoIndex api to include watchers (#7012)•••* Change UpdateRepoIndex api to include watchers
* Add timeout
| zeripath |
2019-05-21 | Fix TestSearchRepo by waiting till indexing is done (#7004)•••* Fix TestSearchRepo by waiting till indexing is done
* Update integrations/repo_search_test.go
* changes as per @mrsdizzie
| zeripath |
2019-05-16 | Allow collaborators to view repo owned private org (#6965)•••Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org
Fixes #6962 | mrsdizzie |
2019-05-15 | SearchRepositoryByName improvements and unification (#6897) | zeripath |
2019-05-14 | Add work path CLI option (#6922)•••Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
| zeripath |
2019-05-13 | Handle CORS requests (#6289) | Tamal Saha |
2019-05-11 | Remove local clones & make hooks run on merge/edit/upload (#6672)•••* Add options to git.Clone to make it more capable
* Begin the process of removing the local copy and tidy up
* Remove Wiki LocalCopy Checkouts
* Remove the last LocalRepo helpers
* Remove WithTemporaryFile
* Enable push-hooks for these routes
* Ensure tests cope with hooks
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove Repository.LocalCopyPath()
* Move temporary repo to use the standard temporary path
* Fix the tests
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove LocalWikiPath
* Fix missing remove
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use AppURL for Oauth user link (#6894)
* Use AppURL for Oauth user link
Fix #6843
* Update oauth.go
* Update oauth.go
* internal/ssh: ignore env command totally (#6825)
* ssh: ignore env command totally
* Remove commented code
Needed fix described in issue #6889
* Escape the commit message on issues update and title in telegram hook (#6901)
* update sdk to latest (#6903)
* improve description of branch protection (fix #6886) (#6906)
The branch protection description text were not quite accurate.
* Fix logging documentation (#6904)
* ENABLE_MACARON_REDIRECT should be REDIRECT_MACARON_LOG
* Allow DISABLE_ROUTER_LOG to be set in the [log] section
* [skip ci] Updated translations via Crowdin
* Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
| zeripath |
2019-05-11 | Move sdk structs to modules/structs (#6905)•••* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
| Lunny Xiao |
2019-05-08 | Fixes #6881 - API users search fix (#6882) | Richard Mahn |
2019-05-07 | Fix 404 when send pull request some situation (#6871) | Lunny Xiao |
2019-05-06 | Refactor table width to have more info shown in file list (#6867)•••* Refactor table width to have more info shown in file list
* Remove unnecesary semicolon
* Fix tests for changed html structure
| Lauris BH |
2019-05-06 | fix 500 when reviewer is deleted with integration tests (#6856) | Lunny Xiao |
2019-05-06 | Add mssql migration tests (#6852) | zeripath |
2019-05-04 | Hash App token (#6724) | techknowlogick |
2019-04-29 | Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631) | zeripath |
2019-04-27 | Fix team edit API panic (#6780) | ngourdon |
2019-04-25 | Fix org visibility bug when git cloning (#6743)•••* fix org visibility bug
* fix permission check
* add integration tests
* fix tests
* change test user name for easier maintainance and fix test
* fix test git repo name
| Lunny Xiao |
2019-04-24 | Fix: Sort repos on org home page with non-admin login (#6741) | Lunny Xiao |
2019-04-24 | Add tests for Org API (#6731) | Lunny Xiao |
2019-04-24 | Fix team members API (#6714) | Lunny Xiao |
2019-04-20 | Prevent creating empty sessions (#6677)•••* Prevent creating empty sessions
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update modules/setting/session.go
* Remove unnecessary option
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add destory to list of ignored misspellings
* rename cookie.go -> virtual.go
* Delete old file
* Add test to ensure that sessions are not created without being logged in
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix tests
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update integrations/create_no_session_test.go
| zeripath |
2019-04-19 | Improve listing performance by using go-git (#6478)•••* Use go-git for tree reading and commit info lookup.
Signed-off-by: Filip Navara <navara@emclient.com>
* Use TreeEntry.IsRegular() instead of ObjectType that was removed.
Signed-off-by: Filip Navara <navara@emclient.com>
* Use the treePath to optimize commit info search.
Signed-off-by: Filip Navara <navara@emclient.com>
* Extract the latest commit at treePath along with the other commits.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix listing commit info for a directory that was created in one commit and never modified after.
Signed-off-by: Filip Navara <navara@emclient.com>
* Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit).
Signed-off-by: Filip Navara <navara@emclient.com>
* Use go-git for reading blobs.
Signed-off-by: Filip Navara <navara@emclient.com>
* Make SHA1 type alias for plumbing.Hash in go-git.
Signed-off-by: Filip Navara <navara@emclient.com>
* Make Signature type alias for object.Signature in go-git.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix GetCommitsInfo for repository with only one commit.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix PGP signature verification.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix issues with walking commit graph across merges.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix typo in condition.
Signed-off-by: Filip Navara <navara@emclient.com>
* Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes).
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix lising submodules.
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix build
Signed-off-by: Filip Navara <navara@emclient.com>
* Add back commit cache because of name-rev
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix tests
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix code style
* Fix spelling
* Address PR feedback
Signed-off-by: Filip Navara <navara@emclient.com>
* Update vendor module list
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix getting trees by commit id
Signed-off-by: Filip Navara <navara@emclient.com>
* Fix remaining unit test failures
* Fix GetTreeBySHA
* Avoid running `git name-rev` if not necessary
Signed-off-by: Filip Navara <navara@emclient.com>
* Move Branch code to git module
* Clean up GPG signature verification and fix it for tagged commits
* Address PR feedback (import formatting, copyright headers)
* Make blob lookup by SHA working
* Update tests to use public API
* Allow getting content from any type of object through the blob interface
* Change test to actually expect the object content that is in the GIT repository
* Change one more test to actually expect the object content that is in the GIT repository
* Add comments
| Filip Navara |
2019-04-17 | Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) | Richard Mahn |
2019-04-17 | Add API for manipulating Git hooks (#6436)•••* Add API for manipulating Git hooks
Signed-off-by: Segev Finer <segev@codeocean.com>
* Replace code.gitea.io/sdk with PR branch temporarily for CI
* Switch back to code.gitea.io/sdk@master
* Return 403 instead of 404 on no permission to edit hooks in API
* Add tests for Git hooks API
* Update models/repo_list_test.go
Co-Authored-By: segevfiner <segev208@gmail.com>
* Update models/repo_list_test.go
Co-Authored-By: segevfiner <segev208@gmail.com>
* empty line
| Segev Finer |
2019-04-15 | Return a UserList from /api/v1/admin/users (#6629) | zeripath |