7793 Commits

Author SHA1 Message Date
6ab1d5a8a0 Changelog for v1.9.4 ()
* changelog

* Update CHANGELOG.md

We ned to revert this then ...

Co-Authored-By: Lauris BH <lauris@nix.lv>
v1.9.4
2019-10-08 20:54:58 +03:00
05f6566786 Revert "[Backport] Fix issues/pr list broken when there are man… ()
This reverts commit 0ea4b786cb99054a381f3005f11f4cf413214617.
2019-10-08 18:12:41 +02:00
0ea4b786cb [Backport] Fix issues/pr list broken when there are many repositories () ()
* Fix issues/pr list broken when there are many repositories ()

* fix issues/pr list broken when there are many repositories

* remove unused codes

* fix counting error on issues/prs

* keep the old logic

* fix panic

* fix tests

* rm unused import
2019-10-08 14:35:00 +03:00
30718ce4ac fix bug when migrating a private repository () () 2019-10-07 00:58:35 -04:00
aeec78543b Change general form binding to gogs form () () 2019-10-07 00:20:07 -04:00
c9b8c12bc9 feat: highlight issue references with : () ()
* feat: highlight issue references with :

e.g. : my commit msg
e.g. ABC-1234: my commit msg

* ref: update model regex to consistent with issueNumericPattern

* test: check highlight issue with : in commits messages
2019-10-06 23:41:46 -04:00
b0dcf417ea Fix milestone num_issues () ()
* fix milestone num_issues

* update missing completeness

* only update milestone closed number when closed issue is assigned a new milestone or clear milestone

* fix tests

* fix update milestone num

* fix completeness calculate

* make completeness calucation more clear
2019-10-07 11:03:43 +08:00
797194d2d0 Fix editor commit to new branch if PR disabled () () 2019-10-07 09:28:18 +08:00
5bac1a692a Allow users with explicit read access to give approvals () 2019-10-06 16:52:25 -04:00
b6fba5b459 fix version-validation (because of 1.12 -> 1.13 switch) ()
* fix depenedency

* make vendor first
2019-10-06 00:10:47 -04:00
e90d88d5d5 Backport of commit status fixes in PR and PR to v1.9 ()
* Use correct index when fetching commit status

Signed-off-by: Elias Norberg <elias@aisle.se>

* Compare against base repo to avoid mismatch when merging from fork

Signed-off-by: Elias Norberg <elias@aisle.se>

* Fix pull request commit status in user dashboard list
2019-10-01 19:16:45 +02:00
7156e2a71a Fix API for edit and delete release attachment ()
* Add logging for when user requested attachment doesn't belong to the specified release.

* Fix API to use correct variable for release asset (attachment)
2019-09-26 21:16:47 +08:00
e51d91a258 Fix assets on release webhook () 2019-09-25 22:50:54 +03:00
0ed5a647dd Fix release API URL generation () 2019-09-19 11:15:19 -04:00
3fc42add16 Allow registration when button is hidden () 2019-09-19 11:58:47 +03:00
4b9786ba62 MS Teams webhook misses commit messages ()
The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included.

Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
2019-09-18 11:51:13 +03:00
aaf975bff1 Fix data race ()
* Fix data race

* Fix data race in modules/log

* Make the scope of lock finner-grained

* Use syc.Map

* Fix missing change in the test

* Do not export LoggerMap
2019-09-17 12:40:28 +03:00
267fbbf201 Fix team user api () ()
* fix team user api

* fix tests

* fix api

* fix team user api

* change user convert

* fix tests

* fix tests
2019-09-17 11:23:40 +08:00
9e8df4b838 Fix pull merge 500 error caused by git-fetch breaking behaviors () 2019-09-16 13:27:05 -04:00
d78aa189ec [ssh] fix the config specification in the authorized_keys template () ()
The gitea flags must appear in front of the gitea command. Otherwise
 they are ignored.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
(cherry picked from commit 89648746a5acd4892a026d2962ff217280dbdf5b)
2019-09-16 09:41:30 +08:00
6883c007d3 [backport/v1.9] Fix reading git notes from nested trees ()
* Fix reading notes from nested trees

The GIT documentation for notes states "Permitted pathnames have the
form ab/cd/ef/.../abcdef...: a sequence of directory names of two
hexadecimal digits each followed by a filename with the rest of
the object ID."

* Add test case

* Fix new lines
2019-09-15 17:59:08 -04:00
91ea086ebe [fix ] make show private icon when repo avatar set () () 2019-09-14 00:58:31 +03:00
b228d22736 Add reviewrs as participants () 2019-09-12 17:52:33 -04:00
c4d8d53a6d Backport: Use vendored go-swagger () ()
* Use vendored go-swagger ()

