Skip to content

Commit 94a93ab

Browse files
committed
Merge branch 'master' of https://github.com/go-gitea/gitea into explicitly_use_tls_for_mailer
2 parents d64cce9 + 225c489 commit 94a93ab

File tree

488 files changed

+156525
-52411
lines changed

Some content is hidden

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

488 files changed

+156525
-52411
lines changed

.drone.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pipeline:
6767
image: golang:1.11
6868
pull: true
6969
environment:
70-
TAGS: bindata sqlite
70+
TAGS: bindata sqlite sqlite_unlock_notify
7171
commands:
7272
- make clean
7373
- make generate
@@ -87,7 +87,7 @@ pipeline:
8787
pull: true
8888
group: test
8989
environment:
90-
TAGS: bindata sqlite
90+
TAGS: bindata sqlite sqlite_unlock_notify
9191
commands:
9292
- make unit-test-coverage
9393
when:
@@ -99,7 +99,7 @@ pipeline:
9999
pull: true
100100
group: test
101101
environment:
102-
TAGS: bindata sqlite
102+
TAGS: bindata sqlite sqlite_unlock_notify
103103
commands:
104104
- make test
105105
when:
@@ -117,17 +117,19 @@ pipeline:
117117
when:
118118
event: [ tag ]
119119

120-
# Commented until db locking have been resolved!
121-
# test-sqlite:
122-
# image: golang:1.10
123-
# pull: true
124-
# group: test
125-
# environment:
126-
# TAGS: bindata
127-
# commands:
128-
# - make test-sqlite
129-
# when:
130-
# event: [ push, tag, pull_request ]
120+
test-sqlite:
121+
image: golang:1.11
122+
pull: true
123+
group: test
124+
environment:
125+
TAGS: bindata
126+
commands:
127+
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
128+
- apt-get install -y git-lfs
129+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.sqlite.test)' | sh)) &
130+
- make test-sqlite
131+
when:
132+
event: [ push, tag, pull_request ]
131133

132134
test-mysql:
133135
image: golang:1.11
@@ -154,6 +156,7 @@ pipeline:
154156
commands:
155157
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
156158
- apt-get install -y git-lfs
159+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
157160
- make test-mysql
158161
when:
159162
event: [ tag ]
@@ -168,6 +171,7 @@ pipeline:
168171
commands:
169172
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
170173
- apt-get install -y git-lfs
174+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
171175
- make test-pgsql
172176
when:
173177
event: [ push, tag, pull_request ]
@@ -196,7 +200,7 @@ pipeline:
196200
image: karalabe/xgo-latest:latest
197201
pull: true
198202
environment:
199-
TAGS: bindata sqlite
203+
TAGS: bindata sqlite sqlite_unlock_notify
200204
commands:
201205
- export PATH=$PATH:$GOPATH/bin
202206
- make release

