Skip to content

Commit 172cf28

Browse files
committed
Merge branch 'master' into fix-go-gitea#6946-pass-in-pr-into-hooks
2 parents 48c4bbd + 7c0f2b9 commit 172cf28

File tree

537 files changed

+82936
-16972
lines changed

Some content is hidden

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

537 files changed

+82936
-16972
lines changed

.drone.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pipeline:
2424
branch: [ master ]
2525

2626
update-translations:
27-
image: alpine:3.7
27+
image: alpine:3.10
2828
commands:
2929
- mv ./options/locale/locale_en-US.ini ./options/
3030
- sed -i -e 's/="/=/g' -e 's/"$$//g' ./options/locale/*.ini
@@ -52,7 +52,6 @@ pipeline:
5252
image: webhippie/nodejs:latest
5353
pull: true
5454
commands:
55-
- npm install
5655
- make css
5756
- make js
5857
when:
@@ -164,7 +163,7 @@ pipeline:
164163
event: [ tag ]
165164

166165
test-mysql8:
167-
image: golang:1.11
166+
image: golang:1.12
168167
pull: true
169168
group: test
170169
environment:
@@ -295,7 +294,7 @@ pipeline:
295294
branch: [ master ]
296295

297296
docker-dryrun:
298-
image: plugins/docker:17.12
297+
image: plugins/docker:18.09
299298
pull: true
300299
repo: gitea/gitea
301300
cache_from: gitea/gitea
@@ -304,7 +303,7 @@ pipeline:
304303
event: [ pull_request ]
305304

306305
release-docker:
307-
image: plugins/docker:17.12
306+
image: plugins/docker:18.09
308307
pull: true
309308
secrets: [ docker_username, docker_password ]
310309
repo: gitea/gitea
@@ -315,7 +314,7 @@ pipeline:
315314
branch: [ release/* ]
316315

317316
docker:
318-
image: plugins/docker:17.12
317+
image: plugins/docker:18.09
319318
secrets: [ docker_username, docker_password ]
320319
pull: true
321320
repo: gitea/gitea

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ coverage.all
6767
/node_modules
6868
/modules/indexer/issues/indexers
6969
routers/repo/authorized_keys
70-
/package-lock.json
7170
/yarn.lock
7271

7372
# Snapcraft

.lesshintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
package-lock=false
21
save-exact=true

.stylelintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: stylelint-config-standard
2+
3+
rules:
4+
block-closing-brace-empty-line-before: null
5+
color-hex-length: null
6+
comment-empty-line-before: null
7+
declaration-empty-line-before: null
8+
indentation: 4
9+
no-descending-specificity: null
10+
rule-empty-line-before: null
11+
selector-pseudo-element-colon-notation: null

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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.8.3](https://github.com/go-gitea/gitea/releases/tag/v1.8.3) - 2019-06-17
8+
* BUGFIXES
9+
* Always set userID on LFS authentication (#7224) (Part of #6993)
10+
* Fix LFS Locks over SSH (#6999) (#7223)
11+
* Fix duplicated file on pull request conflicted files (#7211) (#7214)
12+
* Detect noreply email address as user (#7133) (#7195)
13+
* Don't get milestone from DB if ID is zero (#7169) (#7174)
14+
* Allow archived repos to be (un)starred and (un)watched (#7163) (#7168)
15+
* Fix GCArgs load from ini (#7156) (#7157)
16+
717
## [1.8.2](https://github.com/go-gitea/gitea/releases/tag/v1.8.2) - 2019-05-29
818
* BUGFIXES
919
* Fix possbile mysql invalid connnection error (#7051) (#7071)

Dockerfile

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

22
###################################
33
#Build stage
4-
FROM golang:1.12-alpine3.9 AS build-env
4+
FROM golang:1.12-alpine3.10 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.9
21+
FROM alpine:3.10
2222
LABEL maintainer="[email protected]"
2323

2424
EXPOSE 22 3000

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Andrew Thornton <[email protected]> (@zeripath)
2929
John Olheiser <[email protected]> (@jolheiser)
3030
Richard Mahn <[email protected]> (@richmahn)
3131
Mrsdizzie <[email protected]> (@mrsdizzie)
32+
silverwind <[email protected]> (@silverwind)

Makefile

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -366,30 +366,33 @@ release-compress:
366366
fi
367367
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
368368

369-
.PHONY: js
370-
js:
371-
@if ([ ! -d "$(PWD)/node_modules" ]); then \
372-
echo "node_modules directory is absent, please run 'npm install' first"; \
369+
npm-check:
370+
@hash npm > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
371+
echo "Please install Node.js 8.x or greater with npm"; \
373372
exit 1; \
374373
fi;
375374
@hash npx > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
376-
echo "Please install npm version 5.2+"; \
375+
echo "Please install Node.js 8.x or greater with npm"; \
377376
exit 1; \
378377
fi;
378+
379+
.PHONY: npm
380+
npm: npm-check
381+
npm install --no-save
382+
383+
.PHONY: npm-update
384+
npm-update: npm-check
385+
npx updates -cu
386+
rm -rf node_modules package-lock.json
387+
npm install --package-lock
388+
389+
.PHONY: js
390+
js: npm
379391
npx eslint public/js
380392

381393
.PHONY: css
382-
css:
383-
@if ([ ! -d "$(PWD)/node_modules" ]); then \
384-
echo "node_modules directory is absent, please run 'npm install' first"; \
385-
exit 1; \
386-
fi;
387-
@hash npx > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
388-
echo "Please install npm version 5.2+"; \
389-
exit 1; \
390-
fi;
391-
392-
npx lesshint public/less/
394+
css: npm
395+
npx stylelint public/less
393396
npx lessc --clean-css="--s0 -b" public/less/index.less public/css/index.css
394397
$(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),npx lessc --clean-css="--s0 -b" public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
395398
npx postcss --use autoprefixer --no-map --replace public/css/*

cmd/admin.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ var (
131131
Subcommands: []cli.Command{
132132
microcmdAuthAddOauth,
133133
microcmdAuthUpdateOauth,
134+
cmdAuthAddLdapBindDn,
135+
cmdAuthUpdateLdapBindDn,
136+
cmdAuthAddLdapSimpleAuth,
137+
cmdAuthUpdateLdapSimpleAuth,
134138
microcmdAuthList,
135139
microcmdAuthDelete,
136140
},
@@ -144,7 +148,7 @@ var (
144148

145149
idFlag = cli.Int64Flag{
146150
Name: "id",
147-
Usage: "ID of OAuth authentication source",
151+
Usage: "ID of authentication source",
148152
}
149153

150154
microcmdAuthDelete = cli.Command{

0 commit comments

Comments
 (0)