Skip to content

Commit 50e0ae1

Browse files
committed
fix merge conflicts
2 parents d2577fc + 9681c83 commit 50e0ae1

File tree

984 files changed

+191749
-37791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

984 files changed

+191749
-37791
lines changed

.drone.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pipeline:
5656
event: [ push, tag, pull_request ]
5757

5858
build-without-gcc:
59-
image: golang:1.11
59+
image: golang:1.9
6060
pull: true
6161
commands:
6262
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
@@ -126,6 +126,7 @@ pipeline:
126126
commands:
127127
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
128128
- apt-get install -y git-lfs
129+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.sqlite.test)' | sh)) &
129130
- make test-sqlite
130131
when:
131132
event: [ push, tag, pull_request ]
@@ -155,6 +156,7 @@ pipeline:
155156
commands:
156157
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
157158
- apt-get install -y git-lfs
159+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
158160
- make test-mysql
159161
when:
160162
event: [ tag ]
@@ -169,6 +171,7 @@ pipeline:
169171
commands:
170172
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
171173
- apt-get install -y git-lfs
174+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
172175
- make test-pgsql
173176
when:
174177
event: [ push, tag, pull_request ]
@@ -259,6 +262,7 @@ pipeline:
259262
pull: true
260263
secrets: [ aws_access_key_id, aws_secret_access_key ]
261264
bucket: releases
265+
acl: public-read
262266
endpoint: https://storage.gitea.io
263267
path_style: true
264268
strip_prefix: dist/release/
@@ -272,6 +276,7 @@ pipeline:
272276
pull: true
273277
secrets: [ aws_access_key_id, aws_secret_access_key ]
274278
bucket: releases
279+
acl: public-read
275280
endpoint: https://storage.gitea.io
276281
path_style: true
277282
strip_prefix: dist/release/
@@ -286,6 +291,7 @@ pipeline:
286291
pull: true
287292
secrets: [ aws_access_key_id, aws_secret_access_key ]
288293
bucket: releases
294+
acl: public-read
289295
endpoint: https://storage.gitea.io
290296
path_style: true
291297
strip_prefix: dist/release/

.revive.toml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ignoreGeneratedHeader = false
2+
severity = "warning"
3+
confidence = 0.8
4+
errorCode = 1
5+
warningCode = 1
6+
7+
[rule.blank-imports]
8+
[rule.context-as-argument]
9+
[rule.context-keys-type]
10+
[rule.dot-imports]
11+
[rule.error-return]
12+
[rule.error-strings]
13+
[rule.error-naming]
14+
[rule.exported]
15+
[rule.if-return]
16+
[rule.increment-decrement]
17+
[rule.var-naming]
18+
[rule.var-declaration]
19+
[rule.package-comments]
20+
[rule.range]
21+
[rule.receiver-naming]
22+
[rule.time-naming]
23+
[rule.unexported-return]
24+
[rule.indent-error-flow]
25+
[rule.errorf]

CHANGELOG.md

