]>
source.dussan.org Git - gitea.git/log
guillep2k [Mon, 18 Nov 2019 23:43:03 +0000 (20:43 -0300)]
Avoid re-issuing redundant cross-references. (#8734)
* Avoid re-issuing redundant cross-references.
* Remove unused func; fix lint
* Simplify code as suggested by @laftriks
* Update test
Antoine GIRARD [Mon, 18 Nov 2019 20:03:25 +0000 (21:03 +0100)]
fix: add search to reserved usernames (#9063)
* fix: add search to reserved usernames
* Update integrations/user_test.go
Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
GiteaBot [Mon, 18 Nov 2019 17:06:44 +0000 (17:06 +0000)]
[skip ci] Updated translations via Crowdin
guillep2k [Mon, 18 Nov 2019 17:03:49 +0000 (14:03 -0300)]
Allow authors to use act keywords in PR content (#9059)
guillep2k [Mon, 18 Nov 2019 13:13:07 +0000 (10:13 -0300)]
Close/reopen issues by keywords in titles and comments (#8866)
* Add close/reopen from comment functionality
* Fix comment
* Rewrite closing/reopening template
* Check xref permissions, move action to services/pull
* Fix RefIsPull field
* Add xref tests
* Fix xref unique filter
* Only highlight keywords for actionable xrefs
* Fix xref neuter filter
* Fix check return status
* Restart CI
guillep2k [Mon, 18 Nov 2019 08:08:20 +0000 (05:08 -0300)]
Rewrite delivery of issue and comment mails (#9009)
* Mail issue subscribers, rework the function
* Simplify a little more
* Fix unused variable
* Refactor mail delivery to avoid heavy load on server
* Avoid splitting into too many goroutines
* Fix comments and optimize GetMaileableUsersByIDs()
* Fix return on errors
Lunny Xiao [Mon, 18 Nov 2019 05:18:33 +0000 (13:18 +0800)]
Move modules/gzip to gitea.com/macaron/gzip (#9058)
* Move modules/gzip to gitea.com/macaron/gzip
* Fix vendor
GiteaBot [Mon, 18 Nov 2019 01:29:04 +0000 (01:29 +0000)]
[skip ci] Updated translations via Crowdin
Vedran [Mon, 18 Nov 2019 01:25:24 +0000 (02:25 +0100)]
Fix double scroll in branch dropdown (#9048)
* Fix double scroll in branch dropdown
* Revert of
425ae38aa9ea3e9a25dee235aa9176762fe4bc5b
* Changes in .less, generated new .css
* Revert unnecessary commented line
silverwind [Sun, 17 Nov 2019 21:39:06 +0000 (22:39 +0100)]
enable lazy-loading of gitgraph.js (#9036)
- moved gitgraph.js to web_src and made it importable and es6-compatible
- created new webpack chunk for gitgraph
- enabled CSS loader in webpack
- enabled async/await syntax via regenerator-runtime
- added script to ensure webpack chunks are loaded correctly
- disable terser's comment extraction to prevent .LICENCE files
gitgraph.js has many issues:
1. it is incompatible with ES6 because of strict-mode violations
1. it does not export anything
1. it's css has weird styles like for `body`
1. it is not available on npm
I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
GiteaBot [Sun, 17 Nov 2019 19:44:07 +0000 (19:44 +0000)]
[skip ci] Updated translations via Crowdin
Cherrg [Sun, 17 Nov 2019 19:42:44 +0000 (20:42 +0100)]
wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)
* Add add 'write' 'preview' buttons to wiki edit like in issues
affects #6975
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* update dark theme
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix css lint warnings - missing spaces
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* hide preview button on no fullscreen toolbar
Signed-off-by: Michael Gnehr <michael@gnehr.de>
GiteaBot [Sun, 17 Nov 2019 14:13:14 +0000 (14:13 +0000)]
[skip ci] Updated translations via Crowdin
jaqra [Sun, 17 Nov 2019 14:00:39 +0000 (17:00 +0300)]
Add first issue comment hashtag (#9052)
GiteaBot [Sun, 17 Nov 2019 06:31:35 +0000 (06:31 +0000)]
[skip ci] Updated translations via Crowdin
David Svantesson [Sun, 17 Nov 2019 06:30:01 +0000 (07:30 +0100)]
Handle setting default branch via API (#9030)
David Svantesson [Sat, 16 Nov 2019 19:39:18 +0000 (20:39 +0100)]
Update branch API endpoint to show effective branch protection. (#9031)
* Add API endpoint for displaying effective branch protection.
* Add status checks.
Lars Lehtonen [Sat, 16 Nov 2019 18:21:39 +0000 (10:21 -0800)]
integrations: fix dropped errors in TestCreateOrUpdateRepoFileForUpdateWithFileMove() (#9040)
integrations: fix dropped error in lfsCommitAndPushTest()
John Olheiser [Sat, 16 Nov 2019 17:36:13 +0000 (11:36 -0600)]
Only return JSON for add/remove all (#9028)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Gary Kim [Sat, 16 Nov 2019 14:15:07 +0000 (22:15 +0800)]
Check compiled files during build (#9042)
Signed-off-by: Gary Kim <gary@garykim.dev>
Vedran [Sat, 16 Nov 2019 12:03:07 +0000 (13:03 +0100)]
Button tooltip formatting under Branches (#9034)
* Fixes button tooltip formatting under Branches
* Formatting on download button for default branch
Lunny Xiao [Sat, 16 Nov 2019 08:30:06 +0000 (16:30 +0800)]
Add retry for migration http/https requests (#9019)
* Add retry for migration http/https requests
* give the more suitable name for retry configuraion items
* fix docs and lint
* Only use retryDownloader when setting > 1
Cherrg [Sat, 16 Nov 2019 02:20:07 +0000 (03:20 +0100)]
wiki - editor - enable side-by-side button (#7242)
* wiki - enable side-by-side button in editor
and add some delay so side-by-side live preview is updated
* every 10th keypress
* if keypress < 10 -> apter no input for 1 sec
affects #5436
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* decrease timeinterval user need to stop before rendering is triggered
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* removed not needed code with simpleMDE placeholder
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* run highlight.js on markdown preview
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix white border around side-by-side preview
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Lunny Xiao [Sat, 16 Nov 2019 00:47:57 +0000 (08:47 +0800)]
Move git graph from models to modules/graph (#9027)
mrsdizzie [Fri, 15 Nov 2019 21:47:04 +0000 (16:47 -0500)]
Update display of reactions to issues and comments (#9038)
Modify display of reactions to issues to remove spaces and make them
feel more apart of the reactions bar rather than separate items within.
Lunny Xiao [Fri, 15 Nov 2019 18:18:09 +0000 (02:18 +0800)]
extract some inline functions related with create comment (#8931)
guillep2k [Fri, 15 Nov 2019 15:20:47 +0000 (12:20 -0300)]
Fix permission checks for close/reopen from commit (#8875)
* Fix checks for close/reopen from commit
* Fix permission order
zeripath [Fri, 15 Nov 2019 14:09:53 +0000 (14:09 +0000)]
Ensure Written is set in GZIP ProxyResponseWriter (#9018)
Fix #9001
The GZIP ProxyReponseWriter doesn't currently respond correctly
to requests about its Written status - leading to #9001.
This PR properly reimplements these methods.
guillep2k [Fri, 15 Nov 2019 12:59:21 +0000 (09:59 -0300)]
Add review comments to mail notifications (#8996)
Vedran [Fri, 15 Nov 2019 11:38:54 +0000 (12:38 +0100)]
Fix broken link to branch from issue list (#9003)
* Fix broken link to branch from issue list
* Update templates/repo/issue/list.tmpl
Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* apply @mrsdizzie's review
Lunny Xiao [Fri, 15 Nov 2019 10:53:20 +0000 (18:53 +0800)]
fix wrong system notice when repository is empty (#9010)
Lunny Xiao [Fri, 15 Nov 2019 08:06:11 +0000 (16:06 +0800)]
Move transfer repository and rename repository on a service package and start action notification (#8573)
* move transfer repository and rename repository on a service package and start action notification
* remove unused codes
* fix lint
* fix bugs
* fix test
* fix test
* fix test
* fix lint
* update go mod and sum
Konctantin [Fri, 15 Nov 2019 06:56:06 +0000 (09:56 +0300)]
Githook highlighter (#8932)
* Add code highlighter to GitHook edit
Signed-off-by: Konctantin <gawrilyako@gmail.com>
* Fix indentation
Signed-off-by: Konctantin <gawrilyako@gmail.com>
* Resolve merge conflict
Signed-off-by: gawrilyako@gmail.com <Konctantin>
* Resolve merge conflict
Signed-off-by: gawrilyako@gmail.com <Konctantin>
* Fix pre-build drone event
Signed-off-by: Konctantin <gawrilyako@gmail.com>
Lars Lehtonen [Fri, 15 Nov 2019 04:54:23 +0000 (20:54 -0800)]
services/mirror: fix dropped test errors (#9007)
Benno [Fri, 15 Nov 2019 02:52:59 +0000 (10:52 +0800)]
Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)
* update #8659 fold/unfold code diffs
* add fold button style
* update #8659 implement expand up/down codes (blob excerpt)
* fix golint errors
* fix expand direction
* remove debug message
* update css style for blob exceprt
* fix typo in comment
* update style sheet with less
* update expect diff (add SectionInfo)
* update #8942 accept suggested change (fix typo)
* close reader and check file type before get tail section
* adjust button position and check file type before insert fold button
* move index js to web_src
* merge index.js with master
* generate index.js
* update js coding style
Lunny Xiao [Fri, 15 Nov 2019 01:27:50 +0000 (09:27 +0800)]
Pack web_src/js/draw.js to public/js/index.js (#8975)
* pack web_src/js/draw.js to public/js/index.js
* fix eslint
John Olheiser [Thu, 14 Nov 2019 23:52:18 +0000 (17:52 -0600)]
Update dashboard context for PR reviews (#8995)
* Update dashboard context for PR reviews
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Only append head action if it has content or is approval/rejection
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update options/locale/locale_en-US.ini
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
zeripath [Thu, 14 Nov 2019 22:39:48 +0000 (22:39 +0000)]
Enforce Gitea environment for pushes (#8982)
* Enforce Gitea environment for pushes
* Update custom/conf/app.ini.sample
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
silverwind [Thu, 14 Nov 2019 21:39:51 +0000 (22:39 +0100)]
modernize js and use babel (#8973)
* modernize js and use babel
- add babel toolchain to transform modern JS to ES5
- extend eslint config for modern rules
- fixes linting issues via `eslint --fix` and manual fixes
* run 'make css' to satisfy CI
* code style tweaks and set js indendation to 2 in .editorconfig
* regenerate js
John Olheiser [Thu, 14 Nov 2019 20:58:01 +0000 (14:58 -0600)]
New review approvals shouldn't require a message (#8991)
* New approvals don't require content
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix edge-bug
Signed-off-by: jolheiser <john.olheiser@gmail.com>
zeripath [Thu, 14 Nov 2019 20:06:02 +0000 (20:06 +0000)]
Shadow password correctly for session config (#8984)
Fix #8718
This PR shadows passwords in session config correctly by detecting
the VirtualProvider, unmarshalling the original config and then
shadowing config within that.
6543 [Thu, 14 Nov 2019 19:10:23 +0000 (20:10 +0100)]
Drop Admin attribute based on LDAP when login (continue #1743) (#8849)
* Update User information in Gitea based on LDAP when login
* Update Admin Flag only if exist in settings
* Fix affectation
* Update models/login_source.go
Co-Authored-By: JustKiddingCode <JustKiddingCode@users.noreply.github.com>
* Better ident
* Apply suggestions from code review
Update user information
Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Make fmt
* add err handling
* if user exist but login is Prohibit return return nil, and Prohibit err
* keep login speed
* User sync is implemented at #1478 - so only make sure that admin acces is drpoed if changed
* handle error and still use async task
* no async
* only update admin if Sync is enabled
* update two comments
* add lafriks suggestions
Co-Authored-By: Lauris BH <lauris@nix.lv>
* if adminFilter is set - use it
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/login_source.go
well - I should look more detaild at suggestions :D
Co-Authored-By: Lauris BH <lauris@nix.lv>
* make it work again
* set is_admin value to user
* look nicer
Lunny Xiao [Thu, 14 Nov 2019 17:58:32 +0000 (01:58 +0800)]
fix bug when pack js (#8992)
zeripath [Thu, 14 Nov 2019 16:58:34 +0000 (16:58 +0000)]
Add ALLOW_ONLY_EXTERNAL_REGISTRATION to config cheat sheet (#8986)
ALLOW_ONLY_EXTERNAL_REGISTRATION was missed off the cheat sheet. This PR adds it.
Fix #8180
John Olheiser [Thu, 14 Nov 2019 15:34:30 +0000 (09:34 -0600)]
Changelog for 1.10.0 (#8978) (#8987)
* Changelog for 1.10.0 (#8978)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update security
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6543 [Thu, 14 Nov 2019 13:44:46 +0000 (14:44 +0100)]
[Feature] Add Gitea Emoji (#8950)
* add gitea emoji
* alphabetic order
* Update emojify.js to 1.1.0
* mv to custom
* add gitea emoji
* minify
GiteaBot [Thu, 14 Nov 2019 08:01:32 +0000 (08:01 +0000)]
[skip ci] Updated translations via Crowdin
Wars [Thu, 14 Nov 2019 07:57:29 +0000 (15:57 +0800)]
fix(docs): Fixed creating Windows service commands (#8979)
escaping " to \"
techknowlogick [Thu, 14 Nov 2019 06:37:12 +0000 (01:37 -0500)]
docs reference latest stable version (1.10.0)
Lunny Xiao [Thu, 14 Nov 2019 02:57:36 +0000 (10:57 +0800)]
Refactor pull request review (#8954)
* refactor submit review
* remove unnecessary code
* remove unused comment
* fix lint
* remove duplicated actions
* remove duplicated actions
* fix typo
* fix comment content
John Olheiser [Wed, 13 Nov 2019 22:11:52 +0000 (16:11 -0600)]
Backport the backport of 1.9.6 (#8970)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
zeripath [Wed, 13 Nov 2019 21:06:35 +0000 (21:06 +0000)]
Fix intermittent GPG Git test failure (#8968)
John Olheiser [Wed, 13 Nov 2019 20:22:09 +0000 (14:22 -0600)]
Add CDNJS to script-src CSP (#8966)
guillep2k [Wed, 13 Nov 2019 18:36:04 +0000 (15:36 -0300)]
Don't send notification on pending reviews (#8943)
John Olheiser [Wed, 13 Nov 2019 18:03:18 +0000 (12:03 -0600)]
Implement documentation search (#8937)
* Implement documentation search
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Lunny Xiao [Wed, 13 Nov 2019 14:52:13 +0000 (22:52 +0800)]
Move index.js to web_src and use webpack to pack them (#8598)
* Move index.js to web_src and use webpack
* Fix initHeatMap
* update eslint and move webpack to devDependencies
* update index.js
* add eslint env node
GiteaBot [Wed, 13 Nov 2019 13:16:43 +0000 (13:16 +0000)]
[skip ci] Updated translations via Crowdin
Florian Hübner [Wed, 13 Nov 2019 12:46:46 +0000 (13:46 +0100)]
add /etc/timezone and /etc/localtime volumes (#8911)
Passing these volumes to the container enable gitea to use hosts localtime and timezone.
This is a mandatory change when using the "Setup fail2ban" Guide, but it is not described in the documentation.
GiteaBot [Wed, 13 Nov 2019 07:22:32 +0000 (07:22 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Wed, 13 Nov 2019 07:01:19 +0000 (07:01 +0000)]
Add Close() method to gogitRepository (#8901)
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
guillep2k [Wed, 13 Nov 2019 02:27:11 +0000 (23:27 -0300)]
Convert EOL to UNIX-style to render MD properly (#8925)
* Convert EOL to UNIX-style to render MD properly
* Update modules/markup/markdown/markdown.go
Co-Authored-By: zeripath <art27@cantab.net>
* Fix lint optimization
* Check for empty content before conversion
* Update modules/util/util.go
Co-Authored-By: zeripath <art27@cantab.net>
* Improved checks and tests
* Add paragraph render test
* Improve speed even more, improve tests
* Small improvement by @gary-kim
* Fix test for DOS
* More improvements
* Restart CI
Antoine GIRARD [Wed, 13 Nov 2019 00:45:19 +0000 (01:45 +0100)]
Show repository size in repo home page and settings (#8940)
* feat: display repository size on repo home and settings
* refactor: move repo size up in setting page
zeripath [Tue, 12 Nov 2019 23:49:40 +0000 (23:49 +0000)]
Fix Notify Create Ref Error on tag creation (#8936)
* Fix Notify Create Ref Error on tag creation
* Just use the provided full ref instead of BranchCommit
GiteaBot [Tue, 12 Nov 2019 22:51:56 +0000 (22:51 +0000)]
[skip ci] Updated translations via Crowdin
mrsdizzie [Tue, 12 Nov 2019 22:48:21 +0000 (17:48 -0500)]
Update Github Migration Tests (#8938)
Update all Github migration tests to use a new repo created just for
these tests that won't accidentially be modified by regular users
interacting with issues.
Fixes #8895
guillep2k [Tue, 12 Nov 2019 15:47:29 +0000 (12:47 -0300)]
Fix spelling as suggested by @rmbleeker (#8934)
Lunny Xiao [Tue, 12 Nov 2019 09:22:16 +0000 (17:22 +0800)]
Move less from public/ to web_src/ so that it will not be packe… (#8908)
GiteaBot [Tue, 12 Nov 2019 08:36:01 +0000 (08:36 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Tue, 12 Nov 2019 08:33:34 +0000 (16:33 +0800)]
Improve notification (#8835)
* Improve notifications
* batch load user
* Update notification only when read
* Fix reorder
* fix lint
* fix test
* fix lint
* make function meaningful
* fix comment
GiteaBot [Mon, 11 Nov 2019 17:09:24 +0000 (17:09 +0000)]
[skip ci] Updated translations via Crowdin
Jookia [Mon, 11 Nov 2019 17:06:57 +0000 (17:06 +0000)]
js: Revert change to click behaviour in forceSelection (#8921)
Calling .click() in forceSelection() in blur() causes a focus loop,
this needs a proper fix later but for now just revert the change.
GiteaBot [Mon, 11 Nov 2019 15:19:00 +0000 (15:19 +0000)]
[skip ci] Updated translations via Crowdin
John Olheiser [Mon, 11 Nov 2019 15:15:29 +0000 (09:15 -0600)]
Template Repositories (#8768)
* Start work on templates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Continue work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix IsTemplate vs IsGenerated
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tabs vs spaces
* Tabs vs Spaces
* Add templates to API & start adding tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix integration tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove unused User
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move template tests to existing repos
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Minor re-check updates and cleanup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test cleanup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix optionalbool
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test fixes and icon change
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add new user and repo for tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests (finally)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update meta repo with env variables
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move generation to create page
Combine with repo create template
Modify API search to prioritize owner for repo
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests and coverage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix swagger and JS lint
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix API searching for own private repos
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change wording
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix repo search test. User had a private repo that didn't show up
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Another search test fix
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Clarify git content
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Feedback updates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add topics WIP
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Finish adding topics
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update locale
Signed-off-by: jolheiser <john.olheiser@gmail.com>
zeripath [Mon, 11 Nov 2019 11:46:28 +0000 (11:46 +0000)]
Migrate temp_repo.go to use git.NewCommand (#8918)
This PR migrates temp_repo.go to use git.NewCommand instead creating processes by itself - this fixes the problem underlying PR #8905.
There are other places that run git outside of the controlled locale defined in #8548 but temp_repo.go is the only cause of failure of local testing in cases where English is not the default - implying that error messages from those other commands are not interpreted.
Replaces #8905
David Svantesson [Mon, 11 Nov 2019 07:37:28 +0000 (08:37 +0100)]
Only view branch or tag if it match refType requested. (#8899)
* only view branch or tag if it match refName.
* remove pointer in method
Lunny Xiao [Mon, 11 Nov 2019 03:39:41 +0000 (11:39 +0800)]
Move notifywatchers from models to notification (#8907)
Florian Hübner [Mon, 11 Nov 2019 01:33:28 +0000 (02:33 +0100)]
Fix typo in doc (#8914)
Fix typo in doc fail2ban-setup.md
zeripath [Sun, 10 Nov 2019 21:33:47 +0000 (21:33 +0000)]
Stop using git count-objects and use raw directory size for repository (#8848)
* Migrate from git count-objects to a raw directory size
* As per @guillep2k ignore unusual files
Anthony Vanelverdinghe [Sun, 10 Nov 2019 16:49:39 +0000 (17:49 +0100)]
Rephrase comment about RuntimeDirectory option (#8912)
guillep2k [Sun, 10 Nov 2019 09:22:19 +0000 (06:22 -0300)]
Auto-subscribe user to repository when they commit/tag to it (#7657)
* Add support for AUTO_WATCH_ON_CHANGES and AUTO_WATCH_ON_CLONE
* Update models/repo_watch.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Round up changes suggested by lafriks
* Added changes suggested from automated tests
* Updated deleteUser to take RepoWatchModeDont into account, corrected inverted DefaultWatchOnClone and DefaultWatchOnChanges behaviour, updated and added tests.
* Reinsert import "github.com/Unknwon/com" on http.go
* Add migration for new column `watch`.`mode`
* Remove serv code
* Remove WATCH_ON_CLONE; use hooks, add integrations
* Renamed watch_test.go to repo_watch_test.go
* Correct fmt
* Add missing EOL
* Correct name of test function
* Reword cheat and ini descriptions
* Add update to migration to ensure column value
* Clarify comment
Co-Authored-By: zeripath <art27@cantab.net>
* Simplify if condition
zeripath [Sun, 10 Nov 2019 08:42:51 +0000 (08:42 +0000)]
Adjust error reporting from merge failures and use LC_ALL=C for git (#8548)
There are two major components to this PR:
* This PR handles merge and rebase failures from merging a little more nicely with Flash errors rather a 500.
* All git commands are run in the LC_ALL="C" environment to ensure that error messages are in English. This DefaultLocale is defined in a way that if necessary (due to platform weirdness) it can be overridden at build time using LDFLAGS="-X "code.gitea.io/gitea/modules/git.DefaultLocale=C"" with C changed for the locale as necessary.
6543 [Sun, 10 Nov 2019 08:07:21 +0000 (09:07 +0100)]
Fix API Bug (fail on empty assignees) (#8873)
* keep sure if assigneeIDs == nil -> do nothing
* fix #8872
* Revert "keep sure if assigneeIDs == nil -> do nothing"
-> go handle it itself preaty well
This reverts commit
e72d94129c4666d5151f6131cb2f8c1de127d9d0 .
* clarity comparson
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* simplify
* Update models/issue_assignees.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update issue_assignees.go
* simplify more
* add --if oneAssignee != ""-- again
* Update models/issue_assignees.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* CI.restart()
* Update issue_assignees.go
* add Test for GetUserIDsByNames
* add Test for MakeIDsFromAPIAssigneesToAdd
* fix test
Lunny Xiao [Sun, 10 Nov 2019 04:41:51 +0000 (12:41 +0800)]
Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert (#8892)
* Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert
* fix fmt
zeripath [Sat, 9 Nov 2019 23:21:53 +0000 (23:21 +0000)]
Fix issue with user.fullname (#8902)
guillep2k [Sat, 9 Nov 2019 22:12:05 +0000 (19:12 -0300)]
Enable punctuations ending mentions (#8889)
* Enable punctuations ending mentions
* Improve tests
mrsdizzie [Sat, 9 Nov 2019 20:13:35 +0000 (15:13 -0500)]
Update Github migration test (#8893)
* Update Github migration test
Earlier today #716 was reopened which updated the modification time for
an old milestone (1.6.0) that we use in testing with the assumption that
it is old and won't change. This breaks all builds now, so remove this
test since we have others that test the same code and this milestone
will likely be updated again as that issue changes etc...
* ci
guillep2k [Sat, 9 Nov 2019 13:09:01 +0000 (10:09 -0300)]
Leave non-dated issues for last (#8871)
GiteaBot [Sat, 9 Nov 2019 09:45:09 +0000 (09:45 +0000)]
[skip ci] Updated translations via Crowdin
guillep2k [Sat, 9 Nov 2019 09:42:34 +0000 (06:42 -0300)]
Fix require external registration password (#8885)
* Fix require external registration password
* Fix ctx on error condition by @jolheiser
GiteaBot [Sat, 9 Nov 2019 03:44:04 +0000 (03:44 +0000)]
[skip ci] Updated translations via Crowdin
guillep2k [Sat, 9 Nov 2019 03:40:37 +0000 (00:40 -0300)]
Fix password complexity check on registration (#8887)
* Fix registration password complexity
* Fix integration to use a complex password ;)
David Svantesson [Sat, 9 Nov 2019 00:39:37 +0000 (01:39 +0100)]
Allow to add and remove all repositories to/from team. (#8867)
* Allow to add and remove all repositories to team.
* Change style, buttons on same row.
* Apply suggestions from code review
Grammar
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Move set num repos to lower function.
* Make general language sentences
MysticBoy [Fri, 8 Nov 2019 22:32:30 +0000 (06:32 +0800)]
Create third-party-tools.zh-cn.md (#6303)
* Create third-party-tools.zh-cn.md
* Update third-party-tools.zh-cn.md
* Update third-party-tools.zh-cn.md
Lunny Xiao [Fri, 8 Nov 2019 22:21:00 +0000 (06:21 +0800)]
Fix bug when migrate from API (#8631)
* fix bug when migrate from API
* fix test
* fix test
* improve
* fix error message
Lunny Xiao [Fri, 8 Nov 2019 21:25:53 +0000 (05:25 +0800)]
Webhook support custom proxy (#8760)
* Webhook support custom proxy
* Add glob support on webhook proxy host rules
* fix app.ini.sample
* improve code and app.ini.sample
* update cheetsheet about added webhook options
Lunny Xiao [Fri, 8 Nov 2019 20:54:50 +0000 (04:54 +0800)]
Move some actions to notification/action (#8779)
* Move some actions to notification/action
* Fix test
* fix test
John Olheiser [Fri, 8 Nov 2019 19:44:18 +0000 (13:44 -0600)]
Add password reset to FAQ (#8883)
* Add password reset to FAQ
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add links to email setup docs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add en-us to email setup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update docs/content/doc/help/faq.en-us.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Manually merge changes from @guillep2k and add small changes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Jookia [Fri, 8 Nov 2019 17:33:21 +0000 (17:33 +0000)]
a11y: Improve accessibility of dropdown menus (#8638)
* js: Import Semantic-UI's dropdown.js (version 2.3.1)
* js: Set tabindex=-1 on dropdown items
Setting tabindex=-1 on focusable elements within dropdown menus allows
the user to treat dropdown menus as a single focusable item with its own
internal navigation using arrow keys.
* js: Don't use jQuery to click menu items
Menu items are often <a> elements, which jQuery refuses to trigger click
events on. Instead it just bubbles up to the menu.
Using HTMLElement's click method fixes this and makes menu items
clickable from the keyboard using dropdown menus.
* js: Set correct ARIA 1.1 roles on dropdown menus
Setting role= makes assistive technology aware there is a widget here.
In this case, Orca will now exit browse mode and allow us to capture
keydown events when focused on a dropdown menu. It will also inform the
user that there's a menu focused.
Since dropdowns can be used in multiple elements each with different
ARIA roles, a guessRole method is used to find the correct role.
All roles I consider possible are listed, but only menu is implemented.
* js: Set aria-expanded when dropdown menus show and hide
This is deliberately done before the transition finishes so that screen
readers get immediate feedback.
* js: Set aria-label or aria-labelledby on dropdown menus
This makes dropdown menu buttons screen reader accessible.
aria-labelledby refers to an element using an ID, so the chosen labels
are now assigned a unique ID- This ID is not stable, do not refer to it
with user scripts.
* js: Set aria-activedescendant on dropdown menus
As the menus grab focus and navigate by tracking a 'selected' div class,
assistive technology has no idea that what the current selection is.
Assign IDs to each menu item and set aria-activedescendant to the ID of
the currently selected menu item.
When the menu is unfocused, remove aria-activedescendant- This isn't
neccessary but in my experience it triggers Orca to remind the user of
their current selection when re-focusing the menu.
* Makefile: Make eslint ignore semantic.dropdown.js
This file is taken from Semantic UI which isn't linted upstream.
Ignore it as we won't fix these issues.
* js: Add version note to semantic.dropdown.js
* Add Md5 AppVer to templates/base/footer.tmpl
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add Md5 AppVer to templates/pwa/serviceworker_js.tmpl
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* semantic.dropdown.js -> semantic.dropdown.custom.js
* Use eslintignore
* remove bogus submodule
mrsdizzie [Fri, 8 Nov 2019 07:01:24 +0000 (02:01 -0500)]
Fix edit content button on migrated issue content (#8877)
Typo on a closing span tag caused edit button not to work properly on
the original issue content for a migrated issue.
Fixes #8876
mrsdizzie [Thu, 7 Nov 2019 20:12:23 +0000 (15:12 -0500)]
Show due date in dashboard issues list (#8860)
* Show due date in dashboard issues list
Include due date when vieiwiing all issues on dashboard (matching what
we show for repo issue lists).
Fixes #8859
* Put in same order as repo issue list
* Add suggested changes and also update repo issue list to match