gitea/models
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
2019-10-13 23:29:10 +01:00
..
fixtures Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
migrations Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
access.go
access_test.go
action.go Rewrite reference processing code in preparation for opening/closing from comment references (#8261) 2019-10-13 23:29:10 +01:00
action_list.go
action_test.go Rewrite reference processing code in preparation for opening/closing from comment references (#8261) 2019-10-13 23:29:10 +01:00
admin.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
admin_test.go
attachment.go Extract actions on deletereleasebyid from models to release service (#8219) 2019-10-01 00:10:00 +08:00
attachment_test.go
branches.go Allow users with explicit read access to give approvals (#8382) 2019-10-08 15:18:17 -04:00
branches_test.go
commit_status.go Refuse merge until all required status checks success (#7481) 2019-09-18 08:39:45 +03:00
commit_status_test.go
consistency.go
context.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00
convert.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
error.go Transaction-aware retry create issue to cope with duplicate keys (#8307) 2019-10-03 00:28:30 +02:00
error_oauth2.go
external_login_user.go Add primary key and index to external login user table (#1656) 2017-05-02 16:41:44 +08:00
gpg_key.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
gpg_key_test.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
graph.go
graph_test.go
helper.go
helper_directory.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
helper_environment.go
issue.go Move change issue title from models to issue service package (#8456) 2019-10-11 14:44:43 +08:00
issue_assignees.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
issue_assignees_test.go
issue_comment.go Rewrite reference processing code in preparation for opening/closing from comment references (#8261) 2019-10-13 23:29:10 +01:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_dependency_test.go Fix an error while adding a dependency via UI. (#5862) 2019-01-27 13:31:40 +02:00
issue_label.go Fix label count (#8267) 2019-09-24 21:22:39 +08:00
issue_label_test.go Fix label count (#8267) 2019-09-24 21:22:39 +08:00
issue_list.go
issue_list_test.go
issue_lock.go Move change issue title from models to issue service package (#8456) 2019-10-11 14:44:43 +08:00
issue_milestone.go Update milestone issues numbers when save milestone and other code improvements (#8411) 2019-10-08 00:44:58 +03:00
issue_milestone_test.go Fix milestone num_issues (#8221) 2019-10-06 17:26:19 -04:00
issue_reaction.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_reaction_test.go
issue_stopwatch.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_stopwatch_test.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_test.go Move change issue title from models to issue service package (#8456) 2019-10-11 14:44:43 +08:00
issue_tracked_time.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_tracked_time_test.go
issue_user.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00
issue_user_test.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00
issue_watch.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_watch_test.go
issue_xref.go Rewrite reference processing code in preparation for opening/closing from comment references (#8261) 2019-10-13 23:29:10 +01:00
lfs.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
lfs_lock.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
log.go
login_source.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
main_test.go
migrate.go
models.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
models_test.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
notification.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
notification_test.go
oauth2.go migrate gplus to google oauth2 provider (#7885) 2019-09-14 12:02:39 +02:00
oauth2_application.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
oauth2_application_test.go
org.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
org_team.go Ignore mentions for users with no access (#8395) 2019-10-10 19:45:11 +03:00
org_team_test.go
org_test.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
pull.go Transaction-aware retry create issue to cope with duplicate keys (#8307) 2019-10-03 00:28:30 +02:00
pull_test.go
release.go Add extra user information when migrating release (#8331) 2019-10-05 14:09:27 +03:00
repo.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
repo_activity.go
repo_branch.go
repo_collaboration.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
repo_collaboration_test.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
repo_indexer.go Restrict repository indexing by glob match (#7767) 2019-09-11 20:26:28 +03:00
repo_issue.go Add EnableTimetracking option to app settings (#3719) 2018-04-09 23:15:32 +08:00
repo_list.go Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
repo_list_test.go Restrict repository indexing by glob match (#7767) 2019-09-11 20:26:28 +03:00
repo_mirror.go Move mirror to a standalone package from models (#7486) 2019-10-01 21:40:17 +08:00
repo_permission.go
repo_permission_test.go
repo_redirect.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo_redirect_test.go
repo_tag.go
repo_test.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo_unit.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
repo_watch.go
repo_watch_test.go
review.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
review_test.go
ssh_key.go Fixes #8369: Create .ssh dir as necessary (#8486) 2019-10-13 17:35:19 +03:00
ssh_key_test.go
star.go
star_test.go
task.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
test_fixtures.go
token.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
token_test.go
topic.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
topic_test.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
twofactor.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
u2f.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
u2f_test.go
unit.go
unit_tests.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
update.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
update_test.go
upload.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
user.go Revert "Fix issues/pr list broken when there are many repositories (#8409)" (#8427) 2019-10-08 20:55:16 +03:00
user_follow.go
user_follow_test.go
user_heatmap.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
user_heatmap_test.go
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go Revert "Fix issues/pr list broken when there are many repositories (#8409)" (#8427) 2019-10-08 20:55:16 +03:00
userlist.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
userlist_test.go
webhook.go Fix webhooks to use proxy from environment (#8116) 2019-09-10 00:21:07 +08:00
webhook_dingtalk.go
webhook_discord.go
webhook_msteams.go MS Teams webhook misses commit messages (#8209) 2019-09-17 15:56:29 -04:00
webhook_slack.go
webhook_telegram.go
webhook_test.go Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
wiki.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
wiki_test.go