* Use vendored go-swagger

* vendor go-swagger

* revert un wanteed change

* remove un-needed GO111MODULE

* Update Makefile

Co-Authored-By: techknowlogick <matti@mdranta.net>

* re-generate swagger file
2019-09-12 22:58:09 +03:00
2f71571305 target go1.12 v1.9.3 2019-09-07 12:40:52 -04:00
a182a80f7c Changelog for v1.9.3 ()
* Changelog for 1.9.3

* Fix ref to 8071

* Correct punctuation

Co-Authored-By: techknowlogick <matti@mdranta.net>
2019-09-06 12:25:24 -04:00
89c57487cd Fix Go 1.13 private repository go get issue ()
* Fix Go 1.13 invalid import path creation

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>

* Apply suggested changes from 

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
2019-09-06 09:59:03 -04:00
bb609cacee Backport: Strict name matching for Repository.GetTagID() ()
* Strict name matching for Repository.GetTagID()

* Add test for GetTagID()
2019-09-04 16:37:09 +02:00
e7f6da386f Avoid ambiguity of branch/directory names for the git-diff-tree command () () 2019-09-03 22:58:19 +03:00
7727f84fe8 Bugfix/deformed emoji in commit message (backport 1.9) ()
* Fixes deformed emoji in pull request comments or reviews

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Generate css via command

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
2019-09-03 18:05:47 +02:00
5d2676089e Add change title notification for issues () 2019-09-03 11:39:53 +08:00
9bea8d825b Run CORS handler first for /api routes () ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-09-02 08:55:33 +03:00
3cc728870a Evaluate emojis in commit messages in list view () ()
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
(cherry picked from commit 08c63190c68ca63f99f510f7f2c6cda41d531343)
2019-08-31 21:12:08 +08:00
0793b5e9c0 keep blame view buttons sequence consistent with normal view when view a file () () 2019-08-28 08:11:41 +02:00
bb423f9350 Backport for () 2019-08-27 07:01:16 +02:00
4d6c8d9b13 backport: Fix adding default Telegram webhook ()
Signed-off-by: Gary Kim <gary@garykim.dev>
2019-08-27 12:24:25 +08:00
b6b1560701 Abort syncrhonization from LDAP source if there is some error. ()
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
(cherry picked from commit b2d23a138942179d62f9bffdb3df272e9300e35b)
2019-08-25 02:59:21 +02:00
30dbddcc4d Add release notes of 1.9.2 ()
* Add release notes of 1.9.2

* add missing issue
v1.9.2
2019-08-22 16:36:40 +03:00
c491c22279 Fix pull creation with empty changes () ()
* Logs the stderr of git-apply
* Add an integration test
* Skip testPatch when patch is empty
2019-08-20 22:14:09 -04:00
5649f0d2b3 fix wrong sender when send slack webhook () () 2019-08-20 13:42:14 -04:00
7dd726faeb upload support text/plain; charset=utf8 () 2019-08-17 13:59:36 +01:00
14c979c1b2 drone/docker: prepare multi-arch release + provide arm64 image () ()
* drone/docker: prepare multi-arch release

* Add docker-linux-arm64 pipeline

* add arm 64 build to manifest

* tag dry-run + indent

* Fix notify dependency
2019-08-15 18:13:24 -04:00
6b84a1d72b lfs/lock: round locked_at timestamp to second () ()
* lfs/lock: round locked_at timestamp to second

* test returned locked_at values

* tests: use time RFC3339
2019-08-15 18:53:20 +08:00
68424eddf0 fix non existent milestone with 500 error () () 2019-08-15 09:37:59 +08:00
ab23e4b7f4 Add changelog of v1.9.1 ()
* add changelog of v1.9.1

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>

* mention releases build by go1.12.8

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
v1.9.1
2019-08-14 16:26:58 +03:00
1bb88dad20 Fix local runs of ssh-requiring integration tests () 2019-08-14 19:02:04 +08:00
94f0151789 Attempt to fix hook problem () 2019-08-14 17:43:02 +08:00
1e2fe9f0b4 gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key () ()
* Use .ExpiredUnix.IsZero for display green color of gpg key

* remove useless parentheses
2019-08-14 10:59:10 +08:00
f3496c88b2 Do not fetch all refs ()
Which would unnecessarily slow down the pull compare operation.
2019-08-13 19:03:01 +08:00
89915ca8a0 Fix duplicate call of webhook () () 2019-08-12 09:53:26 +08:00