| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Signed-off-by: Tamal Saha <tamal@appscode.com>
|
|
|
|
|
|
|
|
|
|
| |
* add file status on API
* fix tests
* fix tests
* fix tests
|
| |
|
|
|
|
|
|
|
|
| |
* fix upload file type check
* make the function simple and added tests
* Update comment as per @silverwind
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Explode out mirror username and password
* Update models/repo_mirror.go
* Just roundtrip the password
* remove unused declaration
* Update templates/repo/settings/options.tmpl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* detect csv delimiter in csv rendering
fixes #7868
* make linter happy
* fix failing testcase & use ints where possible
* expose markup type to template
previously all markup had the .markdown class, which is incorrect,
as it applies markdown CSS & JS logic to CSV rendering
* fix build (missing `make css`)
* ignore quoted csv content for delimiter scoring
also fix html generation
|
|
|
|
|
|
|
|
|
|
| |
* Remove unique filter from repo indexer analyzer.
* Bump repoIndexerLatestVersion to 4
* Corrrect fmt
* make vendor to remove unique dependency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
* add GetTopics interface
* CreateTopics
* remove un-needed comment
|
|
|
| |
Which would unnecessarily slow down the pull compare operation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you add t.Logf("%+v %+v", actual, testCase.expectedErrors) to
the test code, you'll notice that only Errors' Messages are being
compared:
--- PASS: Test_ValidURLValidation/Invalid_schema (0.00s)
binding_test.go:43: [Url] [Url]
FieldNames and Classification are ignored in comparison.
Moreover, an Errors slice with a single Error with empty message
is formatted as '[]' (the same as empty slice), which is also
error-prone. I discovered this when working on #7791 when one test which
was not supposed to pass did pass. https://play.golang.org/p/qC4wVLrm4NG
This commit changes the test to do the comparison properly.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make repository indexer tokenize by camel case selectable
* Revert "Make repository indexer tokenize by camel case selectable"
This reverts commit a8d4e40af56ffeab9c040a13e01b9e0d5487bd3b.
* Remove app.ini setting, permanently remove camel case tokenizer
* Increase repoIndexerLatestVersion to force indexes to be rebuilt
* Changes introduced by the commmand make vendor
|
|
|
|
|
|
| |
* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name
|
|
|
|
|
| |
Data partially based on [CodeMirror's meta.js](https://github.com/codemirror/CodeMirror/blob/master/mode/meta.js).
Fixes: https://github.com/go-gitea/gitea/issues/6057
|
|
|
|
|
|
|
|
| |
* Fix specific highlighting.
* Highlighting CMakeLists.txt:
remove case sensitive checks.
use lowercase checks instead.
|
|
|
|
| |
(#7718)
|
| |
|
| |
|
|
|
|
|
|
| |
* move commit repo action from models to repofiles package
* fix unit tests
|
| |
|
|
|
|
|
|
| |
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* Fix empty commits now showing in repo overview
* add test
* make fmt
|
|
|
| |
No need to wrap this.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* remove settting dependency on modules/session
* fix fmt
* fix tests
* fix lint
|
| |
|
| |
|
|
|
| |
Signed-off-by: Tamal Saha <tamal@appscode.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add history comments to detect page delete
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix too much history entries
- caused by --follow flag
- if files with same contents exists
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* style imprevements wiki
- history - wrap long author names
Signed-off-by: Michael Gnehr <michael@gnehr.de>
|
|
|
|
|
|
| |
* fix migration tests since #7 fixed
* fix test time
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
issues/comments (#7352)
* Store original author info for migrated issues and comments
Keep original author name for displaying in Gitea interface and also
store original author user ID for potential future use in linking
accounts from old location.
* Add original_url for repo
Store the original URL for a migrated repo
Clean up migrations/tests
* fix migration
* fix golangci-lint
* make 'make revive' happy also
* Modify templates to use OriginalAuthor if set
Use the original author name in templates if it is set rather than the
user who migrated/currently owns the issues
* formatting fixes
* make generate-swagger
* Use default avatar for imported comments
* Remove no longer used IgnoreIssueAuthor option
* Add OriginalAuthorID to swagger also
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
resolves git conflicts from #3896 (credit to @belak, in case github doesn't keep original author during squash)
Co-Authored-By: Matti Ranta <techknowlogick@gitea.io>
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Experimental support for git commit graph files and bloom filter index
Signed-off-by: Filip Navara <filip.navara@gmail.com>
* Force vendor of commitgraph
Signed-off-by: Filip Navara <filip.navara@gmail.com>
* Remove bloom filter experiment and debug prints
* Remove old code for building commit graphs
* Remove unused function
* Remove mmap usage
* gofmt
* sort vendor/modules.txt
* Add copyright header and log commit-graph error
|
|
|
|
|
|
|
|
| |
* fix bug conflict between SyncReleasesWithTags and InsertReleases
* fix tests
* fix fmt
|