zeripath
9542d72bf6
Be more strict with git arguments ( #7715 )
* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name
5 years ago
silverwind
2b0069abee
Add a lot of extension to language mappings for syntax highlights ( #7741 )
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
5 years ago
Lunny Xiao
c6abb0f864
Add SQL execution on log and indexes on table repository and comment ( #7740 )
* add index on comment
* add SQL execution time on log and index owner_id on repository
* add migration
5 years ago
Antoine GIRARD
92cf243031
deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 ( #7749 )
* deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 from 1.2.0 to 1.3.0
* deps: vendor updates
5 years ago
Antoine GIRARD
9f5dc25a9a
build: use GOPROXY and disable download on some steps ( #7745 )
* build: use GOPROXY
* disable download vendor on some steps
5 years ago
Lunny Xiao
16e8a23648
add pagination for admin api get orgs and fix only list public orgs bug ( #7742 )
5 years ago
jaqra
3f19bffa01
Apply emoji on commit graph page ( #7743 )
5 years ago
silverwind
b4f6388b27
Tweak label border CSS ( #7739 )
Also did various tweaks to label hover and dark theme.
Fixes: https://github.com/go-gitea/gitea/pull/5487
5 years ago
FlorianBen
ce74319a6b
Fix specific highlighting (CMakeLists.txt ...) ( #7686 )
* Fix specific highlighting.
* Highlighting CMakeLists.txt:
remove case sensitive checks.
use lowercase checks instead.
5 years ago
guillep2k
c68f998b7f
Fix repo_index_status lingering when deleting a repository ( #7734 )
5 years ago
Lauris BH
0294530b62
Fix milestone completness calculation when migrating ( #7725 )
5 years ago
guillep2k
b63ffc9182
Fixes indexed repos keeping outdated indexes when files grow too large ( #7712 )
5 years ago
Lunny Xiao
29269ec59c
display as error ( #7724 )
5 years ago
Antoine GIRARD
0a613b8bfd
org/members: display 2FA members states + optimize sql requests ( #7621 )
* 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
5 years ago
guillep2k
6a6b75190d
Include "executable" files in the index, as they are not necessarily binary ( #7718 )
5 years ago
guillep2k
d099fa4929
Skip non-regular files (e.g. submodules) on repo indexing ( #7711 )
5 years ago
silverwind
0a6e52e922
Fix create menu item widths ( #7708 )
Fixes: https://github.com/go-gitea/gitea/issues/7098
5 years ago
Antoine GIRARD
fa979cd078
drone: a test for compat with 32 bit ( #7707 )
6 years ago
Lunny Xiao
263f38a6dc
remove unnecessary fmt on generate bindata ( #7706 )
6 years ago
Antoine GIRARD
a5fee1c0c1
update gopkg.in/src-d/go-git.v4 to v4.13.1 ( #7705 )
6 years ago
Lunny Xiao
14574c4b39
improve branches list performance and fix protected branch icon when no-login ( #7695 )
6 years ago
zeripath
a7b4f654c8
Correct wrong datetime format for git ( #7689 )
6 years ago
Antoine GIRARD
8dd043d5db
Update src-d/go-git to v4.13.0 ( #7688 )
* update gopkg.in/src-d/go-git.v4 v4.13.0
* mod tidy
* vendor
6 years ago
techknowlogick
fdf0422751
frontport 1.9.0 changelog ( #7687 )
6 years ago
Lunny Xiao
fdd2bd5245
fix duplicated webhook when creating issue with assignees ( #7681 )
6 years ago
GiteaBot
22645f478b
[skip ci] Updated translations via Crowdin
6 years ago
David Svantesson
329ef296f1
Move add to hook queue for created repo to outside xorm session. ( #7675 )
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
6 years ago
6543
24e1b09d71
sugestion to use range .Branches ( #7674 )
d57973a804
6 years ago
Lunny Xiao
d6fd784ea9
Move commit repo action from models to repofiles package ( #7645 )
* move commit repo action from models to repofiles package
* fix unit tests
6 years ago
zeripath
267b76a69f
SetDefaultBranch on pushing to empty repository ( #7610 )
6 years ago
GiteaBot
6f6ae81041
[skip ci] Updated translations via Crowdin
6 years ago
Lunny Xiao
d475c7309b
fix bug on migrating milestone from github ( #7665 )
6 years ago
Antoine GIRARD
ef25a47c7e
css: use flex to fix floating paginate ( #7656 )
6 years ago
6543
267238118f
hide delete/restor button on archived repos ( #7658 )
close issue #7653
6 years ago
GiteaBot
b5a630a7af
[skip ci] Updated translations via Crowdin
6 years ago
Antoine GIRARD
ca21076a85
integration tests: Use t.Helper() ( #7654 )
6 years ago
Lunny Xiao
ded386d786
change length of some repository's columns ( #7652 )
6 years ago
6543
0fe3058952
[Branch View] add download button ( #7604 )
* add download-button info message
* add overflow-visible css for table colum class
* right colum is always there
* add download button for default branch
* add download button for all other branchs
* resize table colum so two buttons fit in
* code indent avter rebase
* show commit divergence corect
https://github.com/go-gitea/gitea/issues/7625
* changes because of merge master into ...
* optimize if statement for protected branches
* dont downloat a deleted branch - fix error 404
6 years ago
6543
790f2e802d
[Branch View] Protection Symbole (delete dublicate) ( #7624 )
* delet protectin symbol on "action column"
* code format
6 years ago
renothing
1bb5393a42
fix wrong email when use gitea as OAuth2 provider ( #7640 )
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.
6 years ago
mrsdizzie
716c2454f7
Fix regression in reverse proxy documentation ( #7634 )
From Apache: AllowEncodedSlashes not allowed in <Proxy> context
Move this out of <Proxy> block
Fixes #7632
6 years ago
Andreas Shimokawa
8ab863ab84
reserve .well-known username ( #7637 )
6 years ago
GiteaBot
c9faeb710f
[skip ci] Updated translations via Crowdin
6 years ago
6543
1274c391f1
[Branch View] Delete Table Header ( #7622 )
* add class trom table header to table body
* remove table header
6 years ago
GiteaBot
76977d3880
[skip ci] Updated translations via Crowdin
6 years ago
zeripath
cfb86e94ee
Update to latest mssqldriver ( #7613 )
* New driver does not tolerate USE - handle this by closing db and reopening db in the new dbname
6 years ago
6543
0e50fcf4c5
[Branch View] icons to buttons ( #7602 )
* add restore-button info message
* branch deltete undo icon to button
* branch deltete icon to button
6 years ago
silverwind
6388dfecfa
Fix syntax highlight initialization ( #7617 )
* Fix syntax highlight initialization
Previously hljs was initialized via a function that relies on the
DOMContentLoaded event, registerd after jQuery's 'ready' event. I assume
that with the recent jQuery update, DOMContentLoaded may not be
guaranteed to fire after 'ready'. Fixed this via vanilla JS initalization.
Fixes: https://github.com/go-gitea/gitea/issues/7559
* semicolon
6 years ago
Lunny Xiao
8f5dfec7b6
Fix bug create/edit wiki pages when code master branch protected ( #7580 )
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
6 years ago
zeripath
f6c62eba30
Make PKCS8, PEM and SSH2 keys work ( #7600 )
* Make PEM and SSH2 keys work
* add ssh2 testcases and PEM cases - and fix PEM
* Add final test to parse the proposed key
6 years ago