+91-59
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,29 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7-
## [1.6.0-rc1](https://github.com/go-gitea/gitea/releases/tag/v1.6.0-rc1) - 2018-10-17
7+
## [1.6.1](https://github.com/go-gitea/gitea/releases/tag/v1.6.1) - 2018-12-08
8+
* BUGFIXES
9+
* Fix dependent issue searching when gitea is run in subpath (#5392) (#5400)
10+
* API: '/orgs/:org/repos': return private repos with read access (#5393)
11+
* Fix repository deletion when there is large number of issues in it (#5426) (#5434)
12+
* Word-break the WebHook url to prevent a ui-break (#5445)
13+
* Admin should be able to delete repos via the API even if they are not a member of the organization (#5443) (#5447)
14+
* Ensure that the `closed_at` is set for closed (#5450)
15+
* Fix topic name length on database (#5493) (#5495)
16+
17+
## [1.6.0](https://github.com/go-gitea/gitea/releases/tag/v1.6.0) - 2018-11-22
818
* BREAKING
919
* Respect email privacy option in user search via API (#4512)
1020
* Simply remove tidb and deps (#3993)
1121
* Swagger.v1.json template (#3572)
22+
* SECURITY
23+
* Add CSRF checking to reqToken and add reqToken to admin API routes (#5272) (#5250)
24+
* Improve URL validation for external wiki and external issues (#4710)
25+
* Make cookies HttpOnly and obey COOKIE_SECURE flag (#4706)
26+
* Don't disclose emails of all users when sending out emails (#4664)
27+
* Check that repositories can only be migrated to own user or organizations (#4366)
1228
* FEATURE
29+
* Add comment replies (#5147) (#5104)
1330
* Pull request review/approval and comment on code (#3748)
1431
* Added dependencies for issues (#2196) (#2531)
1532
* Add the ability to have built in themes in Gitea and provide dark theme arc-green (#4198)
@@ -21,7 +38,76 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
2138
* Add push webhook support for mirrored repositories (#4127)
2239
* Add csv file render support defaultly (#4105)
2340
* Add Recaptcha functionality to Gitea (#4044)
41+
* ENHANCEMENT
42+
* Fix milestones sorted wrongly (#4987)
43+
* Allow api to create tags for releases if they don't exist (#4890)
44+
* Fix #4877 to follow the OpenID Connect Audiences spec (#4878)
45+
* Enforce token on api routes [fixed critical security issue #4357] (#4840)
46+
* Update legacy branch and tag URLs in dashboard to new format (#4812)
47+
* Slack webhook channel name cannot be empty or just contain an hashtag (#4786)
48+
* Add whitespace handling to PR-comparsion (#4683)
49+
* Make reverse proxy auth optional (#4643)
50+
* MySQL TLS (#4642)
51+
* Make sure to set PR split view when creating/previewing a pull request (#4617)
52+
* Log user in after a successful sign up (#4615)
53+
* Fix typo IsPullReuqestBroken -> IsPullRequestBroken (#4578)
54+
* Allow admin toggle forcing a password change for newly created users (#4563)
55+
* Update jQuery to v1.12.4 (#4551)
56+
* Env var GITEA_PUSHER_EMAIL (#4516)
57+
* Feat(repo): support search repository by topic name (#4505)
58+
* Small improvements to dependency UI (#4503)
59+
* Make max commits in graph configurable (#4498)
60+
* Add valid for lfs oid (#4461)
61+
* Add shortcut to save wiki page (#4452)
62+
* Allow administrator to create repository for any organization (#4368)
63+
* Fix repository last updated time update when delete a user who watched the repo (#4363)
64+
* Switch plaintext scratch tokens to use hash instead (#4331)
65+
* Increase default TOTP secret size to 320 bits (#4287)
66+
* Keep preseeded database password (#4284)
67+
* Implemented hover text showing user FullName (#4261)
68+
* Add ability to delete a token (#4235)
69+
* Fix typos in i18n variable names. (#4080)
70+
* Api: repos/search: add parameters to control the sort order (#3964)
71+
* Add missing path in the Docker app.ini template (#2181)
72+
* Add file name and branch to page title (#4902)
73+
* Offline use of google fonts (#4872)
74+
* Add missing History link to directory listings v2 (#4829)
75+
* Locale for Edit and Remove due date issue (#4802)
76+
* Disable 'May Import Local Repository' when is disabled by setting (Is… (#4780)
77+
* API /admin/users/{username} missing parameter (#4775)
78+
* Display error when adding a user to a team twice (#4746)
79+
* Remove UsePrivilegeSeparation from the Docker sshd_config, see #2876 (#4722)
80+
* Focus title input when clicking helper link (#4696)
81+
* Add vendor to user reserved words and format words list according alphabet (#4685)
82+
* Add gitea/issues link to 500 page (#4654)
83+
* Hide home button when landing page is not set to home (#4651)
84+
* Remove link to GitHub issues in 404 template (#4639)
85+
* Cmd/serve: pprof cpu and memory profile dumps to disk (#4560)
86+
* Add flash message after an account has been successfully activated (#4510)
87+
* Prevent html entity escaping on delete branch (#4471)
88+
* Locale for button Edit on protected branch (#4442)
89+
* Update notification icon (#4343)
90+
* Added front-end topics validation (#4316)
91+
* Don't display buttons if there are no system notifications (#4280)
92+
* Issue due date api (#3890)
2493
* BUGFIXES
94+
* dont' send assign webhooks when creating issue (#5365)
95+
* Fix create team, update team missing units (#5188)
96+
* Fix file edit change preview functionality (#5300)
97+
* *ix bug when users have serval teams with different units on different repositories (#5307)
98+
* Fix U2F if gitea is configured in subpath (#5302)
99+
* Fix markdown image with link (#4675)
100+
* Remove maxlines option for file logger (#5282)
101+
* Fix wrong api request url for instances running in subfolders (#5261) (#5247)
102+
* Accept web-command cli flags if web-command is commited (#5245) (#5200)
103+
* Reduce join star, repo_topic, topic tables on repo search, to resolve extra columns problem on MSSQL (#5136) (#5229)
104+
* Fix data race on migrate repository (#5224) (#5230)
105+
* Add secret to all webhook's payload where it has been missing (#5208) (#5199)
106+
* Fix sqlite and MSSQL lock (#5210) (#5223) (#5214) (#5218) (#5176) (#5179)
107+
* Fix race on updatesize (#5190) (#5215)
108+
* Fix filtering issues by tags on main screen issues (#5219) (#3824)
109+
* Fix SQL quoting (#5137) (#5117)
110+
* Fix regex to support optional end line of old section in diff hunk (#5097) (#5096)
25111
* Fix release creation via API (#5076)
26112
* Remove links from topics in edit mode (#5026)
27113
* Fix missing AppSubUrl in few more templates (fixup) (#5021)
@@ -38,7 +124,6 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
38124
* Fix(topics): don't redirect to explore page. (#4938)
39125
* Fix bug forget to remove Stopwatch when remove repository (#4928)
40126
* Fix bug when repo remained bare if multiple branches pushed in single push (#4923)
41-
* Fix: Let's Encrypt configuration settings (#4911)
42127
* Fix: Crippled diff (#4726) (#4900)
43128
* Fix trimming of markup section names (#4863)
44129
* Issues api allow pulls and fix #4832 (#4852)
@@ -78,67 +163,14 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
78163
* Dep upgrade mysql lib (#4161)
79164
* Fix some issues with special chars in branch names (#3767)
80165
* Responsive design fixes (#4508)
81-
* ENHANCEMENT
82-
* Fix milestones sorted wrongly (#4987)
83-
* Allow api to create tags for releases if they don't exist (#4890)
84-
* Fix #4877 to follow the OpenID Connect Audiences spec (#4878)
85-
* Enforce token on api routes [fixed critical security issue #4357] (#4840)
86-
* Update legacy branch and tag URLs in dashboard to new format (#4812)
87-
* Slack webhook channel name cannot be empty or just contain an hashtag (#4786)
88-
* Add whitespace handling to PR-comparsion (#4683)
89-
* Make reverse proxy auth optional (#4643)
90-
* MySQL TLS (#4642)
91-
* Make sure to set PR split view when creating/previewing a pull request (#4617)
92-
* Log user in after a successful sign up (#4615)
93-
* Fix typo IsPullReuqestBroken -> IsPullRequestBroken (#4578)
94-
* Allow admin toggle forcing a password change for newly created users (#4563)
95-
* Update jQuery to v1.12.4 (#4551)
96-
* Env var GITEA_PUSHER_EMAIL (#4516)
97-
* Feat(repo): support search repository by topic name (#4505)
98-
* Small improvements to dependency UI (#4503)
99-
* Make max commits in graph configurable (#4498)
100-
* Add valid for lfs oid (#4461)
101-
* Add shortcut to save wiki page (#4452)
102-
* Allow administrator to create repository for any organization (#4368)
103-
* Fix repository last updated time update when delete a user who watched the repo (#4363)
104-
* Switch plaintext scratch tokens to use hash instead (#4331)
105-
* Increase default TOTP secret size to 320 bits (#4287)
106-
* Keep preseeded database password (#4284)
107-
* Implemented hover text showing user FullName (#4261)
108-
* Add ability to delete a token (#4235)
109-
* Fix typos in i18n variable names. (#4080)
110-
* Api: repos/search: add parameters to control the sort order (#3964)
111-
* Add missing path in the Docker app.ini template (#2181)
112-
* Add file name and branch to page title (#4902)
113-
* Offline use of google fonts (#4872)
114-
* Add missing History link to directory listings v2 (#4829)
115-
* Locale for Edit and Remove due date issue (#4802)
116-
* Disable 'May Import Local Repository' when is disabled by setting (Is… (#4780)
117-
* API /admin/users/{username} missing parameter (#4775)
118-
* Display error when adding a user to a team twice (#4746)
119-
* Remove UsePrivilegeSeparation from the Docker sshd_config, see #2876 (#4722)
120-
* Focus title input when clicking helper link (#4696)
121-
* Add vendor to user reserved words and format words list according alphabet (#4685)
122-
* Add gitea/issues link to 500 page (#4654)
123-
* Hide home button when landing page is not set to home (#4651)
124-
* Remove link to GitHub issues in 404 template (#4639)
125-
* Cmd/serve: pprof cpu and memory profile dumps to disk (#4560)
126-
* Add flash message after an account has been successfully activated (#4510)
127-
* Prevent html entity escaping on delete branch (#4471)
128-
* Locale for button Edit on protected branch (#4442)
129-
* Update notification icon (#4343)
130-
* Added front-end topics validation (#4316)
131-
* Don't display buttons if there are no system notifications (#4280)
132-
* Issue due date api (#3890)
133-
* SECURITY
134-
* Improve URL validation for external wiki and external issues (#4710)
135-
* Make cookies HttpOnly and obey COOKIE_SECURE flag (#4706)
136-
* Don't disclose emails of all users when sending out emails (#4664)
137-
* Check that repositories can only be migrated to own user or organizations (#4366)
138166
* TRANSLATION
139167
* Fix punctuation in English translation (#4958)
140168
* Fix translation (#4355)
141169

170+
## [1.5.3](https://github.com/go-gitea/gitea/releases/tag/v1.5.3) - 2018-10-31
171+
* SECURITY
172+
* Fix remote command execution vulnerability in upstream library (#5177) (#5196)
173+
142174
## [1.5.2](https://github.com/go-gitea/gitea/releases/tag/v1.5.2) - 2018-10-09
143175
* SECURITY
144176
* Enforce token on api routes (#4840) (#4905)

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.10-alpine3.7 AS build-env
4+
FROM golang:1.11-alpine3.8 AS build-env
55

66
ARG GITEA_VERSION
77
ARG TAGS="sqlite sqlite_unlock_notify"
@@ -18,7 +18,7 @@ WORKDIR ${GOPATH}/src/code.gitea.io/gitea
1818
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
1919
&& make clean generate build
2020

21-
FROM alpine:3.7
21+
FROM alpine:3.8
2222
LABEL maintainer="[email protected]"
2323

2424
EXPOSE 22 3000

0 commit comments

Comments
 (0)