1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-24 15:45:45 +08:00
Commit Graph

21 Commits

Author SHA1 Message Date
mrsdizzie
b45f9260bf Fix regex for issues in commit messages () ()
* Fix regex for issues in commit messages

Use same regex as markup for matching in commits.

Fixes 

* make fmt
2019-07-14 21:05:59 +01:00
zeripath
94ceaf1c0c Allow colon between fixing word and issue ()
* Allow colon between fixing word and issue

* update test
2019-06-15 00:00:32 -04:00
mrsdizzie
caba2829ef Improve issue reference on commit ()
* Improve issue reference on commit

Allow commits to properly reference issues in other repositories and also to
close/reopen those issues if user has code permission. Should match
Github behavior described here: https://help.github.com/en/articles/closing-issues-using-keywords

Fixes 6664

* Fix missing return

* Match user/repo directly in regex
2019-05-01 19:21:05 +03:00
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
* move code.gitea.io/git to code.gitea.io/gitea/modules/git

* fix imports

* fix fmt

* fix misspell

* remove wrong tests data

* fix unit tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* enable Debug to trace the failure tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* comment commit count tests since git clone depth is 50

* fix tests

* update from code.gitea.io/git

* revert change to makefile
2019-03-27 17:33:00 +08:00
Lanre Adelowo
9d8178b3ac Add option to close issues via commit on a non master branch ()
* fixes 

* add tests to make sure config option is respected

* use already defined struct

* - use migration to make the flag repo wide not for the entire gitea instance
Also note that the config value can still be set so as to be able to control the value for new repositories that are to be created

- fix copy/paste error in copyright header year and rearrange import

- use repo config instead of server config value to determine if a commit should close an issue

- update testsuite

* use global config only when creating a new repository

* allow repo admin toggle feature via UI

* fix typo and improve testcase

* fix fixtures

* add DEFAULT prefix to config value

* fix test
2019-02-10 21:27:19 +02:00
Harshit Bansal
9f476b8d1e Don't close issues via commits on non-default branch. ()
Adds a small check to close the issues only if the referencing commits
are on the default branch.

Fixes: .
2019-01-04 11:22:58 +02:00
Bo-Yi Wu
78b54b49fa
fix: Add feed for organization ()
* feat: Add feed for organization

* fix: testing

* fix: testing

* fix: testing

* fix: testing
2018-03-03 13:21:16 +08:00
Ethan Koenig
f48680888c Remove IsOwner, NumTeams from OrgUser () 2018-01-08 09:48:37 +02:00
Ethan Koenig
3163abedd6 Fix ref parsing in commit messages () 2017-12-03 10:20:12 +08:00
Ethan Koenig
91f3d77ceb Unit tests for wiki routers () 2017-11-30 17:52:15 +02:00
harry
81d1e54a49 Use identicon image for default gravatar. ()
* Use identicon image for default gravatar.

* Fixed tests.
2017-10-23 03:50:07 -05:00
Ethan Koenig
aa962deec0 Replace deprecated Id method with ID () 2017-10-05 07:43:04 +03:00
David Schneiderbauer
1eedd983ea Complete push webhooks ()
* implemented missing 'delete' push webhooks

moreover created ActionDeleteBranch and ActionDeleteTag

* add CommitRepoAction tests for tag/branch creation/deletion

* fixed error where push webhook not called if is new branch or tag
removed unnecessary code

* moved prepare unit test environment into separate method to be used across unit tests

* add missing if clause in pushUpdate

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
2017-09-21 10:43:26 +03:00
Morlinest
8e61823ec4 Fix tests code to prevent some runtime errors ()
* Fix tests code to prevent some runtime errors

* Reduce nesting
2017-08-28 12:17:45 +03:00
Lauris BH
b639fa1648 Ignore invalid issue numbers in commit messages. Fixes () 2017-07-12 22:35:47 -05:00
Jonas Franz
441986a473 Fix "Dashboard shows deleted comments" () 2017-06-25 20:20:29 +02:00
Ethan Koenig
4e5ee2b67a Fix user profile activity feed ()
* Fix user profile activity feed

* gofmt, and avoid overlapping database connections
2017-06-02 08:42:25 +08:00
Ethan Koenig
0c332f0480 Fix activity feed ()
* Fix activity feed

Preserve actions after user/repo name change

* Add missing comment

* Fix migration, and remove fields completely

* Tests
2017-05-26 09:38:18 +08:00
Ethan Koenig
4b286f282a Consistency checks for action unit tests () 2017-02-28 09:42:10 +08:00
Ethan Koenig
8093b3372e Less boilerplate in models/ unit tests () 2017-01-25 10:49:51 +08:00
Ethan Koenig
4b23e6a694 Unit tests for models/action () 2017-01-09 11:08:36 +08:00