Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge of upstream 'release' into G-Node/gogs 'master' #107

Merged
merged 164 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
70e345c
templates: fix copypaste of email verification in reset_passwd (#5975)
KostyaEsmukov Mar 8, 2020
3e075f0
go.mod: update to Go 1.13 (#5976)
unknwon Mar 8, 2020
b2b7ba8
diff: remove misaligned space
unknwon Mar 8, 2020
effb9b1
commit: fix unexpected truncation in title
unknwon Mar 8, 2020
9da0466
templates: fix not able to upload issue attachments (#5978)
unknwon Mar 9, 2020
800906b
api: overhaul `/repos/owner/repos/contents` (#5980)
unknwon Mar 10, 2020
a89da51
ci: enable go vet check (#5981)
unknwon Mar 10, 2020
d69f65c
api: minor changes to `/repo/owner/repo/git/trees` (#5982)
unknwon Mar 10, 2020
2b3456b
all: clean up dot files (#5983)
unknwon Mar 10, 2020
e508308
api: group "/contents" with "" and "/*" #5985 (#5986)
bharatnc Mar 13, 2020
971e512
public: make lessc compile minimize CSS (#5987)
unknwon Mar 14, 2020
e12a86d
README: update link to local development
unknwon Mar 14, 2020
529694d
email: check the owner when set as primary (#5988)
unknwon Mar 15, 2020
042f31a
refactor: unify error handling in routing layer
unknwon Mar 15, 2020
345cdb5
util: add tests (#5989)
unknwon Mar 15, 2020
b92f7d8
locale: sync from Crowdin (#5991)
unknwon Mar 16, 2020
69cb408
ipynb: sanitize rendered HTML (#5996)
unknwon Mar 20, 2020
2a6cc3d
[templates] Conform to upstream indentation
mpsonntag Nov 26, 2020
f27ef19
admin: use POST to run operations (#5997)
unknwon Mar 21, 2020
1944425
workflows: enable golangci-lint (#5998)
unknwon Mar 21, 2020
d16c165
cmd: init logging before `SetEngine` (#6001)
unknwon Mar 22, 2020
0b4843e
webhook: overhaul route handlers (#6002)
unknwon Mar 22, 2020
ecd8be1
github: rename job name (#6004)
unknwon Mar 22, 2020
53ade9c
[ImgBot] Optimize images (#6005)
imgbot[bot] Mar 22, 2020
d02c113
locale: sync from Crowdin (#6006)
unknwon Mar 22, 2020
b8e5b10
http: always set header `X-Content-Type-Options` to `nosniff` (#6008)
unknwon Mar 23, 2020
1fb9dd6
cmd: backup support exclude mirror repositories (#6003)
Mar 24, 2020
72547ac
go.mod: update github.com/gogs/git-module (#6011)
unknwon Mar 25, 2020
907c3ca
csrf: set cookie HttpOnly and Secure (#6013)
unknwon Mar 26, 2020
72b7b35
build(deps): bump github.com/google/go-cmp from 0.3.0 to 0.4.0 (#6014)
dependabot-preview[bot] Mar 27, 2020
00b719b
build(deps): bump github.com/urfave/cli from 1.22.1 to 1.22.3 (#6015)
dependabot-preview[bot] Mar 27, 2020
2acc994
build(deps): bump gopkg.in/macaron.v1 from 1.3.4 to 1.3.5 (#6016)
dependabot-preview[bot] Mar 27, 2020
1d85618
build(deps): bump github.com/mattn/go-sqlite3 from 1.11.0 to 1.… (#6017)
dependabot-preview[bot] Mar 27, 2020
0be8db6
github: use Actions for CI (#6022)
unknwon Mar 27, 2020
4c500d8
README: remove unused badge (#6024)
unknwon Mar 27, 2020
932a683
build(deps): bump github.com/stretchr/testify from 1.4.0 to 1.5… (#6019)
dependabot-preview[bot] Mar 27, 2020
d0df6ae
build(deps): bump github.com/editorconfig/editorconfig-core-go/… (#6020)
dependabot-preview[bot] Mar 27, 2020
26cdef1
build(deps): bump xorm.io/builder from 0.3.6 to 0.3.7 (#6021)
dependabot-preview[bot] Mar 27, 2020
8c9e5bf
Revert "build(deps): bump xorm.io/builder from 0.3.6 to 0.3.7" (#6025)
unknwon Mar 27, 2020
250c8b2
web: rename CSRF header (#6027)
unknwon Mar 28, 2020
75e9c78
api: support get releases endpoint (#6026)
Mar 28, 2020
10d7e40
dep: bump github.com/gogs/git-module from 1.0.1 to 1.0.2 (#6030)
unknwon Mar 29, 2020
6e62858
codecov: formalize coverage settings (#6031)
unknwon Mar 29, 2020
7bf87ad
gitutil: refactor the way to mock (#6032)
unknwon Mar 29, 2020
5e520e3
gitutil: simplify mock with `t.Cleanup` (#6033)
unknwon Mar 29, 2020
61277e2
build(deps): bump github.com/go-sql-driver/mysql from 1.4.1 to… (#6037)
dependabot-preview[bot] Mar 29, 2020
762f6a2
build(deps): bump github.com/json-iterator/go from 1.1.7 to 1.1… (#6036)
dependabot-preview[bot] Mar 29, 2020
0f91c26
build(deps): bump github.com/niklasfasching/go-org from 0.1.6 t… (#6043)
dependabot-preview[bot] Mar 29, 2020
3f6c91a
build(deps): bump github.com/sergi/go-diff from 1.0.0 to 1.1.0 (#6042)
dependabot-preview[bot] Mar 29, 2020
d64efbf
build(deps): bump gopkg.in/ini.v1 from 1.54.0 to 1.55.0 (#6039)
dependabot-preview[bot] Mar 29, 2020
8498881
build(deps): bump github.com/go-macaron/binding from 1.0.1 to 1… (#6045)
dependabot-preview[bot] Mar 29, 2020
bee09e2
build(deps): bump github.com/lib/pq from 1.2.0 to 1.3.0 (#6041)
dependabot-preview[bot] Mar 29, 2020
beeaf3a
build(deps): bump github.com/prometheus/client_golang from 1.2.… (#6044)
dependabot-preview[bot] Mar 29, 2020
1a1e421
locale: sync from Crowdin (#6046)
unknwon Mar 29, 2020
c5ca552
template: better diff handling of rename and deleted files (#6048)
unknwon Mar 30, 2020
f6e2d0c
Update CHANGELOG (#6049)
unknwon Mar 30, 2020
9178ec0
build(deps): bump github.com/pkg/errors from 0.8.1 to 0.9.1 (#6047)
dependabot-preview[bot] Mar 31, 2020
4978d14
dep: bump github.com/gogs/git-module from 1.1.0 to 1.1.1 (#6051)
unknwon Mar 31, 2020
6a0f190
build(deps): bump github.com/urfave/cli from 1.22.3 to 1.22.4 (#6055)
dependabot-preview[bot] Apr 2, 2020
3a6cab4
lfs: implement HTTP routes (#6035)
unknwon Apr 4, 2020
e781a84
lfs: run e2e and fix minor issues (#6059)
unknwon Apr 4, 2020
9a9d51b
lfs: support upload retry (#6061)
unknwon Apr 4, 2020
e42af31
db: use gorm function to check `ErrRecordNotFound` (#6060)
unknwon Apr 4, 2020
16b41ce
lfs: only remove file on io error (#6062)
unknwon Apr 4, 2020
bced406
route: no session for routes without UI (#6066)
unknwon Apr 4, 2020
0a996ca
conf: clearer doc comments for mirror config options (#6058)
alpencrossi Apr 6, 2020
9c3f576
build: require Go 1.14 for using `t.Cleanup` (#6069)
unknwon Apr 6, 2020
98e89f7
locale: sync from Crowdin (#6071)
unknwon Apr 6, 2020
9630f71
lfs: add unit test for middleware (#6070)
unknwon Apr 6, 2020
dbdf1ca
repo: delete rows in `lfs_object` table when delete repo (#6072)
unknwon Apr 6, 2020
f8249b7
lfs: add tests to batch endpoint (#6073)
unknwon Apr 6, 2020
6b2f091
db: handle JSON conversion for `LoginSource` (#6075)
unknwon Apr 6, 2020
be731f3
db: include the Team ID in the error message (#6056)
ss23 Apr 6, 2020
a51f1dd
docker: fix the bug of using root account to create `/data/*` directo…
eightpigs Apr 7, 2020
538aa5a
lfs import fixes
mpsonntag Nov 26, 2020
0664e4c
github: update bug report template (#6076)
unknwon Apr 7, 2020
ce19124
docker: bump to Go 1.14 (#6077)
unknwon Apr 7, 2020
b5dda73
route: bypass require signin check for trigger repo tasks (#6079)
unknwon Apr 8, 2020
8ca627f
docker: clean up never used files (#6080)
unknwon Apr 8, 2020
e5bb6d8
repo: disable public access option when using external wiki and issue…
alpencrossi Apr 8, 2020
2528335
lfsutil: add `Storager` interface and local storage (#6083)
unknwon Apr 10, 2020
663bec8
db: add tests for helper functions (#6084)
unknwon Apr 10, 2020
1823a53
Revert "docker: fix the bug of using root account to create `/d… (#6085)
unknwon Apr 10, 2020
fc1f3a7
access_token: migrate to GORM and add tests (#6086)
unknwon Apr 10, 2020
68f37e8
db: add tests for LFS (#6087)
unknwon Apr 10, 2020
3035394
db: add tests for permissions (#6088)
unknwon Apr 10, 2020
755d455
login_source: migrate to GORM and add tests (#6090)
unknwon Apr 11, 2020
c7fa7ab
db: only use `AutoMigrate` to create new tables (#6092)
unknwon Apr 11, 2020
fe6544c
ssh: ignore malformed "env" commands (#6094)
unknwon Apr 12, 2020
69572ed
ssh: improve env command processing (#6095)
gancuinoodle Apr 12, 2020
d047732
github: update bug report template (#6097)
unknwon Apr 13, 2020
c06269b
db: add tests for two factors (#6099)
unknwon Apr 14, 2020
e60a968
db: use GORM bulk insert helper (#6100)
unknwon Apr 14, 2020
6abcefe
db: add tests for `loginSourceFiles` (#6102)
unknwon Apr 14, 2020
7fc1262
api: add admin endpoint to get team members (#6101)
ruianderson Apr 14, 2020
cc4b83d
Update CHANGELOG (#6103)
unknwon Apr 14, 2020
72637c1
docs: fix Go version (#6105)
unknwon Apr 15, 2020
3a5e244
docker: fix the bug of using root to create /data/ directory (#6106)
eightpigs Apr 15, 2020
da58cd6
docker: fix mkdir subdir in /data failed when no mount volume (#6107)
eightpigs Apr 15, 2020
ddb4fdb
db: add tests for repos (#6112)
unknwon Apr 17, 2020
45044e1
db: add tests for users (#6116)
unknwon Apr 18, 2020
09299a1
public: remove unused github.min.css (#6119)
unknwon Apr 18, 2020
5d1b11a
conf: fallback time layout to RFC 3339 when misconfigured (#6120)
kousikmitra Apr 18, 2020
5dcbe69
test: remove the use of goconvey (#6123)
unknwon Apr 18, 2020
82cbb47
db: remove `db.User.LoginType` field (#6122)
kousikmitra Apr 18, 2020
0814a9e
Update CHANGELOG.md
unknwon Apr 19, 2020
9483030
lfs: show configs in admin ui (#6128)
unknwon Apr 21, 2020
7785c1e
build(deps): bump github.com/editorconfig/editorconfig-core-go/v2 fro…
dependabot-preview[bot] Apr 25, 2020
af7dd7e
build(deps): bump gopkg.in/macaron.v1 from 1.3.5 to 1.3.6 (#6143)
dependabot-preview[bot] May 2, 2020
2ccae5e
build(deps): bump github.com/prometheus/client_golang from 1.5.1 to 1…
dependabot-preview[bot] May 2, 2020
3b36d0c
Add security policy
unknwon May 2, 2020
8713bac
db: use GORM to backup and restore non-legacy tables (#6142)
unknwon May 4, 2020
27fe714
all: use semver to compare versions (#6147)
unknwon May 4, 2020
7e71580
build(deps): bump gopkg.in/macaron.v1 from 1.3.6 to 1.3.8 (#6153)
dependabot-preview[bot] May 9, 2020
7026947
locale: sync from Crowdin (#6156)
unknwon May 10, 2020
e3f6a74
lfs: add user and admin docs (#6158)
unknwon May 10, 2020
1760f65
docker: add scheduled backups with retention policy (#6140)
xZero707 May 11, 2020
ac59434
build(deps): bump gopkg.in/ini.v1 from 1.55.0 to 1.56.0 (#6166)
dependabot-preview[bot] May 16, 2020
49d08dc
docker: fix broken link in README
unknwon May 20, 2020
45cbf6e
lsif: don't upload indexes for forks (#6170)
gbrik May 21, 2020
592a4f3
lsif: upload data to dogfood instance (#6171)
unknwon May 22, 2020
be8713f
locale: sync from Crowdin (#6174)
unknwon May 24, 2020
c9b4286
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#6…
dependabot-preview[bot] May 29, 2020
4228e8a
locale: sync from Crowdin (#6191)
unknwon Jun 8, 2020
94db16d
README: remove OpenShift link (#6194)
unknwon Jun 11, 2020
7bbfc86
Add CodeQL security scanning (#6188)
jhutchings1 Jun 11, 2020
6742931
Update Dockerfiles for ARM to use alpine golang (#6183)
Nakrez Jun 11, 2020
07d7b1e
build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#6…
dependabot-preview[bot] Jun 13, 2020
437c875
build(deps): bump gopkg.in/macaron.v1 from 1.3.8 to 1.3.9 (#6200)
dependabot-preview[bot] Jun 13, 2020
14dd908
build(deps): bump github.com/json-iterator/go from 1.1.9 to 1.1.10 (#…
dependabot-preview[bot] Jun 13, 2020
fc9b0f7
lsif: fix upload to private instance (#6216)
unknwon Jun 29, 2020
ad458f0
workflow: add shellcheck as a linter (#6202)
dre2004 Jul 17, 2020
066f891
README: update VPS sponsor
unknwon Aug 16, 2020
e2e2b26
db: fix update team panic (#6253)
unknwon Aug 16, 2020
e140578
organization: limit showing at most 12 members in profile page (#6254)
unknwon Aug 17, 2020
482eea5
build(deps): bump github.com/microcosm-cc/bluemonday from 1.0.2 to 1.…
dependabot-preview[bot] Aug 17, 2020
f6ac2e4
build(deps): bump golang.org/x/text from 0.3.2 to 0.3.3 (#6207)
dependabot-preview[bot] Aug 17, 2020
932fa9b
docker: fix gosu link in Dockerfile.rpi (#6203)
InsanusMokrassar Aug 17, 2020
50572df
osutil: use system API to get the username when env vars are empty (#…
bibo38 Aug 19, 2020
debef3d
osutil: update docstring and tests (#6255)
unknwon Aug 19, 2020
f797933
deps: update git-module to v.1.1.2 (#6256)
manfer Aug 21, 2020
4985fc7
CHANGELOG: add entry for gogs/git-module#59 (#6257)
unknwon Aug 21, 2020
498ea55
conf: fix some typos in comments (app.ini) (#6237)
DRSDavidSoft Aug 21, 2020
b4f5cdf
conf: make generate for #6237 (#6260)
unknwon Aug 21, 2020
5d91f3b
repo: users have access to base repository can also view forks (#6261)
unknwon Aug 22, 2020
7e671ff
locale: sync from Crowdin (#6263)
unknwon Aug 22, 2020
b047453
CHANGELOG: cut 0.12.0 and 0.13.0+dev (#6264)
unknwon Aug 22, 2020
29cef04
release: remove dev version notion
unknwon Aug 22, 2020
362880b
assets: make generate (#6265)
unknwon Aug 22, 2020
e129d5d
issue: fix timestamp updating (#6210)
Kosadchiy Aug 24, 2020
d6e7da4
db: fix wrong column type of `login_source` (#6283)
unknwon Aug 27, 2020
f8d0b84
release: update version to 0.12.1
unknwon Aug 27, 2020
af9c626
web: correctly serving go-get pages for subdirs (#6318)
unknwon Sep 9, 2020
8374717
gitutil: infer submodule with baseURL when it is a relative path (#6337)
unknwon Sep 18, 2020
2cca223
dep: update github.com/unknwon/cae to v1.0.2 (#6342)
unknwon Sep 21, 2020
cab45f0
action: fix issue reference regexp and error handling (#6352)
unknwon Sep 26, 2020
746447f
release: update version to 0.12.2
unknwon Sep 26, 2020
0e5b866
ci: update Go workflow from main
unknwon Sep 26, 2020
9521732
cmd/serv: use different log files for ORMs in hook mode (#6361)
unknwon Sep 29, 2020
0677f9b
markup: render SHA links without branch prefix (#6350)
laojianzi Sep 29, 2020
53c14f5
lfs: ask client to always send the same value for the HTTP header (#6…
unknwon Oct 4, 2020
91c09d1
release: update version to 0.12.3
unknwon Oct 7, 2020
16f5c71
context: add X-Frame-Options header (#6411)
matheusmosca Nov 11, 2020
b66a68f
repo: disallow urlencoded new lines in git protocol paths (#6420)
stypr Nov 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 0 additions & 7 deletions .codebeatignore

This file was deleted.

7 changes: 0 additions & 7 deletions .codebeatsettings

This file was deleted.

5 changes: 2 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packager
packager/**
.packager
.packager/**
scripts
scripts/**
.github/
Expand All @@ -8,7 +8,6 @@ config.codekit
.dockerignore
*.yml
*.md
.bra.toml
.editorconfig
.gitignore
Dockerfile*
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ indent_size = 4
indent_style = tab
indent_size = 2

[*.{less,yml}]
[*.{less, yml}]
indent_style = space
indent_size = 2

Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ conf/license/* linguist-vendored
public/assets/* linguist-vendored
public/plugins/* linguist-vendored
public/css/themes/* linguist-vendored
public/css/github.min.css linguist-vendored
public/css/semantic-2.4.2.min.css linguist-vendored
public/js/libs/* linguist-vendored
public/js/jquery-3.4.1.min.js linguist-vendored
Expand Down
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ The issue will be closed without any explanation if it does not satisfy any of f
**Describe the bug**
<!-- A clear and concise description of what the bug is -->

**Gogs version or commit**
<!-- The version number or the commit SHA of the Gogs instance you use -->
**Gogs version and commit**
<!--
The version number or the commit SHA of the Gogs instance you use.
You can find these information in the admin dashboard ("/admin").
-->

**Git version**

Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Code scanning - action"

on:
push:
branches: [master]
schedule:
- cron: '0 19 * * 0'

jobs:
CodeQL-Build:

# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
54 changes: 54 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Go
on:
push:
branches:
- master
- main
- 'release/**'
paths:
- '**.go'
pull_request:
paths:
- '**.go'
env:
GOPROXY: "https://proxy.golang.org"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1
with:
args: 'run --timeout=30m'

test:
name: Test
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run unit tests
run: go test -v -race -coverprofile=coverage -covermode=atomic ./...
- name: Upload coverage report to Codecov
uses: codecov/[email protected]
with:
file: ./coverage
flags: unittests
- name: Cache downloaded modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
15 changes: 9 additions & 6 deletions .github/workflows/lsif.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: LSIF
on: [push]
jobs:
build:
lsif-go:
if: github.repository == 'gogs/gogs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Generate LSIF data
uses: sourcegraph/lsif-go-action@master
- name: Upload LSIF data to sourcegraph.com
continue-on-error: true
uses: docker://sourcegraph/src-cli:latest
with:
verbose: 'true'
- name: Upload LSIF data
uses: sourcegraph/lsif-upload-action@master
args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
- name: Upload LSIF data to sourcegraph.unknwon.cn
continue-on-error: true
uses: docker://sourcegraph/src-cli:latest
with:
endpoint: https://sourcegraph.com
github_token: ${{ secrets.GITHUB_TOKEN }}
args: -endpoint=https://sourcegraph.unknwon.cn lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Shell
on:
push:
branches: [master]
pull_request:
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
log/
custom/
data/
.vendor/
.idea/
*.iml
public/img/avatar/
Expand Down
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

68 changes: 66 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,69 @@

All notable changes to Gogs are documented in this file.

## 0.12.0+dev (`master`)
## 0.13.0+dev (`main`)

### Added

- An unlisted option is added when create or migrate a repository. Unlisted repositories are public but not being listed for users without direct access in the UI. [#5733](https://github.com/gogs/gogs/issues/5733)
- Add new configuration option `[git.timeout] DIFF` for customizing operation timeout of `git diff`. [#6315](https://github.com/gogs/gogs/issues/6315)

### Changed

- The default branch has been changed to `main`. [#6285](https://github.com/gogs/gogs/pull/6285)
- MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. [#6295](https://github.com/gogs/gogs/pull/6295)
- Use [Task](https://github.com/go-task/task) as the default build tool for development. [#6297](https://github.com/gogs/gogs/pull/6297)

### Fixed

- Add `X-Frame-Options` header to prevent Clickjacking. [#6409](https://github.com/gogs/gogs/issues/6409)
- [Security] Potential SSRF attack by CRLF injection via repository migration. [#6413](https://github.com/gogs/gogs/issues/6413)


### Removed

- ⚠️ Migrations before 0.12 are removed, installations not on 0.12 should upgrade to it to run the migrations and then upgrade to 0.13.
- Configuration section `[mailer]` is no longer used.
- Configuration section `[service]` is no longer used.
- Configuration option `APP_NAME` is no longer used.
- Configuration option `[security] REVERSE_PROXY_AUTHENTICATION_USER` is no longer used.
- Configuration option `[database] PASSWD` is no longer used.
- Configuration option `[auth] ACTIVE_CODE_LIVE_MINUTES` is no longer used.
- Configuration option `[auth] RESET_PASSWD_CODE_LIVE_MINUTES` is no longer used.
- Configuration option `[auth] ENABLE_CAPTCHA` is no longer used.
- Configuration option `[auth] ENABLE_NOTIFY_MAIL` is no longer used.
- Configuration option `[auth] REGISTER_EMAIL_CONFIRM` is no longer used.
- Configuration option `[session] GC_INTERVAL_TIME` is no longer used.
- Configuration option `[session] SESSION_LIFE_TIME` is no longer used.
- Configuration option `[server] ROOT_URL` is no longer used.
- Configuration option `[server] LANDING_PAGE` is no longer used.
- Configuration option `[database] DB_TYPE` is no longer used.
- Configuration option `[database] PASSWD` is no longer used.

## 0.12.1

### Fixed

- The `updated_at` field is now correctly updated when updates an issue. [#6209](https://github.com/gogs/gogs/issues/6209)
- Fixed a regression which created `login_source.cfg` column to have `VARCHAR(255)` instead of `TEXT` in MySQL. [#6280](https://github.com/gogs/gogs/issues/6280)

## 0.12.0

### Added

- Support for Git LFS, you can read documentation for both [user](https://github.com/gogs/gogs/blob/master/docs/user/lfs.md) and [admin](https://github.com/gogs/gogs/blob/master/docs/admin/lfs.md). [#1322](https://github.com/gogs/gogs/issues/1322)
- Allow admin to remove observers from the repository. [#5803](https://github.com/gogs/gogs/pull/5803)
- Use `Last-Modified` HTTP header for raw files. [#5811](https://github.com/gogs/gogs/issues/5811)
- Support syntax highlighting for SAS code files (i.e. `.r`, `.sas`, `.tex`, `.yaml`). [#5856](https://github.com/gogs/gogs/pull/5856)
- Able to fill in pull request title with a template. [#5901](https://github.com/gogs/gogs/pull/5901)
- Able to override static files under `public/` directory, please refer to [documentation](https://gogs.io/docs/features/custom_template) for usage. [#5920](https://github.com/gogs/gogs/pull/5920)
- New API endpoint `GET /admin/teams/:teamid/members` to list members of a team. [#5877](https://github.com/gogs/gogs/issues/5877)
- Support backup with retention policy for Docker deployments. [#6140](https://github.com/gogs/gogs/pull/6140)

### Changed

- The required Go version to compile source code changed to 1.13.
- The organization profile page has changed to display at most 12 members. [#5506](https://github.com/gogs/gogs/issues/5506)
- The required Go version to compile source code changed to 1.14.
- All assets are now embedded into binary and served from memory by default. Set `[server] LOAD_ASSETS_FROM_DISK = true` to load them from disk. [#5920](https://github.com/gogs/gogs/pull/5920)
- Application and Go versions are removed from page footer and only show in the admin dashboard.
- Build tag for running as Windows Service has been changed from `miniwinsvc` to `minwinsvc`.
Expand All @@ -32,18 +82,31 @@ All notable changes to Gogs are documented in this file.
- Configuration option `[auth] ENABLE_NOTIFY_MAIL` is deprecated and will end support in 0.13.0, please start using `[user] ENABLE_EMAIL_NOTIFICATION`.
- Configuration option `[session] GC_INTERVAL_TIME` is deprecated and will end support in 0.13.0, please start using `[session] GC_INTERVAL`.
- Configuration option `[session] SESSION_LIFE_TIME` is deprecated and will end support in 0.13.0, please start using `[session] MAX_LIFE_TIME`.
- The name `-` is reserved and cannot be used for users or organizations.

### Fixed

- [Security] Potential open redirection with i18n.
- [Security] Potential ability to delete files outside a repository.
- [Security] Potential ability to set primary email on others' behalf from their verified emails.
- [Security] Potential XSS attack via `.ipynb`. [#5170](https://github.com/gogs/gogs/issues/5170)
- [Security] Potential SSRF attack via webhooks. [#5366](https://github.com/gogs/gogs/issues/5366)
- [Security] Potential CSRF attack in admin panel. [#5367](https://github.com/gogs/gogs/issues/5367)
- [Security] Potential stored XSS attack in some browsers. [#5397](https://github.com/gogs/gogs/issues/5397)
- [Security] Potential RCE on mirror repositories. [#5767](https://github.com/gogs/gogs/issues/5767)
- [Security] Potential XSS attack with raw markdown API. [#5907](https://github.com/gogs/gogs/pull/5907)
- File both modified and renamed within a commit treated as separate files. [#5056](https://github.com/gogs/gogs/issues/5056)
- Unable to restore the database backup to MySQL 8.0 with syntax error. [#5602](https://github.com/gogs/gogs/issues/5602)
- Open/close milestone redirects to a 404 page. [#5677](https://github.com/gogs/gogs/issues/5677)
- Disallow multiple tokens with same name. [#5587](https://github.com/gogs/gogs/issues/5587) [#5820](https://github.com/gogs/gogs/pull/5820)
- Enable Federated Avatar Lookup could cause server to crash. [#5848](https://github.com/gogs/gogs/issues/5848)
- Private repositories are hidden in the organization's view. [#5869](https://github.com/gogs/gogs/issues/5869)
- Users have access to base repository cannot view commits in forks. [#5878](https://github.com/gogs/gogs/issues/5878)
- Server error when changing email address in user settings page. [#5899](https://github.com/gogs/gogs/issues/5899)
- Fall back to use RFC 3339 as time layout when misconfigured. [#6098](https://github.com/gogs/gogs/issues/6098)
- Unable to update team with server error. [#6185](https://github.com/gogs/gogs/issues/6185)
- Webhooks are not fired after push when `[service] REQUIRE_SIGNIN_VIEW = true`.
- Files with identical content are randomly displayed one of them.

### Removed

Expand All @@ -54,6 +117,7 @@ All notable changes to Gogs are documented in this file.
- Configuration option `[session] ENABLE_SET_COOKIE`
- Configuration option `[release.attachment] PATH`
- Configuration option `[webhook] QUEUE_LENGTH`
- Build tag `sqlite`, which means CGO is now required.

---

Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:alpine3.10 AS binarybuilder
FROM golang:alpine3.11 AS binarybuilder
RUN apk --no-cache --no-progress add --virtual \
build-deps \
build-base \
Expand All @@ -7,10 +7,10 @@ RUN apk --no-cache --no-progress add --virtual \

WORKDIR /go/src/github.com/G-Node/gogs
COPY . .
RUN make build-no-gen TAGS="sqlite cert pam"
RUN make build-no-gen TAGS="cert pam"

FROM alpine:3.10
ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosu
FROM alpine:3.11
ADD https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 /usr/sbin/gosu
RUN chmod +x /usr/sbin/gosu \
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
&& apk --no-cache --no-progress add \
Expand Down Expand Up @@ -49,7 +49,7 @@ COPY --from=binarybuilder /go/src/github.com/G-Node/gogs/gogs .
RUN ./docker/finalize.sh

# Configure Docker Container
VOLUME ["/data"]
VOLUME ["/data", "/backup"]
EXPOSE 22 3000
ENTRYPOINT ["/app/gogs/docker/start.sh"]
CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
Loading