Commit Graph

6550 Commits

Author SHA1 Message Date
krrutkow
f519972513
Merge 820a995d13 into 7be5935c55 2018-07-17 00:42:35 +00:00
Mahmoud Al-Qudsi
7be5935c55 Add BSDmakefile to prevent errors when make is called under FreeBSD (#4446)
The syntax of the gitea Makefile is not platform-agnostic and is
specific to the GNU version of `make`. BSD platforms such as FreeBSD
ship with bmake (BSD make) as their default `make` program; attempting
to compile gitea by simply executing `make` causes a wall of errors to
show as a result of syntax incompatible with BSD make.

If a file named `BSDmakefile` is present, `bmake` will give it
preference over a generic `Makefile`. This `BSDmakefile` is taken from
the BSD-licensed `gmake-proxy` project [0], which transparently proxies
all `make` commands to `gmake` (GNU make) on systems where `bmake` is
the default, and if `gmake` is not installed an error message is
displayed.

[0]: https://github.com/neosmart/gmake-proxy
2018-07-16 20:45:51 +02:00
kolaente
ef6813abc9 Issue due date api (#3890)
* Implemented basic api endpoint to manage deadlines

* Fixed checking for permissions

* Updating a deadline from the ui is now entirely done via the api

* cleanup

* Cosmetics

* fixed lint + fmt

* Added swagger model definition for deadline response

* Updated gitea-sdk

* Updated gitea-sdk

* More cleanup

* Generate swagger json

* Merge branch 'master' of https://github.com/go-gitea/gitea into issue-due-date-api

# Conflicts:
#	public/swagger.v1.json

* Fixed permission to update a deadline via api

* Re-added form to change a deadline

* Added client-side validation + not ignore error messages from the api

* Added locale for error message

* Merge branch 'master' of https://github.com/go-gitea/gitea

# Conflicts:
#	models/issue_comment.go

* Proper date validation

* Fixed indention

* moved css to css file

* added documentation for error codes

* after merge cleanup

* Added swagger description

* DO NOTHING BUT TRIGGER THAT F*CKIN CI SO IT PICKS UP THE LATEST COMMIT AS IT SHOULD

* DO NOTHING BUT TRIGGER THAT F*CKIN CI SO IT PICKS UP THE LATEST COMMIT AS IT SHOULD

* regenerated stylesheets
2018-07-16 14:43:00 +02:00
GiteaBot
55d9ddf24a [skip ci] Updated translations via Crowdin 2018-07-15 00:44:24 +00:00
Alexey Terentyev
ca474af3c6 Added front-end topics validation (#4316) 2018-07-14 20:43:32 -04:00
GiteaBot
8e103d3e76 [skip ci] Updated translations via Crowdin 2018-07-14 06:08:34 +00:00
techknowlogick
a7c5e58635 Clean up arc-green theme (#4443)
* Resolve some issues with Arc Green

* Fix editor styles

* zeebra stripes

* generate CSS file
2018-07-14 09:07:30 +03:00
GiteaBot
ca8c7bb2b5 [skip ci] Updated translations via Crowdin 2018-07-13 20:58:18 +00:00
Joel da Rosa
aa27cbf229 Locale for button Edit on protected branch (#4442) 2018-07-13 16:57:20 -04:00
GiteaBot
6813640d2f [skip ci] Updated translations via Crowdin 2018-07-13 15:22:00 +00:00
Lauris BH
e95417ea2c Fix column droping for MSSQL that need new transaction for that (#4440) 2018-07-13 11:20:40 -04:00
Lauris BH
659bc727bd
Fix query parameter name comment in issue API (#4421) 2018-07-12 16:40:41 +03:00
Thomas Boerger
e6b51200ab Final CSP header fix (#4432) 2018-07-12 19:48:33 +08:00
Lauris BH
a7f90905df
Fix drone git@next plugin Gitea version display when building tag (#4380) 2018-07-12 06:32:01 +03:00
Thomas Boerger
8afd500c48 Add missing font hosts to CSP header (#4429) 2018-07-11 19:24:06 -04:00
Thomas Boerger
8b21cdba78
Fix CSP header for docs (#4428) 2018-07-12 00:27:48 +02:00
Thomas Boerger
3e950ef112 Use correct site id for netlify (#4427) 2018-07-11 23:45:03 +02:00
silverwind
c55caeaf0c Update npm dependencies, regenerate CSS (#4415) 2018-07-11 10:54:28 -04:00
Thomas Boerger
d84490a0df Replaced docker docs with netlify deployment (#4420) 2018-07-11 16:43:33 +02:00
Lauris BH
c2ec38f9b7 Disable swagger validation while it is not fixed in upstream (#4423) 2018-07-11 10:03:52 -04:00
GiteaBot
61f4ad2fc5 [skip ci] Updated translations via Crowdin 2018-07-11 11:37:10 +00:00
Niclas Kroon
c9687c036d update TRANSLATORS (#4406) 2018-07-11 14:36:04 +03:00
GiteaBot
3e445cce06 [skip ci] Updated translations via Crowdin 2018-07-08 20:42:36 +00:00
BNolet
80169460ec Added question for Gitea hosted Gitea (#4397)
Currently some issues need to be resolved and features need to be implemented before we can move the Gitea development workflow to a Gitea instance. Many ask why Gitea isn't hosted on Gitea, now that's in the FAQ.
2018-07-08 22:41:31 +02:00
GiteaBot
efd202f40f [skip ci] Updated translations via Crowdin 2018-07-07 01:55:43 +00:00
techknowlogick
ab55ca7ebd
Add ability to delete a token (#4235)
Fix #4234
2018-07-06 21:54:30 -04:00
Keith Rutkowski
820a995d13 Change "x := int64(0)" statements to "var x int64" 2018-07-06 10:23:22 -04:00
Keith Rutkowski
da4bba50ef Move common status changing logic into a function 2018-07-06 10:22:43 -04:00
Keith Rutkowski
3be8911897 Change variable names from KeywordsFound* to Keyword* 2018-07-06 08:20:25 -04:00
Keith Rutkowski
6c1a73a06d Trigger MergePullRequestAction when PR is manually merged 2018-07-06 08:04:33 -04:00
Keith Rutkowski
7e6475ac1e Correct error message 2018-07-06 08:04:33 -04:00
Keith Rutkowski
e3ef3b5c7d Update TestCreateComment to check referenced issue 2018-07-06 08:04:33 -04:00
Keith Rutkowski
3b0c1240a5 Add test for updating issues from issues 2018-07-06 08:04:33 -04:00
Keith Rutkowski
c65d62825d Add test for referencing issues in comments 2018-07-06 08:04:33 -04:00
Keith Rutkowski
e26048b685 Improve code coverage of TestUpdateIssuesCommit 2018-07-06 08:04:33 -04:00
Keith Rutkowski
0b6e2cd8cc Applied suggested code changes
* better commented KeywordsFound bitmask constants
* populate issueKeywordsToFind variable at point of definition rather
than in init()
* add needed `xorm:"-"` statements to the fields that were added to
Comment
* also move calculation of uniqueID out of loop
2018-07-06 08:04:33 -04:00
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