| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Signed-off-by: Tamal Saha <tamal@appscode.com>
|
|
|
| |
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* add file status on API
* fix tests
* fix tests
* fix tests
|
|
|
|
|
| |
* Logs the stderr of git-apply
* Add an integration test
* Skip testPatch when patch is empty
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Explode out mirror username and password
* Update models/repo_mirror.go
* Just roundtrip the password
* remove unused declaration
* Update templates/repo/settings/options.tmpl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* display ui time with customize time location
* fix lint
* rename UILocation to DefaultUILocation
* move time related functions to modules/timeutil
* fix tests
* fix tests
* fix build
* fix swagger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Convert files to utf-8 for indexing
* Move utf8 functions to modules/base
* Bump repoIndexerLatestVersion to 3
* Add tests for base/encoding.go
* Changes to pass gosimple
* Move UTF8 funcs into new modules/charset package
|
|
|
|
|
|
|
|
| |
* lfs/lock: round locked_at timestamp to second
* test returned locked_at values
* tests: use time RFC3339
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Check commit message hashes before making links
Previously, when formatting commit messages, anything
that looked like SHA1 hashes was turned into a link
using regex. This meant that certain phrases or numbers
such as `777777` or `deadbeef` could be recognized as a commit
even if the repository has no commit with those hashes.
This change will make it so that anything that looks
like a SHA1 hash using regex will then also be checked
to ensure that there is a commit in the repository
with that hash before making a link.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Use gogit to check if commit exists
This commit modifies the commit hash check
in the render for commit messages to use
gogit for better performance.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Make code cleaner
Signed-off-by: Gary Kim <gary@garykim.dev>
* Use rev-parse to check if commit exists
Signed-off-by: Gary Kim <gary@garykim.dev>
* Add and modify tests for checking hashes in html link rendering
Signed-off-by: Gary Kim <gary@garykim.dev>
* Return error in sha1CurrentPatternProcessor
Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* Import Gitea log module
Signed-off-by: Gary Kim <gary@garykim.dev>
* Revert "Return error in sha1CurrentPatternProcessor"
This reverts commit 28f561cac46ef7e51aa26aefcbe9aca4671366a6.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Add debug logging to sha1CurrentPatternProcessor
This will log errors by the git command run in
sha1CurrentPatternProcessor if the error is one
that was unexpected.
Signed-off-by: Gary Kim <gary@garykim.dev>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
* fix approvals counting
* fix tests
* fmt
|
|
|
| |
The order of forkee and fork was mixed up.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add migration step to remove old repo_indexer_status orphaned records
* Include RepoIndexerStatus struct definition in the migrate function
* Change .Delete(o) into ID(o.ID).Delete(new(RepoIndexerStatus))
* Simplification of the delete procedure
* Rename v91.go to v92.go
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* add index on comment
* add SQL execution time on log and index owner_id on repository
* add migration
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* org/members: display 2FA state
* fix comment typo
* lay down UserList bases
* add basic test for previous methods
* add comment for UserList type
* add valid two-fa account
* test new UserList methods
* optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests
* respect fmt rules
* use map for data
* Optimize GetTwoFaStatus
* rewrite by using existing sub func
* Optimize IsUserOrgOwner
* remove un-used code
* tests: cover empty org + fix import order
* tests: add ErrTeamNotExist path
* tests: fix wrong expected result
|
|
|
|
| |
(#7718)
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
|
|
|
|
|
|
| |
* move commit repo action from models to repofiles package
* fix unit tests
|
| |
|
| |
|
|
|
|
|
|
|
| |
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.
this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
|
| |
|
|
|
|
|
|
| |
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
|
|
|
|
|
|
|
|
| |
* Make PEM and SSH2 keys work
* add ssh2 testcases and PEM cases - and fix PEM
* Add final test to parse the proposed key
|
|
|
|
|
|
|
|
| |
* Fix panic in #7611
Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary
* Only fetch the head branch from the remote
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix #7136: Add paging and extend API GetCommitStatuses
* update swagger
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update routers/api/v1/repo/status.go
Co-Authored-By: techknowlogick <matti@mdranta.net>
* Apply suggestions from code review
|
|
|
|
|
|
| |
* move models.PushUpdate to repofiles.PushUpdate
* remove duplicated code to load repo
|
|
|
| |
Whenever we assign a value to err, check for it being nil.
|
|
|
| |
No need to convert to the same type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Strip newlines from SSH keys before adding them
Fixes: https://github.com/go-gitea/gitea/issues/7500
* add test for CheckPublicKeyString
* add one more test
* simplify test
* further simplify
* make fmt
|
|
|
| |
Don't assign values we never use.
|
|
|
|
| |
Just makes it a bit more obvious which values we want to test for, and which
ones we want to ignore.
|
|
|
|
|
|
| |
* fix pr count error
* fix tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Include thread related headers in issue/coment mail
Make it so mail programs will group comments from an issue into the same
thread by setting Message-ID on initial issue and then using In-Reply-To
and References headers to reference that later on.
* Add tests
* more tests
* fix typo
|
|
|
|
|
|
|
|
| |
The update call on the user call races if there is more than one
repository creation concurrently, leading to incorrect count of
repos. Split things in two, so that we call the update for last
visibility (which isn't problematic if it races, since it can only
ever be best-effort anyway). This way we can atomically increment
the count of repos.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Fix regex for issues in commit messages
Use same regex as markup for matching in commits.
Fixes #7438
* make fmt
|
|
|
|
|
|
|
|
|
|
| |
* only return head: null if source branch was deleted
* add URL into GetPullRequest
* TestPullRequest_APIFormat
* log error if it is not Err(Branch)NotExist
|