You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
renothing cbf231a675 fix wrong email when use gitea as OAuth2 provider (#7640)
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.

this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
5 years ago
..
fixtures Add commit statuses reports on pull request view (#6845) 5 years ago
migrations Display original author and URL information when showing migrated issues/comments (#7352) 5 years ago
access.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
access_test.go Fixed ineffectual assignments in tests (#7553) 5 years ago
action.go Removed unnecessary conversions (#7557) 5 years ago
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 6 years ago
action_test.go Fix regex for issues in commit messages (#7444) 5 years ago
admin.go Only warn on errors in deleting LFS orphaned files during repo deletion (#7213) 5 years ago
admin_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
attachment.go Move sdk structs to modules/structs (#6905) 5 years ago
attachment_test.go fix upload attachments (#6481) 5 years ago
branches.go Fix panic on push at #7611 (#7615) 5 years ago
branches_test.go Add deleted_branch table fixture (#2832) 7 years ago
commit_status.go Fix #7136: Add paging and extend API GetCommitStatuses (#7141) 5 years ago
commit_status_test.go Fix #7136: Add paging and extend API GetCommitStatuses (#7141) 5 years ago
consistency.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
convert.go Add command to convert mysql database from utf8 to utf8mb4 (#7144) 5 years ago
error.go Add error for fork already existing (#7185) 5 years ago
error_oauth2.go gofmt (#1662) 7 years ago
external_login_user.go Add primary key and index to external login user table (#1656) 7 years ago
git_diff.go Fixed ineffectual assignments (#7555) 5 years ago
git_diff_test.go Make diff line-marker non-selectable (#7279) 5 years ago
gpg_key.go Fix wrong GPG expire date (#6643) 5 years ago
gpg_key_test.go Fix wrong GPG expire date (#6643) 5 years ago
graph.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
graph_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
helper.go Add reactions to issues/PR and comments (#2856) 7 years ago
helper_directory.go Remove local clones & make hooks run on merge/edit/upload (#6672) 5 years ago
helper_environment.go Fix bug create/edit wiki pages when code master branch protected (#7580) 5 years ago
issue.go Fix repository's pull request count error (#7518) 5 years ago
issue_assignees.go Move sdk structs to modules/structs (#6905) 5 years ago
issue_assignees_test.go refactor: append, build variable and type switch (#4940) 5 years ago
issue_comment.go Fix repository's pull request count error (#7518) 5 years ago
issue_comment_list.go Add golangci (#6418) 5 years ago
issue_comment_test.go Pull request review/approval and comment on code (#3748) 6 years ago
issue_dependency.go fix sqlite lock (#5184) 6 years ago
issue_dependency_test.go Fix an error while adding a dependency via UI. (#5862) 5 years ago
issue_label.go Add missing description of label on API (#7159) 5 years ago
issue_label_test.go Move sdk structs to modules/structs (#6905) 5 years ago
issue_list.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_list_test.go Shows total tracked time in issue and milestone list (#3341) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_mail.go Various fixes for issue mail notifications (#7165) 5 years ago
issue_milestone.go Add state param to milestone listing API (#7131) 5 years ago
issue_milestone_test.go Add state param to milestone listing API (#7131) 5 years ago
issue_reaction.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_reaction_test.go Ensure valid git author names passed in signatures (#5774) 6 years ago
issue_stopwatch.go Improve performance of dashboard (#4977) 6 years ago
issue_stopwatch_test.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
issue_test.go Add more tests and docs for issue indexer, add db indexer type for searching from database (#6144) 5 years ago
issue_tracked_time.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_tracked_time_test.go Feature: Timetracking (#2211) 7 years ago
issue_user.go Fix sqlite deadlock when assigning to a PR (#5640) 6 years ago
issue_user_test.go Multiple assignees (#3705) 6 years ago
issue_watch.go Update xorm to latest version and fix correct `user` table referencing in sql (#4473) 6 years ago
issue_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
lfs.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
lfs_lock.go Move sdk structs to modules/structs (#6905) 5 years ago
log.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
login_source.go Add additional password hash algorithms (closes #5859) (#6023) 5 years ago
mail.go Include thread related headers in issue/coment mail (#7484) 5 years ago
mail_test.go Include thread related headers in issue/coment mail (#7484) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
migrate.go Use batch insert on migrating repository to make the process faster (#7050) 5 years ago
models.go Detect migrating batch size (#7353) 5 years ago
models_sqlite.go fix dump table name error and add some test for dump database (#6394) 5 years ago
models_test.go fix dump table name error and add some test for dump database (#6394) 5 years ago
notification.go Add golangci (#6418) 5 years ago
notification_test.go Add 'mark all read' option to notifications (#3097) 7 years ago
oauth2.go Add golangci (#6418) 5 years ago
oauth2_application.go Add golangci (#6418) 5 years ago
oauth2_application_test.go OAuth2 Grant UI (#6625) 5 years ago
org.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
org_team.go Add golangci (#6418) 5 years ago
org_team_test.go api: Add missing GET teams endpoints (#5382) 6 years ago
org_test.go Add golangci (#6418) 5 years ago
pull.go only return head: null if source branch was deleted (#6705) 5 years ago
pull_test.go only return head: null if source branch was deleted (#6705) 5 years ago
release.go Move models.PushUpdate to repofiles.PushUpdate (#7485) 5 years ago
release_test.go Added missing error checks in tests (#7554) 5 years ago
repo.go Fix repository's pull request count error (#7518) 5 years ago
repo_activity.go Add golangci (#6418) 5 years ago
repo_branch.go Add golangci (#6418) 5 years ago
repo_collaboration.go Add golangci (#6418) 5 years ago
repo_collaboration_test.go Unit tests for models/repo_collaboration (#1032) 7 years ago
repo_indexer.go Change UpdateRepoIndex api to include watchers (#7012) 5 years ago
repo_issue.go Add EnableTimetracking option to app settings (#3719) 6 years ago
repo_list.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
repo_list_test.go SearchRepositoryByName improvements and unification (#6897) 5 years ago
repo_mirror.go Move status table to cron package (#7370) 5 years ago
repo_permission.go Removed unnecessary conversions (#7557) 5 years ago
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 5 years ago
repo_redirect.go Add golangci (#6418) 5 years ago
repo_redirect_test.go Unit tests for repo redirects (#961) 7 years ago
repo_tag.go Fixes #2738 - Adds the /git/tags API endpoint (#7138) 5 years ago
repo_test.go Added missing error checks in tests (#7554) 5 years ago
repo_unit.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
repo_watch.go Fix sqlite deadlock when assigning to a PR (#5640) 6 years ago
repo_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
review.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
review_test.go Show review summary in pull requests (#5132) 6 years ago
ssh_key.go Make PKCS8, PEM and SSH2 keys work (#7600) 5 years ago
ssh_key_test.go Make PKCS8, PEM and SSH2 keys work (#7600) 5 years ago
star.go Ensure that sessions are passed into queries that could use the database to prevent deadlocks (#5718) 6 years ago
star_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
test_fixtures.go Increase the retry limit to 20 times and the interval to 200ms (#5134) 6 years ago
token.go Hash App token (#6724) 5 years ago
token_test.go Add golangci (#6418) 5 years ago
topic.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
topic_test.go feat(repo): support search repository by topic name (#4505) 6 years ago
twofactor.go Fix double-generation of scratch token (#6832) (#6833) 5 years ago
u2f.go fix u2f registrationlist ToRegistrations() method (#6980) 5 years ago
u2f_test.go Override xorm type mapping for U2F counter (#6232) 5 years ago
unit.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 5 years ago
unit_tests.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
update.go Move models.PushUpdate to repofiles.PushUpdate (#7485) 5 years ago
update_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
upload.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
user.go fix wrong email when use gitea as OAuth2 provider (#7640) 5 years ago
user_follow.go Refactor session close as xorm already does everything needed internally (#2020) 7 years ago
user_follow_test.go Move user_follow to separate file (#1210) 7 years ago
user_heatmap.go Only count users own actions for heatmap contributions (#5647) 6 years ago
user_heatmap_test.go Fix JSON result of empty array (#5154) 6 years ago
user_mail.go Add golangci (#6418) 5 years ago
user_mail_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
user_openid.go Fix SQL quoting (#5117) 6 years ago
user_openid_test.go Add golangci (#6418) 5 years ago
user_test.go Add additional password hash algorithms (closes #5859) (#6023) 5 years ago
webhook.go Add golangci (#6418) 5 years ago
webhook_dingtalk.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_discord.go Add golangci (#6418) 5 years ago
webhook_msteams.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_slack.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_telegram.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_test.go Move sdk structs to modules/structs (#6905) 5 years ago
wiki.go Fix bug create/edit wiki pages when code master branch protected (#7580) 5 years ago
wiki_test.go Remove local clones & make hooks run on merge/edit/upload (#6672) 5 years ago