Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
14cd16f
csrf: set cookie HttpOnly and Secure (#6013)
unknwon Mar 26, 2020
60e9352
build(deps): bump github.com/google/go-cmp from 0.3.0 to 0.4.0 (#6014)
dependabot-preview[bot] Mar 27, 2020
a041601
build(deps): bump github.com/urfave/cli from 1.22.1 to 1.22.3 (#6015)
dependabot-preview[bot] Mar 27, 2020
bc309b3
build(deps): bump gopkg.in/macaron.v1 from 1.3.4 to 1.3.5 (#6016)
dependabot-preview[bot] Mar 27, 2020
30c047f
build(deps): bump github.com/mattn/go-sqlite3 from 1.11.0 to 1.… (#6017)
dependabot-preview[bot] Mar 27, 2020
a9dcf4c
github: use Actions for CI (#6022)
unknwon Mar 27, 2020
71edd61
README: remove unused badge (#6024)
unknwon Mar 27, 2020
8707467
build(deps): bump github.com/stretchr/testify from 1.4.0 to 1.5… (#6019)
dependabot-preview[bot] Mar 27, 2020
a0f2394
build(deps): bump github.com/editorconfig/editorconfig-core-go/… (#6020)
dependabot-preview[bot] Mar 27, 2020
f58ffb3
build(deps): bump xorm.io/builder from 0.3.6 to 0.3.7 (#6021)
dependabot-preview[bot] Mar 27, 2020
0b80578
Revert "build(deps): bump xorm.io/builder from 0.3.6 to 0.3.7" (#6025)
unknwon Mar 27, 2020
af0cfe1
web: rename CSRF header (#6027)
unknwon Mar 28, 2020
4702742
api: support get releases endpoint (#6026)
Mar 28, 2020
a0651b6
dep: bump github.com/gogs/git-module from 1.0.1 to 1.0.2 (#6030)
unknwon Mar 29, 2020
9356231
codecov: formalize coverage settings (#6031)
unknwon Mar 29, 2020
933206f
gitutil: refactor the way to mock (#6032)
unknwon Mar 29, 2020
4cbb43b
gitutil: simplify mock with `t.Cleanup` (#6033)
unknwon Mar 29, 2020
a8a6325
build(deps): bump github.com/go-sql-driver/mysql from 1.4.1 to… (#6037)
dependabot-preview[bot] Mar 29, 2020
6298e33
build(deps): bump github.com/json-iterator/go from 1.1.7 to 1.1… (#6036)
dependabot-preview[bot] Mar 29, 2020
045e167
build(deps): bump github.com/niklasfasching/go-org from 0.1.6 t… (#6043)
dependabot-preview[bot] Mar 29, 2020
f0f3b87
build(deps): bump github.com/sergi/go-diff from 1.0.0 to 1.1.0 (#6042)
dependabot-preview[bot] Mar 29, 2020
b5a0661
build(deps): bump gopkg.in/ini.v1 from 1.54.0 to 1.55.0 (#6039)
dependabot-preview[bot] Mar 29, 2020
efa9ef7
build(deps): bump github.com/go-macaron/binding from 1.0.1 to 1… (#6045)
dependabot-preview[bot] Mar 29, 2020
afe226c
build(deps): bump github.com/lib/pq from 1.2.0 to 1.3.0 (#6041)
dependabot-preview[bot] Mar 29, 2020
63ab497
build(deps): bump github.com/prometheus/client_golang from 1.2.… (#6044)
dependabot-preview[bot] Mar 29, 2020
dce70fe
locale: sync from Crowdin (#6046)
unknwon Mar 29, 2020
72111e6
template: better diff handling of rename and deleted files (#6048)
unknwon Mar 30, 2020
fd7931c
Update CHANGELOG (#6049)
unknwon Mar 30, 2020
5b8ed0a
build(deps): bump github.com/pkg/errors from 0.8.1 to 0.9.1 (#6047)
dependabot-preview[bot] Mar 31, 2020
a603c0f
dep: bump github.com/gogs/git-module from 1.1.0 to 1.1.1 (#6051)
unknwon Mar 31, 2020
2bd9d0b
build(deps): bump github.com/urfave/cli from 1.22.3 to 1.22.4 (#6055)
dependabot-preview[bot] Apr 2, 2020
34145c9
lfs: implement HTTP routes (#6035)
unknwon Apr 4, 2020
53b91ef
lfs: run e2e and fix minor issues (#6059)
unknwon Apr 4, 2020
4aff4d6
lfs: support upload retry (#6061)
unknwon Apr 4, 2020
3a5c93e
db: use gorm function to check `ErrRecordNotFound` (#6060)
unknwon Apr 4, 2020
bae1d6c
lfs: only remove file on io error (#6062)
unknwon Apr 4, 2020
07818d5
route: no session for routes without UI (#6066)
unknwon Apr 4, 2020
083ecb7
conf: clearer doc comments for mirror config options (#6058)
alpencrossi Apr 6, 2020
559af54
build: require Go 1.14 for using `t.Cleanup` (#6069)
unknwon Apr 6, 2020
4d7db6e
locale: sync from Crowdin (#6071)
unknwon Apr 6, 2020
ee0ea2c
lfs: add unit test for middleware (#6070)
unknwon Apr 6, 2020
ca2f7a7
repo: delete rows in `lfs_object` table when delete repo (#6072)
unknwon Apr 6, 2020
2b3655f
lfs: add tests to batch endpoint (#6073)
unknwon Apr 6, 2020
571be84
db: handle JSON conversion for `LoginSource` (#6075)
unknwon Apr 6, 2020
4ebdcb7
db: include the Team ID in the error message (#6056)
ss23 Apr 6, 2020
f3b0596
docker: fix the bug of using root account to create `/data/*` directo…
eightpigs Apr 7, 2020
cac1054
github: update bug report template (#6076)
unknwon Apr 7, 2020
6a09681
docker: bump to Go 1.14 (#6077)
unknwon Apr 7, 2020
e79aebb
route: bypass require signin check for trigger repo tasks (#6079)
unknwon Apr 8, 2020
5b36ba6
docker: clean up never used files (#6080)
unknwon Apr 8, 2020
3e055e3
repo: disable public access option when using external wiki and issue…
alpencrossi Apr 8, 2020
9a5b227
lfsutil: add `Storager` interface and local storage (#6083)
unknwon Apr 10, 2020
e186a3d
db: add tests for helper functions (#6084)
unknwon Apr 10, 2020
5753d4c
Revert "docker: fix the bug of using root account to create `/d… (#6085)
unknwon Apr 10, 2020
62dda96
access_token: migrate to GORM and add tests (#6086)
unknwon Apr 10, 2020
e077ecd
db: add tests for LFS (#6087)
unknwon Apr 10, 2020
76bb647
db: add tests for permissions (#6088)
unknwon Apr 10, 2020
41f56ad
login_source: migrate to GORM and add tests (#6090)
unknwon Apr 11, 2020
ae107b2
db: only use `AutoMigrate` to create new tables (#6092)
unknwon Apr 11, 2020
26a2d0b
ssh: ignore malformed "env" commands (#6094)
unknwon Apr 12, 2020
d19287d
ssh: improve env command processing (#6095)
gancuinoodle Apr 12, 2020
659acd4
github: update bug report template (#6097)
unknwon Apr 13, 2020
cb439a1
db: add tests for two factors (#6099)
unknwon Apr 14, 2020
844d2f4
db: use GORM bulk insert helper (#6100)
unknwon Apr 14, 2020
cdafe21
db: add tests for `loginSourceFiles` (#6102)
unknwon Apr 14, 2020
440b1ec
api: add admin endpoint to get team members (#6101)
ruianderson Apr 14, 2020
614aba6
Update CHANGELOG (#6103)
unknwon Apr 14, 2020
5637706
docs: fix Go version (#6105)
unknwon Apr 15, 2020
28d74a9
docker: fix the bug of using root to create /data/ directory (#6106)
eightpigs Apr 15, 2020
e131a45
docker: fix mkdir subdir in /data failed when no mount volume (#6107)
eightpigs Apr 15, 2020
fa497b1
db: add tests for repos (#6112)
unknwon Apr 17, 2020
9d64d22
db: add tests for users (#6116)
unknwon Apr 18, 2020
7b29537
public: remove unused github.min.css (#6119)
unknwon Apr 18, 2020
fc57c92
conf: fallback time layout to RFC 3339 when misconfigured (#6120)
kousikmitra Apr 18, 2020
c0fd604
test: remove the use of goconvey (#6123)
unknwon Apr 18, 2020
5a52ee7
db: remove `db.User.LoginType` field (#6122)
kousikmitra Apr 18, 2020
60273d3
Update CHANGELOG.md
unknwon Apr 19, 2020
4e1f38c
lfs: show configs in admin ui (#6128)
unknwon Apr 21, 2020
dbe373a
build(deps): bump github.com/editorconfig/editorconfig-core-go/v2 fro…
dependabot-preview[bot] Apr 25, 2020
2f52a21
Add Layerfile
ColinChartier Mar 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -23,8 +23,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
48 changes: 48 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Go
on:
push:
branches: [master]
pull_request:
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]
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/codecov-action@v1.0.6
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-

9 changes: 0 additions & 9 deletions .github/workflows/golint.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ All notable changes to Gogs are documented in this file.
- 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)

### Changed

- The required Go version to compile source code changed to 1.13.
- 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 Down Expand Up @@ -45,11 +46,14 @@ All notable changes to Gogs are documented in this file.
- [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)
- 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)
- 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)
- Webhooks are not fired after push when `[service] REQUIRE_SIGNIN_VIEW = true`.

### Removed

Expand All @@ -60,6 +64,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
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM golang:alpine3.10 AS binarybuilder
FROM golang:alpine3.11 AS binarybuilder
RUN apk --no-cache --no-progress add --virtual \
build-deps \
build-base \
git \
linux-pam-dev

WORKDIR /go/src/github.com/gogs/gogs
WORKDIR /gogs.io/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 All @@ -33,7 +33,7 @@ COPY docker/nsswitch.conf /etc/nsswitch.conf

WORKDIR /app/gogs
COPY docker ./docker
COPY --from=binarybuilder /go/src/github.com/gogs/gogs/gogs .
COPY --from=binarybuilder /gogs.io/gogs/gogs .

RUN ./docker/finalize.sh

Expand Down
37 changes: 0 additions & 37 deletions Dockerfile.aarch64

This file was deleted.

46 changes: 0 additions & 46 deletions Dockerfile.aarch64hub

This file was deleted.

37 changes: 0 additions & 37 deletions Dockerfile.rpi

This file was deleted.

57 changes: 0 additions & 57 deletions Dockerfile.rpihub

This file was deleted.

24 changes: 24 additions & 0 deletions Layerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM vm/ubuntu:18.04

RUN apt-get update && \
apt-get -y install --no-install-recommends \
docker.io ca-certificates curl && \
rm -rf /var/lib/apt/lists/*

RUN curl -L "https://golang.org/dl/go1.14.linux-amd64.tar.gz" | tar -C /usr/local -xzf /dev/stdin

RUN docker pull postgres:11.4-alpine && \
docker run -d \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=gogs \
-p 5432:5432\
postgres:11.4-alpine

COPY . .
RUN /usr/local/go/bin/go mod download
RUN /usr/local/go/bin/go build -o /bin/gogs -v
WORKDIR /www
RUN gogs web&

EXPOSE WEBSITE http://localhost:3000
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <img src="https://github.com/gogs/gogs/raw/master/public/img/favicon.png" width="45" align="left">Gogs - A painless self-hosted Git service

[![Build status](https://img.shields.io/travis/gogs/gogs/master.svg?style=for-the-badge&logo=travis)](https://travis-ci.org/gogs/gogs) [![Build status](https://img.shields.io/appveyor/ci/Unknwon/gogs?logo=appveyor&style=for-the-badge)](https://ci.appveyor.com/project/Unknwon/gogs/branch/master) [![Discord](https://img.shields.io/discord/382595433060499458.svg?style=for-the-badge&logo=discord)](https://discord.gg/9aqdHU7) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph)](https://sourcegraph.com/github.com/gogs/gogs)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/gogs/gogs/Go?logo=github&style=for-the-badge)](https://github.com/gogs/gogs/actions?query=workflow%3AGo) [![Discord](https://img.shields.io/discord/382595433060499458.svg?style=for-the-badge&logo=discord)](https://discord.gg/9aqdHU7) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph)](https://sourcegraph.com/github.com/gogs/gogs)

![Repository](https://gogs.io/img/screenshots/2.png)

Expand All @@ -17,7 +17,7 @@ The Gogs (`/gɑgz/`) project aims to build a simple, stable and extensible self-
- Want to try it before doing anything else? Do it [online](https://try.gogs.io/gogs/gogs)!
- Having trouble? Help yourself with [troubleshooting](https://gogs.io/docs/intro/troubleshooting.html) or ask questions on [user forum](https://discuss.gogs.io/).
- Want to help with localization? Check out the [localization documentation](https://gogs.io/docs/features/i18n.html).
- Ready to get hands dirty? Read our guide to [set up your development environment](docs/local_development.md).
- Ready to get hands dirty? Read our guide to [set up your development environment](docs/dev/local_development.md).
- Hmm... What about APIs? We have experimental support with [documentation](https://github.com/gogs/docs-api).

## 💌 Features
Expand Down
Loading