CHANGELOG.md

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,161 @@ 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
8+
* BREAKING
9+
* Respect email privacy option in user search via API (#4512)
10+
* Simply remove tidb and deps (#3993)
11+
* Swagger.v1.json template (#3572)
12+
* FEATURE
13+
* Pull request review/approval and comment on code (#3748)
14+
* Added dependencies for issues (#2196) (#2531)
15+
* Add the ability to have built in themes in Gitea and provide dark theme arc-green (#4198)
16+
* Add sudo functionality to the API (#4809)
17+
* Add oauth providers via cli (#4591)
18+
* Disable merging a WIP Pull request (#4529)
19+
* Force user to change password (#4489)
20+
* Add letsencrypt to Gitea (#4189)
21+
* Add push webhook support for mirrored repositories (#4127)
22+
* Add csv file render support defaultly (#4105)
23+
* Add Recaptcha functionality to Gitea (#4044)
24+
* BUGFIXES
25+
* Fix release creation via API (#5076)
26+
* Remove links from topics in edit mode (#5026)
27+
* Fix missing AppSubUrl in few more templates (fixup) (#5021)
28+
* Fix missing AppSubUrl in some templates (#5020)
29+
* Hide outdated comments in file view (#5017)
30+
* Upgrade gopkg.in/testfixtures.v2 (#4999)
31+
* Disable debug routes unless PPROF is enabled in configuration (#4995)
32+
* Fix user menu item styling (#4985)
33+
* Fix layout of the topics editing form (#4971)
34+
* Fix null pointer dereference in ParseCommitWithSignature (#4962)
35+
* Fix url in discord webhook (#4953)
36+
* Detect charset and convert non UTF-8 files for display (#4950)
37+
* Make sure to catch the right error so it is displayed on the UI (#4945)
38+
* Fix(topics): don't redirect to explore page. (#4938)
39+
* Fix bug forget to remove Stopwatch when remove repository (#4928)
40+
* Fix bug when repo remained bare if multiple branches pushed in single push (#4923)
41+
* Fix: Let's Encrypt configuration settings (#4911)
42+
* Fix: Crippled diff (#4726) (#4900)
43+
* Fix trimming of markup section names (#4863)
44+
* Issues api allow pulls and fix #4832 (#4852)
45+
* Do not autocreate directory for new users/orgs (#4828) (#4849)
46+
* Fix redirect with non-ascii branch names (#4764) (#4810)
47+
* Fix missing release title in webhook (#4783) (#4796)
48+
* User shouldn't be able to approve or reject his/her own PR (#4729)
49+
* Make sure to reset commit count in the cache on mirror syncing (#4720)
50+
* Fixed bug where team with admin privelege type doesn't get any unit (#4719)
51+
* Fix incorrect caption of webhook setting (#4701) (#4717)
52+
* Allow WIP marker to contains < or > (#4709)
53+
* Hide org/create menu item in Dashboard if user has no rights (#4678) (#4680)
54+
* Site admin could create repos even MAX_CREATION_LIMIT=0 (#4645)
55+
* Fix custom templates being ignored (#4638)
56+
* Fix starring icon after semantic ui update (#4628)
57+
* Fix Split-View line adjustment (#4622)
58+
* Fix integer constant overflows in tests (#4616)
59+
* Push whitelist now doesn't apply to branch deletion (#4601) (#4607)
60+
* Fix bugs when too many IN variables (#4594)
61+
* Fix failure on creating pull request with assignees (#4419) (#4583)
62+
* Fix panic issue on update avatar email (#4580) (#4581)
63+
* Fix status code label for a successful webhook (#4540)
64+
* An inactive user shouldn't be able to be added as a collaborator (#4535)
65+
* Don't fail silently if trying to add a collaborator twice (#4533)
66+
* Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) (#4525)
67+
* Fix out-of-transaction query in removeOrgUser (#4521) (#4522)
68+
* Fix migration from older releases (#4495)
69+
* Accept 'Data:' in commit graph (#4487)
70+
* Update xorm to latest version and fix correct `user` table referencing in sql (#4473)
71+
* Relative URLs for LibreJS page (#4460)
72+
* Redirect to correct page after using scratch token (#4458)
73+
* Fix column droping for MSSQL that need new transaction for that (#4440)
74+
* Replace src with raw to fix image paths (#4377)
75+
* Add default merge options when creating new repository (#4369)
76+
* Fix docker build (#4358)
77+
* Fixes repo membership check in API (#4341)
78+
* Dep upgrade mysql lib (#4161)
79+
* Fix some issues with special chars in branch names (#3767)
80+
* 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)
138+
* TRANSLATION
139+
* Fix punctuation in English translation (#4958)
140+
* Fix translation (#4355)
141+
142+
## [1.5.3](https://github.com/go-gitea/gitea/releases/tag/v1.5.3) - 2018-10-31
143+
* SECURITY
144+
* Fix remote command execution vulnerability in upstream library (#5177) (#5196)
145+
146+
## [1.5.2](https://github.com/go-gitea/gitea/releases/tag/v1.5.2) - 2018-10-09
147+
* SECURITY
148+
* Enforce token on api routes (#4840) (#4905)
149+
* BUGFIXES
150+
* Remove links from topics in edit mode (#5030)
151+
* Detect charset and convert non UTF-8 files for display (#4950) (#4994)
152+
* Fix layout of the topics editing form (#4971) (#4993)
153+
* Fix null pointer dereference in ParseCommitWithSignature (#4964)
154+
* Fix url in discord webhook (#4951)
155+
* Fix font-cropping UI bug in diff (#4726) (#4929)
156+
* Fix bug forget to remove Stopwatch when remove repository (#4933)
157+
* Fix bug when repo remained bare if multiple branches pushed (#4927)
158+
* Fix redirect with non-ascii branch names (#4764) (#4887)
159+
* Fix issues api allow pulls (#4852) (#4862)
160+
* Fix trimming of markup section names (#4864)
161+
7162
## [1.5.1](https://github.com/go-gitea/gitea/releases/tag/v1.5.1) - 2018-09-03
8163
* SECURITY
9164
* Don't disclose emails of all users when sending out emails (#4784)

CONTRIBUTING.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [Maintainers](#maintainers)
1717
- [Owners](#owners)
1818
- [Versions](#versions)
19+
- [Releasing Gitea](#releasing-gitea)
1920
- [Copyright](#copyright)
2021

2122
## Introduction
@@ -68,7 +69,7 @@ whole tree to make sure the changes don't break other usage
6869
and keep the compatibility on upgrade. To make sure you are
6970
running the test suite exactly like we do, you should install
7071
the CLI for [Drone CI](https://github.com/drone/drone), as
71-
we are using the server for continous testing, following [these
72+
we are using the server for continuous testing, following [these
7273
instructions](http://docs.drone.io/cli-installation/). After that,
7374
you can simply call `drone exec --local --build-event "pull_request"` within
7475
your working directory and it will try to run the test suite locally.
@@ -92,7 +93,7 @@ You can find more information on how to get started with it on the [dep project
9293
We do all translation work inside [Crowdin](https://crowdin.com/project/gitea).
9394
The only translation that is maintained in this git repository is
9495
[`en_US.ini`](https://github.com/go-gitea/gitea/blob/master/options/locale/locale_en-US.ini)
95-
and is synced regularily to Crowdin. Once a translation has reached
96+
and is synced regularly to Crowdin. Once a translation has reached
9697
A SATISFACTORY PERCENTAGE it will be synced back into this repo and
9798
included in the next released version.
9899

@@ -256,6 +257,19 @@ in production, please download the latest release tag version. All the
256257
branches will be protected via GitHub, all the PRs to every branch must
257258
be reviewed by two maintainers and must pass the automatic tests.
258259

260+
## Releasing Gitea
261+
262+
* Let $vmaj, $vmin and $vpat be Major, Minor and Patch version numbers, $vpat should be rc1, rc2, 0, 1, ...... $vmaj.$vmin will be kept the same as milestones on github or gitea in future.
263+
* Before releasing, confirm all the version's milestone issues or PRs has been resolved. Then discuss the release on discord channel #maintainers and get agreed with almost all the owners and mergers. Or you can declare the version and if nobody against in about serval hours.
264+
* If this is a big version first you have to create PR for changelog on branch `master` with PRs with label `changelog` and after it has been merged do following steps:
265+
* Create `-dev` tag as `git tag -s -F release.notes v$vmaj.$vmin.0-dev` and push the tag as `git push origin v$vmaj.$vmin.0-dev`.
266+
* When CI has finished building tag then you have to create a new branch named `release/v$vmaj.$vmin`
267+
* If it is bugfix version create PR for changelog on branch `release/v$vmaj.$vmin` and wait till it is reviewed and merged.
268+
* Add a tag as `git tag -s -F release.notes v$vmaj.$vmin.$`, release.notes file could be a temporary file to only include the changelog this version which you added to `CHANGELOG.md`.
269+
* And then push the tag as `git push origin v$vmaj.$vmin.$`. Drone CI will automatically created a release and upload all the compiled binary. (But currently it didn't add the release notes automatically. Maybe we should fix that.)
270+
* If needed send PR for changelog on branch `master`.
271+
* Send PR to [blog repository](https://github.com/go-gitea/blog) announcing the release.
272+
259273
## Copyright
260274

261275
Code that you contribute should use the standard copyright header:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

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

66
ARG GITEA_VERSION
7-
ARG TAGS="sqlite"
7+
ARG TAGS="sqlite sqlite_unlock_notify"
88
ENV TAGS "bindata $TAGS"
99

1010
#Build deps

Gopkg.lock

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)