summaryrefslogtreecommitdiffstats
path: root/models/action_test.go
Commit message (Collapse)AuthorAgeFilesLines
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add option to close issues via commit on a non master branch (#5992)Lanre Adelowo2019-02-101-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixes #5957 * 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
* Don't close issues via commits on non-default branch. (#5622)Harshit Bansal2019-01-041-1/+28
| | | | | | | | Adds a small check to close the issues only if the referencing commits are on the default branch. Fixes: #2314.
* fix: Add feed for organization (#3594)Bo-Yi Wu2018-03-031-0/+1
| | | | | | | | | | | | * feat: Add feed for organization * fix: testing * fix: testing * fix: testing * fix: testing
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-081-1/+1
|
* Fix ref parsing in commit messages (#3067)Ethan Koenig2017-12-031-0/+30
|
* Unit tests for wiki routers (#3022)Ethan Koenig2017-11-301-1/+1
|
* Use identicon image for default gravatar. (#2767)harry2017-10-231-2/+2
| | | | | | * Use identicon image for default gravatar. * Fixed tests.
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-2/+2
|
* Complete push webhooks (#2530)David Schneiderbauer2017-09-211-41/+103
| | | | | | | | | | | | | | | | | * 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>
* Fix tests code to prevent some runtime errors (#2381)Morlinest2017-08-281-21/+25
| | | | | | * Fix tests code to prevent some runtime errors * Reduce nesting
* Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150)Lauris BH2017-07-121-1/+1
|
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-251-0/+3
|
* Fix user profile activity feed (#1848)Ethan Koenig2017-06-021-12/+33
| | | | | | * Fix user profile activity feed * gofmt, and avoid overlapping database connections
* Fix activity feed (#1779)Ethan Koenig2017-05-261-48/+44
| | | | | | | | | | | | * Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
* Consistency checks for action unit tests (#1079)Ethan Koenig2017-02-281-3/+16
|
* Less boilerplate in models/ unit tests (#725)Ethan Koenig2017-01-251-32/+16
|
* Unit tests for models/action (#619)Ethan Koenig2017-01-091-0/+340