Commit Graph

4993 Commits (0d48344f93c0a77f288a6edf3321b6018962ca99)

Author SHA1 Message Date
Unknwon 0d48344f93
docker: chown only for the frist time (#5422) 2018-09-15 13:57:41 -04:00
Unknwon 21ceba6cfd
Revert "docker: remove chown the git repos on startup (refs #4996). (#5390)"
This reverts commit 068e6ce2c9.
2018-09-15 13:46:14 -04:00
Unknwon f8302c5470
ci: fix go vet and add Go 1.11.x 2018-09-14 22:48:35 -04:00
Unknwon 7a7e07a57c
vendor: add dependencies of Prometheus client 2018-09-14 22:38:06 -04:00
Unknwon 520530dfcf
metrics: add initial Prometheus support (#4141) 2018-09-14 22:29:43 -04:00
Unknwon 31c18b4bc7
repo: adjust pull request setting description (#5359) 2018-09-14 20:10:54 -04:00
Unknwon 1ec365de25
repo: trigger webhook when delete branch after merged pull request (#5331) 2018-09-14 20:04:31 -04:00
Unknwon 99f3eabb1b
README: update vision
[ci skip]
2018-09-14 15:25:15 -04:00
Unknwon 32479744f6
templates/admin/monitor: fix field error
[ci skip]
2018-09-13 23:30:59 -04:00
Unknwon b68de2330d
auth: support set default login source (#5274) 2018-09-13 14:06:04 -04:00
haixunlu 68a6579852 login_source: add default authentication switch (#5338)
* Add default Authentication Switch.

* adjust the code accroding to reviews

* #1. Remove redudant logic.
#2, Fix a bug in "Edit" panel.

* Remove unused logic

* Fix local authentication files are not flushed.

* refactor according to review.
2018-09-13 13:49:07 -04:00
Jakob Lykke Andersen 798798f7ab templates: hide dashboard org creation when not allowed (#5393)
The admin -> DISABLE_REGULAR_ORG_CREATION setting
hides organization creation in the header, but not
in the dashboard.
2018-09-11 14:10:09 -04:00
leonunix 54e9442a14 docker: fix aarch64 dockerfile make docker image error (#5411) 2018-09-10 15:38:35 -04:00
Unknwon f7b9f35ce1
locale: sync from Crowdin 2018-09-10 10:41:00 -04:00
Ross Golder 068e6ce2c9 docker: remove chown the git repos on startup (refs #4996). (#5390) 2018-09-08 08:07:30 -04:00
PiPc2 5d4bb4d6f8 librejs.html: fix semantic version (#5404)
currently incompatible with librejs
2018-09-06 20:16:21 -04:00
Unknwon a05c19682e
locale: sync from Crowdin 2018-08-23 12:45:53 +08:00
Stefan Liu 5caa7436d8 gogs: remove app flags line (#5388)
No meaning for this line
2018-08-23 12:35:36 +08:00
Unknwon 512a900202
repo/editor: hide internal error detail
Prevent exposure of server path
2018-08-17 23:35:53 +08:00
Unknwon ba7b2cc1f6
vendor: update github.com/gogs/git-module 2018-08-17 23:15:26 +08:00
Unknwon ac73d43444
repo_editor: able to trigger Git hooks (#4338) 2018-08-17 23:15:20 +08:00
Unknwon 33434a40d7
vendor: update github.com/gogs/git-module 2018-08-17 20:03:00 +08:00
Unknwon 844d69143f
pkg/markup: allow match SHA1 length 7-40 (#3321) 2018-08-17 20:02:43 +08:00
Unknwon 77275a9b31
models: rename Id to ID 2018-08-16 20:26:09 +08:00
Unknwon de10d9be08
models: fix delete undesired release attachments when delete a comment (#4627)
Apparently, AfterDelete has ID=0
2018-08-16 20:17:19 +08:00
Steven Haigh 3c227af508 scripts: add NoNewPrivileges=true to systemd unit file (#5381)
Also add comment about unsupported options in different systemd versions.
2018-08-16 19:07:36 +08:00
Unknwon 4c1a479a60
models: fix delete public keys ORM syntax (#5376) 2018-08-14 22:10:44 +08:00
Michael Li cc95d251d6 docker: add new Dockerfile.docker-ce for docker-ce(>=v17.06) to build docker image (#5322)
* add new Dockerfile.docker-ce for docker-ce(>=v17.06) to  build docker image

* change default Dockerfile to support docker-ce(>=v17.06) multi-stage build
2018-08-13 20:50:25 +08:00
chromium1337 1f247cf813 routes: fix open redirect vulnerability #5364 (#5365) 2018-08-06 17:10:16 +08:00
GeekComb c9bb33afc3 repo: fix issue of fork repository no check the limit of users' repository (#5346) 2018-07-18 20:03:09 +08:00
Unknwon 97fb9d283f
locale: sync from Crowdin 2018-07-16 06:14:54 +08:00
Bogdan Khomutsky 66016b8499 scripts: apply hardening for systemd service (#5332) 2018-07-09 16:13:28 +08:00
PHANI 8bbf0293f5 webhook: add headers to support spring config server (#5325)
Spring cloud config server dependency spring cloud config monitor looks for X-Github-Event condition PropertyPathEndpoint.class -> GithubPropertyPathNotificationExtractor.class if ("push".equals(headers.getFirst("X-Github-Event"))) {...}
2018-07-09 16:12:30 +08:00
cezar97 87b229d280 templates: add 'rel=noopener noreferrer' to <a> tags (#5319)
Signed-off-by: cezar97 <cezar97@protonmail.com>
2018-07-02 19:33:14 +08:00
Unknwon 2a86b3e31d
restore: reset milestone deadline_unix and closed_date_unix (#5264) 2018-06-27 22:08:24 +08:00
Steve Chung 436dd6c0a4 routes/repo/setting: require autosize when repo/settings/options is rendered (#5315) 2018-06-26 21:40:09 +08:00
Unknwon f6bdefe3f3
public: minor fix for PR #5276 2018-06-26 21:16:29 +08:00
ususdei cd71077c6a pull request: able to add custom commit description (#5276)
* pull request merges now allow for custom commit messages

* allow i18n on commit_message label

* place label above textarea for commit message

* rename commit message for pull requests into commit description and pass to git separately
2018-06-26 20:49:46 +08:00
Unknwon 029b33c650
restore: ignore created_unix for milestone table (#5264) 2018-06-25 20:33:21 +08:00
Unknwon f4f4edf276
vendor: update github.com/gogs/git-module 2018-06-25 19:58:40 +08:00
Unknwon 992ea5802a
locale: sync from Crowdin 2018-06-18 12:21:51 +08:00
Unknwon 376a629c9f
repo: add changes to repository avatar feature (#5221) 2018-06-17 22:18:41 +08:00
Sergey Dryabzhinsky 303fa37b60 repo: support avatars (#5221)
* First code for repository avatars

* Last code for repository avatars

- add new option for repo avatars location on filesystem
- add route catch in web
- add new fields to repo model
- add migration
- update settings handlers
- update repo header template

* Update locale messages

* Add repo avatars to home page

* Add repo avatars to organization right panel

* Show repo avatars in repo list

* Remove AvatarEamil field, remove Gravatar support, use generic locale messages

* Fix migration

* Fix seed and not used tool

* Revert public css changes, add them to less files

* Latest lessc (2.6.0) don't put result into file but output to stdout

So redirect output to file

* Simplify things:

- migration don't needed, and table changes too
- just upload file to repo avatar storage
- or generate random image

* Fix repo image seed - name not unique

* Get rid of not needed model fields

* Class value is enough, remove height attribute

* Don't generate random avatar for repository

- use html and semantic ui icons if no avatar found

* Update styles and templates for repo

- use repo icon as default avatar
- use globe icon for public repos
- add micro style for repo avatars at dashboard

* Remvoe redundant empty line

* Fix nl2br filter - must return string

* Fix css style for micro-repo-avatar in dashboard list

* Remove `|len`, works fine w/o it.

* Update after review 2:

- use static route for repository avatar
- format images settings block in settings

* Update after review 2:

- no random avatar for repo

* Update after review 2:

- no random avatar for repo 2
- update imports
- update UploadAvatar* functions

* Update after review 2:

- update templates

* Fix trace call

* Remove unused immport since we use static route for repo avatars.
2018-06-17 20:21:52 +08:00
Unknwon ef02414d7e
pkg/setting: ignore config inline comment by default 2018-06-17 09:10:18 +08:00
Unknwon bcf83ea792
vendor: update gopkg.in/ini.v1 2018-06-17 09:08:21 +08:00
Unknwon 86a27cf16d
modes/repo: syntax fix for PR #5234 2018-06-16 16:48:47 +08:00
James 08ae0dd74b repo: show in search if any part is public (#5234)
if repo is private but wiki and/or issue are public show repo in search
2018-06-16 16:34:55 +08:00
Unknwon 93f3a7f96a
vendor: update github.com/go-sql-driver/mysql 2018-06-15 13:33:08 +08:00
Unknwon 7856b1202d
*: fix wrong format type 2018-06-13 22:26:56 +08:00
Unknwon e5ddbcab7d
routes/repo/http: fix wrong format type 2018-06-13 21:58:46 +08:00