gitea/models
John Olheiser 3f1c0841cb
Granular webhook events ()
* Initial work

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add PR reviews and API coverage

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Split up events

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add migration and locale

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Format

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Revert IsPull

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix comments

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix tests

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix PR reviews

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix issue_comment

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Make fmt

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Migrations

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Backwards compatible API

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix feishu

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Move session commit

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
..
fixtures Fix "access" fixtures and tests ()
migrations Granular webhook events ()
access.go API add/generalize pagination ()
access_test.go Fix "access" fixtures and tests ()
action.go Fix potential bugs ()
action_list.go refactor: reduce sql query in retrieveFeeds ()
action_test.go Restricted users ()
admin.go Use gitea forked macaron ()
admin_test.go Fix tests code to prevent some runtime errors ()
attachment.go Fix potential bugs ()
attachment_test.go Reading pull attachments should depend on read UnitTypePullRequests ()
branches.go Add require signed commit for protected branch ()
branches_test.go Add deleted_branch table fixture ()
commit_status.go API add/generalize pagination ()
commit_status_test.go Fix wrong hint when status checking is running on pull request view ()
consistency.go Auto-subscribe user to repository when they commit/tag to it ()
context.go Refactor repository check and sync functions ()
convert.go Move database settings from models to setting ()
error.go Various fixes in login sources ()
error_oauth2.go gofmt ()
external_login_user.go Migrate reviews when migrating repository from github ()
fixture_generation.go Move fixture generation to contrib and add test ()
fixture_test.go Move fixture generation to contrib and add test ()
gpg_key.go Show Signer in commit lists and add basic trust ()
gpg_key_test.go Display ui time with customize time location ()
helper.go Add reactions to issues/PR and comments ()
helper_directory.go Remove SavePatch and generate patches on the fly ()
helper_environment.go Move PushUpdateAddDeleteTags to repository module from models ()
issue.go issue search on my related repositories ()
issue_assignees.go Remove Unused Functions ()
issue_assignees_test.go Fix API Bug (fail on empty assignees) ()
issue_comment.go Fix potential bugs ()
issue_comment_list.go Fixed repo link in generated comment for cross repository dependency ()
issue_comment_test.go Pull request review/approval and comment on code ()
issue_dependency.go Display ui time with customize time location ()
issue_dependency_test.go Refactor comment ()
issue_label.go [Refactor] move APIFormat() of Issue and Label to convert package ()
issue_label_test.go [Refactor] move APIFormat() of Issue and Label to convert package ()
issue_list.go Add Approval Counts to pulls list ()
issue_list_test.go [API] Extend times API ()
issue_lock.go remove unused method and rename createcommentWithNoAction ()
issue_milestone.go Fix milestone API state parameter unhandled ()
issue_milestone_test.go Fix milestone API state parameter unhandled ()
issue_reaction.go API add/generalize pagination ()
issue_reaction_test.go Migrate reactions when migrating repository from github ()
issue_stopwatch.go API add/generalize pagination ()
issue_stopwatch_test.go Display ui time with customize time location ()
issue_test.go issue search on my related repositories ()
issue_tracked_time.go API add/generalize pagination ()
issue_tracked_time_test.go [API] Extend times API ()
issue_user.go Mail assignee when issue/pull request is assigned ()
issue_user_test.go Add "Update Branch" button to Pull Requests ()
issue_watch.go [BugFix] Avoid mailing explicit unwatched ()
issue_watch_test.go API add/generalize pagination ()
issue_xref.go remove unused method and rename createcommentWithNoAction ()
issue_xref_test.go Refactor comment ()
lfs.go Restricted users ()
lfs_lock.go Make repository management section handle lfs locks ()
list_options.go Fix wrong paging on org members ()
log.go Fix error log when loading issues caused by a xorm bug ()
login_source.go Add restricted user filter to LDAP authentication ()
main_test.go Unit tests for wiki routers ()
migrate.go Fix migration information update bug when linked github account ()
models.go Divide GetIssueStats query in smaller chunks ()
models_test.go Move database settings from models to setting ()
notification.go inform participants on UI too ()
notification_test.go [API] Add notification endpoint ()
oauth2.go OAuth2: add Yandex provider () ()
oauth2_application.go adds API endpoints to manage OAuth2 Application (list/create/delete) ()
oauth2_application_test.go OAuth2 Grant UI ()
org.go Ensure DeleteUser is not allowed to Delete Orgs and visa versa ()
org_team.go Add API branch protection endpoint ()
org_team_test.go API add/generalize pagination ()
org_test.go Ensure DeleteUser is not allowed to Delete Orgs and visa versa ()
pull.go Add Approval Counts to pulls list ()
pull_list.go API add/generalize pagination ()
pull_sign.go Display pull request head branch even the branch deleted or repository deleted ()
pull_test.go Display pull request head branch even the branch deleted or repository deleted ()
release.go Move PushUpdateAddDeleteTags to repository module from models ()
repo.go Delete dependencies when deleting a repository ()
repo_activity.go Add top author stats to activity page ()
repo_branch.go Move newbranch to standalone package ()
repo_collaboration.go Show Signer in commit lists and add basic trust ()
repo_collaboration_test.go API add/generalize pagination ()
repo_generate.go API add/generalize pagination ()
repo_generate_test.go Variable expansion in repository templates ()
repo_indexer.go Index code and stats only for non-empty repositories ()
repo_issue.go Add EnableTimetracking option to app settings ()
repo_language_stats.go Index code and stats only for non-empty repositories ()
repo_list.go Language statistics bar for repositories ()
repo_list_test.go API add/generalize pagination ()
repo_mirror.go Move some repository methods from models to modules/repository ()
repo_permission.go Restricted users ()
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 ()
repo_redirect.go Move repoWorkPool outside rename/transfer repository ()
repo_redirect_test.go Move repoWorkPool outside rename/transfer repository ()
repo_sign.go Sign: Handle ErrTwoFactorNotEnrolled correctly ()
repo_test.go Move create/fork repository from models to modules/repository ()
repo_unit.go Add setting to set default and global disabled repository units. ()
repo_watch.go Code Refactor of IssueWatch related things ()
repo_watch_test.go API add/generalize pagination ()
review.go Migrate reviews when migrating repository from github ()
review_test.go Branch protection: Possibility to not use whitelist but allow anyone with write access ()
ssh_key.go API add/generalize pagination ()
ssh_key_test.go Fix SSH2 conditonal in key parsing code ()
star.go API add/generalize pagination ()
star_test.go API add/generalize pagination ()
task.go Move create/fork repository from models to modules/repository ()
test_fixtures.go Testing: Update postgres sequences ()
token.go FIX Pagination of ListAccessTokens and GetIssueWatchers ()
token_test.go API add/generalize pagination ()
topic.go Update topics repo count when deleting repository ()
topic_test.go API add/generalize pagination ()
twofactor.go Display ui time with customize time location ()
u2f.go Display ui time with customize time location ()
u2f_test.go Override xorm type mapping for U2F counter ()
unit.go Add setting to set default and global disabled repository units. ()
unit_tests.go Fix SQLite concurrency problems by using BEGIN IMMEDIATE ()
update.go Remove Unused Functions ()
upload.go Use gitea forked macaron ()
user.go Add restricted user filter to LDAP authentication ()
user_follow.go Refactor session close as xorm already does everything needed internally ()
user_follow_test.go Move user_follow to separate file ()
user_heatmap.go Move database settings from models to setting ()
user_heatmap_test.go Restricted users ()
user_mail.go Admin page for managing user e-mail activation ()
user_mail_test.go Admin page for managing user e-mail activation ()
user_openid.go Fix SQL quoting ()
user_openid_test.go Add golangci ()
user_test.go Ensure DeleteUser is not allowed to Delete Orgs and visa versa ()
userlist.go API add/generalize pagination ()
userlist_test.go Team permission to create repository in organization ()
webhook.go Granular webhook events ()
webhook_test.go Granular webhook events ()
wiki.go Add owner_name column for table repository for maintaince reason ()
wiki_test.go Move wiki related funtions from models to services/wiki ()