Commit Graph

6514 Commits

Author SHA1 Message Date
Keith Rutkowski
b216bcf335 Change commit ref comments to use a more parse-able form of content 2018-07-06 08:04:33 -04:00
Keith Rutkowski
96dd2686b1 Hook up frontend templates to render reference comments
Commit features:
- renders reference comments only if their source still exists (except
for old style commit refs)
- allows for more complex rendering options, e.g. issue or commit
status, quoted comments, etc.
- properly handles updates to issue/PR titles, movement of repositories,
etc.

NOTE:  Only the en_US locale is provided by this commit.
2018-07-06 08:04:33 -04:00
Keith Rutkowski
f25b15358c Add the LoadReference function
Add the LoadReference function to prepare data members of reference
types of comments for frontend rendering.  Also prepares for the
transition of commit reference comments into a new message format.
2018-07-06 08:04:33 -04:00
Keith Rutkowski
e20edf6507 Hook up the UpdateIssuesComment function to various actions
The UpdateIssuesComment function is now being called when:
- a pull request is merged, so the pull request title or description can
open/close issues
- a new pull request is created, so it can reference an issue from its
title or description
- a new issue is created, so it can reference an issue from its title or
description
- a pull request or issue title or description is updated
- a comment is created or updated, so it can reference an issue from its
title or description
2018-07-06 08:04:33 -04:00
Keith Rutkowski
59d91723a1 Add the UpdateIssuesComment function
The UpdateIssuesComment function handles referencing and manipulation of
issues from comments, issues, and pull requests
2018-07-06 08:04:33 -04:00
Keith Rutkowski
8c7a08fccf Factor out creation of reference comments 2018-07-06 08:04:33 -04:00
Keith Rutkowski
faf860e707 Rename {Update -> Commit}PullRequestAction to be more accurately named 2018-07-06 08:04:33 -04:00
Keith Rutkowski
f4d086b1f5 Fix code formatting 2018-07-06 08:04:33 -04:00
Keith Rutkowski
13df8f596e Add issue updating from commits being tracked by pull requests 2018-07-06 08:04:33 -04:00
Keith Rutkowski
58662ff1b6 Clean up {Merge,New}PullRequestAction and add UpdatePullRequestAction 2018-07-06 08:04:33 -04:00
Keith Rutkowski
8a9bd7a9b7 Add issue updating from commit messages in new pull request 2018-07-06 08:04:33 -04:00
Keith Rutkowski
abd1f1f6e1 Only change issue status when commits have been merged 2018-07-06 08:04:33 -04:00
Keith Rutkowski
8536f834e5 Factor out detection of reference, close, reopen keywords into a more reusable function 2018-07-06 08:04:33 -04:00
Keith Rutkowski
3d99ee30c1 Update issues when a pull request is merged 2018-07-06 08:04:33 -04:00
Lunny Xiao
1675fc4301 add git timeout settings docs (#4383) 2018-07-06 08:49:37 +03:00
techknowlogick
61b40520ba GPG verification docs (#4381)
* GPG verification docs

* update URL
2018-07-06 09:36:54 +08:00
techknowlogick
f1d6a1fffc
Add the ability to have built in themes in Gitea (#4198)
This makes it easier for user who want to theme but
don't have the ability to know how to customize templates
all that is required is a change in a config option

The reason why I chose the DEFAULT_THEME as variable,
as perhaps in the future we will allow users to chose their
theme whon logged in just like we do with languages
2018-07-05 17:25:04 -04:00
GiteaBot
28c1c90230 [skip ci] Updated translations via Crowdin 2018-07-05 20:42:15 +00:00
Jonas Franz
2a60e72fcd
Replace src with raw to fix image paths (#4377)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-07-05 22:36:45 +02:00
GiteaBot
cfb76cd99e [skip ci] Updated translations via Crowdin 2018-07-05 17:49:07 +00:00
Guido Diepen
7c943b1cad Implemented hover text showing user FullName (#4261)
For each action that is displayed in either the public activity overview
of a user, or in the dashboard overview, the link to the username is now
extended with a title attribute to show the FullName as hover text

Signed-off-by: Guido Diepen <site-github@guidodiepen.nl>
2018-07-05 19:48:18 +02:00
Lanre Adelowo
5bc8782d33 Don't display buttons if there are no system notifications (#4280)
* Don't display buttons if there are no notices

* remove redundant gt check
2018-07-05 17:35:42 +02:00
Nicolas Da Mutten
e07d3ad0fc Fixes repo membership check in API (#4341)
Untested, since I can't compile (yet).
2018-07-05 15:14:56 +08:00
Fluf
f035dcd4f2 Add Recaptcha functionality to Gitea (#4044) 2018-07-05 00:13:05 -04:00
Lauris BH
54fedd4070 Add default merge options when adding new repository (#4369) 2018-07-05 11:02:54 +08:00
GiteaBot
07063e3e11 [skip ci] Updated translations via Crowdin 2018-07-05 00:05:18 +00:00
Lauris BH
69e2ab1611 Allow administrator to create repository for any organization (#4368) 2018-07-05 01:51:02 +02:00
GiteaBot
4eae810d63 [skip ci] Updated translations via Crowdin 2018-07-04 22:53:06 +00:00
Lauris BH
4a8ee0b5cc
Check that repositories can only be migrated to own user or organizations (#4366)
* Repositories can only migrated to own user or organizations

* Add check for organization that user does not belong to

* Allow admin to migrate repositories for other users
2018-07-05 01:45:15 +03:00
Lunny Xiao
b46066f17c fix repository last updated time update when delete a user who watched the repo (#4363) 2018-07-05 00:47:05 +03:00
GiteaBot
95f0f62ea4 [skip ci] Updated translations via Crowdin 2018-07-04 20:24:23 +00:00
Antoine GIRARD
74f9f98f78 Simply remove tidb and deps (#3993) 2018-07-04 16:23:23 -04:00
Matthew Richardson
2e3475f02c Fix typos in i18n variable names. (#4080) 2018-07-04 19:43:21 +08:00
GiteaBot
df77ad31d5 [skip ci] Updated translations via Crowdin 2018-07-04 09:28:27 +00:00
techknowlogick
c3bbf43970 Fix docker build (#4358)
/app/gitea/gitea is the file, and /usr/local/bin is where the symlink will be located
2018-07-04 12:27:30 +03:00
GiteaBot
fc53f95f23 [skip ci] Updated translations via Crowdin 2018-07-04 00:45:44 +00:00
Tao Wang
823318bfbe Add missing path in the Docker app.ini template (#2181) 2018-07-03 20:44:46 -04:00
tarelda
5676f60cba Keep preseeded database password (#4284) 2018-07-03 20:09:55 -04:00
GiteaBot
3fed13b0ee [skip ci] Updated translations via Crowdin 2018-07-03 23:53:28 +00:00
cezar97
51ba3df5ff Add noreferrer to rel='noopener` for <a> tags (#4328) 2018-07-03 19:52:36 -04:00
ucodi
4b654ad17f Update notification icon (#4343) 2018-07-03 19:16:46 -04:00
Pofilo
5d1a6382b6 #4354 Fix translation (#4355) 2018-07-03 19:03:31 -04:00
Clar Charr
c71ee33057 Increase default TOTP secret size to 320 bits (#4287) 2018-07-03 18:10:35 -04:00
techknowlogick
9d4c1ddfa1
Dep upgrade mysql lib (#4161)
*  update gopkg file to add sql dep
2018-07-03 17:58:31 -04:00
Lauris Bukšis-Haberkorns
280ebcbf7c Update changelog
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-07-03 23:24:48 +03:00
GiteaBot
100a538622 [skip ci] Updated translations via Crowdin 2018-07-03 20:23:00 +00:00
Lauris Bukšis-Haberkorns
1c7f951534 Change 1.5.0 RC1 release date in changelog
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-07-03 23:21:44 +03:00
GiteaBot
a4dfe4b9b1 [skip ci] Updated translations via Crowdin 2018-07-03 19:58:30 +00:00
Lauris Bukšis-Haberkorns
5f52178421 Change 1.5.0 RC1 release date in changelog
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2018-07-03 22:57:59 +03:00
GiteaBot
83e72f17f6 [skip ci] Updated translations via Crowdin 2018-07-03 19:38:06 +00:00