| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 <NChris@posteo.net>
* Moved check for protected branch into new function CheckUserAllowedToMerge
Signed-off-by: Christian Wulff <NChris@posteo.net>
* Removed merge conflict lines from last commit
Signed-off-by: Christian Wulff <NChris@posteo.net>
* Explicit check for error type in ViewIssue
Signed-off-by: Christian Wulff <NChris@posteo.net>
|
|
|
|
|
|
| |
* Add label descriptions
* Add default descriptions to label template
|
| |
|
|
|
|
|
|
|
|
| |
* Fix column removal in MSSQL
* Use xorm session in MSSQL drop column operations
* Add transaction as MSSQL alter table is transactional
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 <info@jonasfranz.de>
* Add unit tests for new attachment functions
Fix comments
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fix lint
* Update vendor.json
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* remove version of sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix unit tests
Add missing license header
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add filename query parameter for choosing another name for an attachment
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix order of imports
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Restricting updatable attachment columns
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* gofmt
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update go-sdk
Replace Attachments with Assets
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Update go-sdk
Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Updating go-sdk and regenerating swagger
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing file of go-sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update swagger
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
* feat: Add feed for organization
* fix: testing
* fix: testing
* fix: testing
* fix: testing
|
|
|
|
|
| |
There's one for git gc, why not git fsck too?
Also add a couple more trace logs to GitFsck to see progress
|
| |
|
|
|
|
|
| |
Put sess.Commit() out of the RemoveOrgUser function
Add an empty line to separate import packages
|
|
|
| |
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 <appleboy.tw@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
* Use unique temp dirs in unit tests
* Remove temp dirs after tests run
* os.RemoveAll -> removeAllWithRetry
|
|
|
|
|
| |
Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
Use TimeStampNow function
|
|
|
| |
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
|
|
|
|
|
|
| |
(#3528)
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
|
|
|
| |
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
|
| |
|
|
|
| |
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
|
| |
|
|
|
|
|
|
| |
* Fix rendering of wiki page list if wiki repo contains other files
* Improve wiki filename tests
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* Add HeaderWithSensitiveCase methods to respect casing
* Update webhook.go
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Fix #3378
|
|
|
|
|
|
|
|
|
|
| |
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
|
|
|
| |
In #3377, I put check inside all write key function. This one is useless no.
|
|
|
|
|
|
|
|
|
|
|
| |
* Force-push to base repo's ref/pull/#/head
Fixes force-pushing to pull request branches, otherwise failing with:
[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)
* format
|
|
|
|
|
|
|
|
|
|
| |
* Change how merged PR commits and diff are made
* Update code.gitea.io/git dependency
* Fix typo
* Remove unneeded local variable
|
|
|
|
| |
* comment
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
| |
* Populate repo indexer in background
* Check if no repos exist
* race cond
|
| |
|
| |
|
|
|
|
|
|
| |
* Remove hardcoded paths to fix randomly failing tests
* Use correct function for merge path
|
|
|
|
|
|
| |
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
|
| |
|
|
|
|
|
|
| |
* Add missing indexer doc in configuration
* Unify MAX_FILE_SIZE to 1024 * 1024
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add is_writable checkbox to deploy keys interface
* Add writable key option to deploy key form
* Add support for writable ssh keys in the interface
* Rename IsWritable to ReadOnly
* Test: create read-only and read-write deploy keys via api
* Add DeployKey access mode migration
* Update gitea sdk via govendor
* Fix deploykey migration
* Add unittests for writable deploy keys
* Move template text to locale
* Remove implicit column update
* Remove duplicate locales
* Replace ReadOnly field with IsReadOnly method
* Fix deploy_keys related integration test
* Rename v54 migration with v55
* Fix migration hell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rebase, Squash merge (#3188)
* Pull request options migration and UI in settings
* Add ignore whitespace functionality
* Fix settings if pull requests are disabled
* Fix migration transaction
* Merge with Rebase functionality
* UI changes and related functionality for pull request merging button
* Implement squash functionality
* Fix rebase merging
* Fix pull request merge tests
* Add squash and rebase tests
* Fix API method to reuse default message functions
* Some refactoring and small fixes
* Remove more hardcoded values from tests
* Remove unneeded check from API method
* Fix variable name and comment typo
* Fix reset commit count after PR merge
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Serve pull request .diff files
Closes #3259
* Add test for pull request redirection and .diff access
* Typo
* There's no need to test for pr.BaseRepo being nil after calling GetBaseRepo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
|