* add topic models and unit tests
* fix comments
* fix comment
* add the UI to show or add topics for a repo
* show topics on repositories list
* fix test
* don't show manage topics link when no permission
* use green basic as topic label
* fix topic label color
* remove trace content
* remove debug function
Modify the call to ping the database to fail gracefully if the
database has not yet been configured by the end user, such as
after a clean install. This allows /healthcheck to return a 200
with a modified status message instead of causing a PANIC.
Signed-off-by: Evan Sherwood <[email protected]>
* Add size column to attachment
Migrate attachments by calculating file sizes
Signed-off-by: Jonas Franz <[email protected]>
* Calculate attachment size on creation
Signed-off-by: Jonas Franz <[email protected]>
* Log error instead of returning error
Signed-off-by: Jonas Franz <[email protected]>
New Feature:
* Repository struct field for IsFsckEnabled (default true of course)
* Admin Settings section on repo options page, accessible only by
admin users
Possible Enhancements:
* There's no way to force running health checks on all repos
regardless of their IsFsckEnabled setting. This would be useful if
there were an admin API or dashboard button to run fsck immediately.
Issue: https://github.com/go-gitea/gitea/issues/1712
Signed-off-by: Allen Wild <[email protected]>
* Improve release page ui by adding size
Signed-off-by: Jonas Franz <[email protected]>
* Add documentation to a.MustSize()
Signed-off-by: Jonas Franz <[email protected]>
* add global code search on explore
* fix bug when no anyone public repos
* change the icon
* fix typo and add UnitTypeCode check for login non-admin user
* fix ui description when no match
* Added checks for protected branches in pull requests
Signed-off-by: Christian Wulff <[email protected]>
* Moved check for protected branch into new function CheckUserAllowedToMerge
Signed-off-by: Christian Wulff <[email protected]>
* Removed merge conflict lines from last commit
Signed-off-by: Christian Wulff <[email protected]>
* Explicit check for error type in ViewIssue
Signed-off-by: Christian Wulff <[email protected]>
* Add Attachment API
* repos/:owner/:repo/releases (add attachments)
* repos/:owner/:repo/releases/:id (add attachments)
* repos/:owner/:repo/releases/:id/attachments
* repos/:owner/:repo/releases/:id/attachments/:attachment_id
Signed-off-by: Jonas Franz <[email protected]>
* Add unit tests for new attachment functions
Fix comments
Signed-off-by: Jonas Franz <[email protected]>
* fix lint
* Update vendor.json
Signed-off-by: Jonas Franz <[email protected]>
* remove version of sdk
Signed-off-by: Jonas Franz <[email protected]>
* Fix unit tests
Add missing license header
Signed-off-by: Jonas Franz <[email protected]>
* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment
Signed-off-by: Jonas Franz <[email protected]>
* Add filename query parameter for choosing another name for an attachment
Signed-off-by: Jonas Franz <[email protected]>
* Fix order of imports
Signed-off-by: Jonas Franz <[email protected]>
* Restricting updatable attachment columns
Signed-off-by: Jonas Franz <[email protected]>
* gofmt
Signed-off-by: Jonas Franz <[email protected]>
* Update go-sdk
Replace Attachments with Assets
Signed-off-by: Jonas Franz <[email protected]>
* Update go-sdk
Signed-off-by: Jonas Franz <[email protected]>
* Updating go-sdk and regenerating swagger
Signed-off-by: Jonas Franz <[email protected]>
* Add missing file of go-sdk
Signed-off-by: Jonas Franz <[email protected]>
* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk
Signed-off-by: Jonas Franz <[email protected]>
* Update swagger
Signed-off-by: Jonas Franz <[email protected]>
* Update updateAttachment
* Don't write to log NoCommitterAccount
It's way too verbose, and the information is also printed to the user
already. Fixes#3602.
* ignore err only if it's a ErrUserNotExist
* Replace with IsErrUserNotExist
* fix: if Mirrors repo no content is fetched, updated time should not be changed
* fix: sync update time from mirror repo.
* fix: one single session.
* update comment.
Signed-off-by: Bo-Yi Wu <[email protected]>
* Enable caching on assets and avatars
Fixes#3323
* Only set avatar in user BeforeUpdate when there is no avatar set
* add error checking after stat
* gofmt
* Change cache time for avatars to an hour
* test: integration add git cli tests
Extracted form for easing review process and debug #3152
* test: integration add git cli big file commit
* fix: Don't rewrite key if internal server