Lunny Xiao
6d6f1d568e
Fix wrong permissions check when issues/prs shared operations ( #9885 )
...
* Fix wrong permissions check when issues/prs shared operations
* move redirect to the last of the function
* fix swagger
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-20 13:00:32 +01:00
Lauris BH
81cfe243f9
Add top author stats to activity page ( #9615 )
2020-01-20 12:07:30 +02:00
John Olheiser
7d7ab1eeae
Issue/PR Context Popups ( #9822 )
...
* Add data-index attribute to issue anchors
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Init JS
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add required data to anchor
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Finish popup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert changes to html.go
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Better octicon contexts
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Split out popup function for re-use
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Style changes, test fixes, and cross-reference support
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Prefer em to px
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move label margin to base CSS
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move JS to separate file.
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move JS to features and fix module
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove query-string and hash
Co-Authored-By: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2020-01-19 23:39:21 -05:00
zeripath
c5014a7f2c
Add option to prevent LDAP from deactivating everything on empty search ( #9879 )
...
* Add option to prevent LDAP from deactivating everything on empty search
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-20 11:47:39 +08:00
zeripath
54c2854cd2
Give the stdout on temp_repo error ( #9871 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-20 09:32:47 +08:00
zeripath
dcf7e858cb
Check user != nil before checking values ( #9881 )
...
* Check user != nil before checking values
* Handle autoAdmin
2020-01-19 18:49:55 -05:00
guillep2k
bec99507a4
Add missing columns to repository and user ( #9861 )
2020-01-19 22:27:44 +00:00
zeripath
948dec3d75
Allow hyphen in language name ( #9873 )
2020-01-19 21:36:00 +00:00
zeripath
fb8aea4eeb
Ensure that 2fa is checked on reset-password ( #9857 )
...
* Ensure that 2fa is checked on reset-password
* Apply suggestions from code review
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-19 20:17:36 +00:00
zeripath
92d6bca41e
Ensure that 2fa is checked on reset-password ( #9857 )
...
* Ensure that 2fa is checked on reset-password
* Apply suggestions from code review
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-19 20:17:12 +00:00
zeripath
1d7b7504d0
Make CertFile and KeyFile relative to CustomPath ( #9868 )
...
* Make CertFile and KeyFile relative to CustomPath
The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath.
Fix #4196
* Improve error reporting when reading certificates
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
2020-01-19 19:07:44 +00:00
GiteaBot
1803b38efc
[skip ci] Updated translations via Crowdin
2020-01-19 09:19:29 +00:00
techknowlogick
c437e8e930
run translations pipeline on arm server ( #9865 )
2020-01-19 10:17:57 +01:00
GiteaBot
20f6acc585
[skip ci] Updated translations via Crowdin
2020-01-19 06:44:47 +00:00
Lunny Xiao
f540d0ac87
Fix issues/pulls dependencies problems ( #9842 )
...
* Fix issues/pulls dependencies problems
* fix swagger and api param name
* fix js
2020-01-19 14:43:38 +08:00
David Svantesson
0641965860
Change won't sign information text to black. ( #9843 )
...
* Change won't sign information text to black.
* icon and text same color
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-18 12:30:35 +01:00
David Svantesson
aac8250b47
Explicitly refer to PR in squash-merge commit message in case of external tracker ( #9844 )
...
* Explicitly refer to PR in squash-merge commit message in case of external tracker
* documentation
Co-authored-by: zeripath <art27@cantab.net>
2020-01-18 12:40:43 +08:00
6543
fec1095f17
[Docs] add usefull info to REQUIRE_SIGNIN_VIEW ( #9848 )
2020-01-17 18:34:55 -05:00
6543
6140325e98
Changelog 1.10.3 ( #9832 ) ( #9850 )
2020-01-17 17:03:07 -05:00
GiteaBot
5a02ed5894
[skip ci] Updated translations via Crowdin
2020-01-17 18:35:33 +00:00
Lunny Xiao
b641c68fee
Improve notification pager ( #9821 )
...
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-17 19:31:26 +01:00
6543
2f3a602b3c
fix ( #9836 )
2020-01-17 22:37:46 +08:00
Lunny Xiao
737ea6d83c
Fix download file wrong content-type ( #9825 )
...
* Fix download file wrong content-type
* change the error text to be more precise
* fix test
2020-01-17 20:16:05 +08:00
GiteaBot
7c0570d214
[skip ci] Updated translations via Crowdin
2020-01-17 10:24:56 +00:00
Lunny Xiao
088759f180
Fix wrong identify poster on a migrated pull request when submi… ( #9827 )
2020-01-17 11:23:46 +01:00
David Svantesson
3c07d03c03
Add setting to set default and global disabled repository units. ( #8788 )
...
* Add possibility to global disable repo units.
* Add Default Repo Unit app.ini setting.
* Hide units
* Hide disabled repo units
* Minor fixes
* Indicate disabled units in team settings.
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2020-01-17 09:34:37 +02:00
6543
36943e56d6
Add "Update Branch" button to Pull Requests ( #9784 )
...
* add Divergence
* add Update Button
* first working version
* re-use code
* split raw merge commands and db-change functions (notify, cache, ...)
* use rawMerge (remove redundant code)
* own function to get Diverging of PRs
* use FlashError
* correct Error Msg
* hook is triggerd ... so remove comment
* add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/
* move GetPerm to IsUserAllowedToUpdate
* add Flash Success MSG
* imprufe code
- remove useless js chage
* fix-lint
* TEST: add PullRequest ID:5
Repo: user2/repo1
Base: branch1
Head: pr-to-update
* correct comments
* make PR5 outdated
* fix Tests
* WIP: add pull update test
* update revs
* update locales
* working TEST
* update UI
* misspell
* change style
* add 1s delay so rev exist
* move row up (before merge row)
* fix lint nit
* UI remove divider
* Update style
* nits
* do it right
* introduce IsSameRepo
* remove useless check
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-17 08:03:40 +02:00
Lunny Xiao
9f40bb020e
fix dump non-exist log directory ( #9818 )
2020-01-16 21:56:51 -05:00
silverwind
cc2916dc5a
remove promise-polyfill ( #9812 )
...
promises are polyfilled by babel, it's no longer needed.
2020-01-16 22:52:07 +00:00
David Svantesson
18e0447b3f
Fix admin handling at merge of PR ( #9749 )
...
* Admin shall be able to bypass merge checks.
* Repository admin should not bypass if merge whitelist is set.
* Add code comment about checks that PR are ready
* notAllOverrideableChecksOk->notAllOverridableChecksOk
* Fix merge, require signed currently not overridable.
* fix
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-16 23:01:22 +02:00
Lunny Xiao
d3468ed79f
Fix compare ( #9808 )
...
Co-authored-by: techknowlogick <matti@mdranta.net>
2020-01-16 21:59:07 +02:00
Antoine GIRARD
8dd5ab2a14
ci: simplify tag/release by always running coverage ( #9774 )
...
* ci: simplify tag/release by always running coverage
* use mod and vendor for unit test coverage
* remove not needed lfs for unit test
2020-01-16 19:21:35 +00:00
zeripath
c76c70a16c
Move mailer to use a queue ( #9789 )
...
* Move mailer to use a queue
* Make sectionMap map[string]bool
* Ensure that Message is json encodable
2020-01-16 18:55:36 +01:00
6543
06cd3e03a2
[refactor] notify remove unused praram ( #9804 )
2020-01-16 17:24:20 +01:00
Antoine GIRARD
11885daaa0
tests: configure github remaining limit + read token ( #9800 )
...
* ci: configure remaining github limmit
* prepend with github since package is common to all migrations
* add RefreshRate
* Update github.go
* add missing space
* go fmt
* Read env variable GITHUB_READ_TOKEN for token
* Update .drone.yml
2020-01-16 16:15:44 +01:00
GiteaBot
fdb32ab0f8
[skip ci] Updated translations via Crowdin
2020-01-16 14:22:28 +00:00
Lunny Xiao
dbd89acf98
Remove unnecessary permissions load ( #9796 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
2020-01-16 15:18:30 +01:00
Moritz
f740943df4
Fix markdown anchor links ( #9673 )
...
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-01-16 12:23:48 +01:00
Damien Cassou
c6a32ddb47
Update go-org to 0.1.9 ( #9782 )
...
* Update go-org to 0.1.9
What I did to generate this commit:
$ go get github.com/niklasfasching/go-org
* make vendor
2020-01-16 09:27:41 +01:00
6543
3ae5f8ef11
[Docs] Update Feature 'Reject unsigned commits' ( #9793 )
...
* update docs
* add link to feature
2020-01-16 01:43:02 -05:00
John Olheiser
176e7fb5d5
Fix push-to-create ( #9772 )
...
* Fix push-to-create
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check URL path and service
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Send dummy payload on receive-pack GET
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* The space was actually a NUL byte
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use real bare repo instead of manufactured payload
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-01-16 10:40:13 +08:00
silverwind
8716752d22
update supported browsers and add a few more ( #9734 )
...
Now includes Firefox ESR, Opera and a few more browser with usages
between 0.5% and 1%. defaults resolves to > 0.5%, last 2 versions, Firefox ESR, not dead.
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-16 01:28:03 +01:00
6543
665d7e91a8
Fix signing info on PR view if not signed in ( #9788 )
2020-01-15 22:55:25 +00:00
zeripath
e7923c4bc0
Fix missing unlock in uniquequeue ( #9790 )
2020-01-15 23:58:33 +02:00
Lunny Xiao
9343d2fc85
Fix missing msteam webhook on organization ( #9781 )
2020-01-15 13:38:44 -05:00
David Svantesson
f162a32604
Fix #9662 ( #9767 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-15 14:18:02 +01:00
GiteaBot
3ac79b7101
[skip ci] Updated translations via Crowdin
2020-01-15 11:16:35 +00:00
Lunny Xiao
2b3e931cde
Migrate reactions when migrating repository from github ( #9599 )
...
* Migrate reactions when migrating repository from github
* fix missed sleep
* fix tests
* update reactions when external user binding
* Fix test
* fix tests
* change the copy head
* fix test
* fix migrator add/delete reaction
2020-01-15 12:14:07 +01:00
GiteaBot
4e566df1c6
[skip ci] Updated translations via Crowdin
2020-01-15 09:56:33 +00:00
Bagas Sanjaya
3f1e062d21
err_admin_name_pattern_not_allowed String Clarification ( #9731 )
...
* err_admin_name_pattern_not_allowed clarification edit
* Apply suggestion from @zeripath
Context: username that provided as admin
Co-Authored-By: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
2020-01-15 10:53:30 +01:00