Lunny Xiao
34fb9d68a5
Move AddTestPullRequestTask to pull service package from models ( #8324 )
...
* move AddTestPullRequestTask to pull service package from models
* fix fmt
5 years ago
Lunny Xiao
e3e44a59d0
Update migrated repositories' issues/comments/prs poster id if user has a github external user saved ( #7751 )
...
* update migrated issues/comments when login as github
* add get userid when migrating or login with github oauth2
* fix lint
* add migrations for repository service type
* fix build
* remove unnecessary dependencies on migrations
* add cron task to update migrations poster ids and fix posterid when migrating
* fix lint
* fix lint
* improve code
* fix lint
* improve code
* replace releases publish id to actual author id
* fix import
* fix bug
* fix lint
* fix rawdata definition
* fix some bugs
* fix error message
5 years ago
guillep2k
15809d81f7
Rewrite reference processing code in preparation for opening/closing from comment references ( #8261 )
...
* Add a markdown stripper for mentions and xrefs
* Improve comments
* Small code simplification
* Move reference code to modules/references
* Fix typo
* Make MarkdownStripper return [][]byte
* Implement preliminary keywords parsing
* Add FIXME comment
* Fix comment
* make fmt
* Fix permissions check
* Fix text assumptions
* Fix imports
* Fix lint, fmt
* Fix unused import
* Add missing export comment
* Bypass revive on implemented interface
* Move mdstripper into its own package
* Support alphanumeric patterns
* Refactor FindAllMentions
* Move mentions test to references
* Parse mentions from reference package
* Refactor code to implement renderizable references
* Fix typo
* Move patterns and tests to the references package
* Fix nil reference
* Preliminary rendering attempt of closing keywords
* Normalize names, comments, general tidy-up
* Add CSS style for action keywords
* Fix permission for admin and owner
* Fix golangci-lint
* Fix golangci-lint
5 years ago
Lunny Xiao
f2a3abc683
Move migrating repository from frontend to backend ( #6200 )
...
* move migrating to backend
* add loading image when migrating and fix tests
* fix format
* fix lint
* add redis task queue support and improve docs
* add redis vendor
* fix vet
* add database migrations and fix app.ini sample
* add comments for task section on app.ini.sample
* Update models/migrations/v84.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* Update models/repo.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
* move migrating to backend
* add loading image when migrating and fix tests
* fix fmt
* add redis task queue support and improve docs
* fix fixtures
* fix fixtures
* fix duplicate function on index.js
* fix tests
* rename repository statuses
* check if repository is being create when SSH request
* fix lint
* fix template
* some improvements
* fix template
* unified migrate options
* fix lint
* fix loading page
* refactor
* When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration
* fix js
* Update models/repo.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix tests
* rename ErrTaskIsNotExist to ErrTaskDoesNotExist
* delete release after add one on tests to make it run happy
* fix tests
* fix tests
* improve codes
* fix lint
* fix lint
* fix migrations
5 years ago
zeripath
5e759b60cc
Restore functionality for early gits ( #7775 )
...
* Change tests to make it possible to run TestGit with 1.7.2
* Make merge run on 1.7.2
* Fix tracking and staging branch name problem
* Ensure that git 1.7.2 works on tests
* ensure that there is no chance for conflicts
* Fix-up missing merge issues
* Final rm
* Ensure LFS filters run on the tests
* Do not sign commits from temp repo
* Restore tracking fetch change
* Apply suggestions from code review
* Update modules/repofiles/temp_repo.go
5 years ago
Lunny Xiao
46a12f196b
Move change issue title from models to issue service package ( #8456 )
...
* move change issue title from models to issue service package
* make the change less
* fix typo
5 years ago
guillep2k
df2c11a878
Ignore mentions for users with no access ( #8395 )
...
* Draft for ResolveMentionsByVisibility()
* Correct typo
* Resolve teams instead of orgs for mentions
* Create test for ResolveMentionsByVisibility
* Fix check for individual users and doer
* Test and fix team mentions
* Run all mentions through visibility filter
* Fix error check
* Simplify code, fix doer included in teams
* Simplify team id list build
5 years ago
Lunny Xiao
7ff783b732
Move mirror to a standalone package from models ( #7486 )
...
* move mirror to a standalone package
* fix mirror address in template
* fix tests
* fix lint
* fix comment
* fix tests
* fix tests
* fix vendor
* fix fmt
* fix lint
* remove wrong file submitted
* fix conflict
* remove unrelated changes
* fix go mod
* fix tests
* clean go mod
* make vendor work
* make vendor work
* fix tests
* remove duplicated test
5 years ago
Lunny Xiao
3249c0ccba
Extract actions on deletereleasebyid from models to release service ( #8219 )
...
* extract actions on deletereleasebyid from models to release service
* fix tests
5 years ago
Lunny Xiao
e6113000c5
Extract actions on new issue from models to services ( #8217 )
...
* extract actions on new issue from models to services
* improve code
* rename services/issues to services/issue
5 years ago
Elias Norberg
668d3d02aa
If no specific context is required for status check, require an overall success ( #8318 )
...
Signed-off-by: Elias Norberg <elias@aisle.se>
5 years ago
Lunny Xiao
eb11ca6847
Extract actions on new pull request from models to pulls service and move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull ( #8218 )
...
* extract actions on new pull request from models to pulls service
* improve code
* move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull
* fix fmt
* Rename pulls.go to pull.go
5 years ago
Lunny Xiao
061388379a
Move create issue comment to comments package ( #8212 )
...
* move create issue comment to comments package
* extract actions on update/delete comment from models to comment service
* fix lint
* fix lint
5 years ago
Daniel Fonseca de Lira
7cccada51e
Fix assets key on release webhook ( #8253 )
...
* Fix assets key on release webhook
* Fix assets key on release webhook
* Add message to log on AddReleaseAttachments failure
5 years ago
Lunny Xiao
5a438ee3c0
Move all mail related codes from models to services/mailer ( #7200 )
...
* move all mail related codes from models to modules/mailer
* fix lint
* use DBContext instead Engine
* use WithContext not WithEngine
* Use DBContext instead of Engine
* don't use defer when sess.Close()
* move DBContext to context.go and add some methods
* move mailer from modules/ to services
* fix lint
* fix tests
* fix fmt
* add gitea copyright
* fix tests
* don't expose db functions
* make code clear
* add DefaultDBContext
* fix build
* fix bug
5 years ago
Lunny Xiao
29454733b4
move some milestone functions to a standalone package ( #8213 )
5 years ago
Lunny Xiao
4959bf1c09
Move create release from models to a standalone package ( #7539 )
...
* move create release from models to a standalone package
* fix lint
* fix comment year
* fix lint
* fix lint
* fix package import name
* fix vendor
* fix go mod
* some refactors
* fix vendor
* use go1.12 make vendor
* fix vendor
5 years ago
Lunny Xiao
c03d75fbd5
Move git diff codes from models to services/gitdiff ( #7889 )
...
* move git diff codes from models to services/gitdiff
* fix template
* fix test
* fix template
5 years ago