2
0
Commit Graph

772 Commits

Author SHA1 Message Date
GiteaBot
ec9c74b1be [skip ci] Updated translations via Crowdin 2019-09-20 14:08:48 +00:00
guillep2k
ae2ebb2514 Reference issues from pull requests and other issues (#8137)
* Update ref comment

* Generate comment on simple ref

* Make fmt + remove unneeded repo load

* Add TODO comments

* Add ref-check in issue creation; re-arrange template

* Make unit tests pass; rearrange code

* Make fmt

* Filter out xref comment if user can't see the referencing issue

* Add TODOs

* Add cross reference

* Rearrange code; add cross-repository references

* Striketrhough obsolete references

* Remove unnecesary TODO

* Add "not supported" note

* Support for edits and deletes, and issue title

* Revert changes to go.mod

* Fix fmt

* Add support for xref from API

* Add first integration test

* Add integration tests

* Correct formatting

* Fix add comment test

* Add migration

* Remove outdated comments; fix typo

* Some code refactoring and rearranging

* Rename findCrossReferences to createCrossReferences

* Delete xrefs when repository is deleted

* Corrections as suggested by @lafriks

* Prepare for merge

* Fix log for errors
2019-09-20 01:45:38 -04:00
GiteaBot
845a0a125e [skip ci] Updated translations via Crowdin 2019-09-19 00:27:00 +00:00
Lunny Xiao
bee7b89409 Refuse merge until all required status checks success (#7481)
* refuse merge until ci successfully

* deny merge request when required status checkes not succeed on merge Post and API

* add database migration for added columns on protected_branch

* fix migration

* fix protected branch check bug

* fix protected branch settings

* remove duplicated code on check pull request's required commit statuses pass

* remove unused codes

* fix migration

* add newline for template file

* fix go mod

* rename function name and some other fixes

* fix template

* fix bug pull view

* remove go1.12 wrong dependencies

* add administrator bypass when protected branch status check enabled

* fix bug

* improve the codes
2019-09-18 08:39:45 +03:00
GiteaBot
a5dfdd0e20 [skip ci] Updated translations via Crowdin 2019-09-17 06:26:13 +00:00
Mario Lubenka
6f3764d2ea Adds side-by-side diff for images (#6784)
* Adds side-by-side diff for images

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

* Explain blank imports

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

* Use complete word for width and height labels on image compare

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

* Update index.css from master

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

* Moves ImageInfo to git commit file

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

* Assign ImageInfo function for template and sets correct target for BeforeSourcePath

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

* Adds missing comment

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

* Return error if ImageInfo failed

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

* Avoid template panic when ImageInfo failed for some reason

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

* Show file size on image diff

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

* Removes unused helper function

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

* Reverts copyright year change

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

* Close file reader

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

* Update commit.go

Sets correct data key

* Moves reader.Close() up a few lines

* Updates index.css

* Updates CSS file

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

* Transfers adjustments for image compare to compare.go file

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

* Adjusts variable name

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

* Apply lesshint recommendations

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

* Do not show old image on image compare if it is not in index of base commit

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

* Change file size text

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
2019-09-16 17:03:22 +08:00
GiteaBot
85ad5dfe8f [skip ci] Updated translations via Crowdin 2019-09-14 07:07:25 +00:00
techknowlogick
ecefbb7a20 oauth2 with remote Gitea - Fix #8093 (#8149) 2019-09-12 22:15:36 -04:00
GiteaBot
cdf9201e54 [skip ci] Updated translations via Crowdin 2019-09-12 09:33:49 +00:00
GiteaBot
bee403bf22 [skip ci] Updated translations via Crowdin 2019-09-11 21:28:55 +00:00
GiteaBot
6349971a26 [skip ci] Updated translations via Crowdin 2019-09-10 17:11:24 +00:00
WGH
a6e2811394 Implement webhook branch filter (#7791)
* Fix validate() function to handle errors in embedded anon structs

* Implement webhook branch filter

See #2025, #3998.
2019-09-09 08:48:21 +03:00
John Olheiser
53eff92925 Add option to initialize repository with labels (#6061)
* Add optional label sets on repo creation

* Fix CRLF

* Instead of hardcoding default, make it the helper

* Move label set init out of repo init

Add a new error for the router
Combine router label init with repo creation label init

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add issue labels to Swagger for repo creation

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update models/issue_label.go

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

* Update models/issue_label.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
2019-09-08 11:28:40 +03:00
GiteaBot
cfdee25b51 [skip ci] Updated translations via Crowdin 2019-09-07 14:55:43 +00:00
GiteaBot
93e4f1d445 [skip ci] Updated translations via Crowdin 2019-09-07 11:19:22 +00:00
GiteaBot
e87569d790 [skip ci] Updated translations via Crowdin 2019-09-06 19:26:14 +00:00
GiteaBot
c23ff643c9 [skip ci] Updated translations via Crowdin 2019-09-05 20:23:08 +00:00
GiteaBot
3c0e8369c8 [skip ci] Updated translations via Crowdin 2019-09-05 09:28:34 +00:00
micw
09e733fe83 Display description of 'make this repo private' as help text, not as tooltip (#8097) 2019-09-05 11:13:51 +02:00
GiteaBot
79cba7130e [skip ci] Updated translations via Crowdin 2019-09-04 19:55:18 +00:00
GiteaBot
619cdab987 [skip ci] Updated translations via Crowdin 2019-09-03 17:29:10 +00:00
GiteaBot
15583be5c9 [skip ci] Updated translations via Crowdin 2019-09-03 15:48:35 +00:00
GiteaBot
0f1f0e1a07 [skip ci] Updated translations via Crowdin 2019-09-03 12:45:01 +00:00
Lunny Xiao
82af589653 Add merged commit id on pull view when it's merged (#8062) 2019-09-03 09:29:36 +03:00
Mura Li
25a7c016ec Add tooltip for the visibility checkbox in /repo/create (#8025)
* Add tooltip for the visibility checkbox in /repo/create

* Change the tooltip wording

* Update options/locale/locale_en-US.ini

Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-09-02 18:29:04 -04:00
GiteaBot
afdd220178 [skip ci] Updated translations via Crowdin 2019-09-02 19:13:44 +00:00
GiteaBot
f248120a73 [skip ci] Updated translations via Crowdin 2019-09-02 16:14:21 +00:00
jaqra
7f4d457fe7 Add strike to old header on comment (#8046) 2019-09-03 00:11:23 +08:00
GiteaBot
a461947019 [skip ci] Updated translations via Crowdin 2019-08-29 21:33:03 +00:00
Gary Kim
746597c721 Add Ability for User to Customize Email Notification Frequency (#7813)
* Add Backend Logic for Toggling Email Notification

This commit adds the backend logic for
allowing users to enable or disable email
notifications. The implementation ensures
that only issue notification emails get disabled
and important emails are still sent regardless
of the setting.

The UI to toggle this setting has not yet been
implemented.

* Add UI and complete user email notification enable

This commit completes the functionality to allow
users to disable their own email notifications.

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Third Option for Only Email on Mention

Signed-off-by: Gary Kim <gary@garykim.dev>

* Readd NOT NULL to new preference string

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add Tests and Rewrite Comment

Signed-off-by: Gary Kim <gary@garykim.dev>

* Allow admin to set default email frequency

Signed-off-by: Gary Kim <gary@garykim.dev>

* Add new config option to docs

Signed-off-by: Gary Kim <gary@garykim.dev>

* Fix a few mistakes

Signed-off-by: Gary Kim <gary@garykim.dev>

* Only update required columns

Signed-off-by: Gary Kim <gary@garykim.dev>

* Simplify an error check

Signed-off-by: Gary Kim <gary@garykim.dev>

* Make email_notification_preference column in DB be VARCHAR(20)

Signed-off-by: Gary Kim <gary@garykim.dev>

* Handle errors

Signed-off-by: Gary Kim <gary@garykim.dev>

* Update models/migrations/v93.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
2019-08-29 17:05:42 +03:00
GiteaBot
ae8351e8ce [skip ci] Updated translations via Crowdin 2019-08-28 02:26:14 +00:00
GiteaBot
5470afdbe5 [skip ci] Updated translations via Crowdin 2019-08-27 23:01:14 +00:00
GiteaBot
c95e3f6f4c [skip ci] Updated translations via Crowdin 2019-08-27 20:36:39 +00:00
kolaente
c1745b3c40 Use "Pull Request" instead of "Merge Request" (#8003)
Signed-off-by: kolaente <k@knt.li>
2019-08-27 23:33:48 +03:00
GiteaBot
7ca9d74816 [skip ci] Updated translations via Crowdin 2019-08-23 16:42:05 +00:00
GiteaBot
15e8cb5f0d [skip ci] Updated translations via Crowdin 2019-08-20 15:09:59 +00:00
GiteaBot
0c9337a6eb [skip ci] Updated translations via Crowdin 2019-08-20 12:43:28 +00:00
GiteaBot
dd0f5b980b [skip ci] Updated translations via Crowdin 2019-08-16 22:53:51 +00:00
zeripath
59202d7023 Extract the username and password from the mirror url (#7651)
* Explode out mirror username and password

* Update models/repo_mirror.go

* Just roundtrip the password

* remove unused declaration

* Update templates/repo/settings/options.tmpl
2019-08-16 22:56:57 +01:00
GiteaBot
797750232f [skip ci] Updated translations via Crowdin 2019-08-14 15:35:51 +00:00
GiteaBot
6712bf26db [skip ci] Updated translations via Crowdin 2019-08-14 11:34:49 +00:00
GiteaBot
a3fa2cd597 [skip ci] Updated translations via Crowdin 2019-08-14 09:39:51 +00:00
GiteaBot
434e2d4c57 [skip ci] Updated translations via Crowdin 2019-08-13 17:11:27 +00:00
GiteaBot
d31744ba6e [skip ci] Updated translations via Crowdin 2019-08-12 21:54:26 +00:00
GiteaBot
f9990c3cc8 [skip ci] Updated translations via Crowdin 2019-07-31 06:16:57 +00:00
GiteaBot
a42f557aff [skip ci] Updated translations via Crowdin 2019-07-29 15:43:57 +00:00
GiteaBot
10b04d781d [skip ci] Updated translations via Crowdin 2019-07-29 04:21:31 +00:00
6543
959f9ce52c [Branch View] add download button (#7604)
* add download-button info message

* add overflow-visible css for table colum class

* right colum is always there

* add download button for default branch

* add download button for all other branchs

* resize table colum so two buttons fit in

* code indent avter rebase

* show commit divergence corect
https://github.com/go-gitea/gitea/issues/7625

* changes because of merge master into ...

* optimize if statement for protected branches

* dont downloat a deleted branch - fix error 404
2019-07-29 10:27:05 +08:00
GiteaBot
fc0c4c10ab [skip ci] Updated translations via Crowdin 2019-07-26 11:23:16 +00:00
GiteaBot
cd2aebd06b [skip ci] Updated translations via Crowdin 2019-07-26 04:28:01 +00:00