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.
gitea/models/migrations
lengyuqu 078e2b2c39
Add support for corporate WeChat webhooks (#15910)
* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* Update templates/admin/hook_new.tmpl

Co-authored-by: a1012112796 <1012112796@qq.com>

* Update services/webhook/wechatwork.go

Co-authored-by: a1012112796 <1012112796@qq.com>

* 修善wechatwork

* 修善wechatwork

* fix

* Update locale_cs-CZ.ini

fix

* fix build

* fix

* fix build

* make webhooks.zh-cn.md

* delet unnecessary blank line

* delet unnecessary blank line

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* Update templates/admin/hook_new.tmpl

Co-authored-by: a1012112796 <1012112796@qq.com>

* Update services/webhook/wechatwork.go

Co-authored-by: a1012112796 <1012112796@qq.com>

* 修善wechatwork

* 修善wechatwork

* fix

* fix build

* fix

* fix build

* make webhooks.zh-cn.md

* delet unnecessary blank line

* delet unnecessary blank line

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix

* fix

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix wechat

* fix wechat

* fix wechat

* fix wechat

* Fix invalid params and typo of email templates (#16394)

Signed-off-by: Meano <meanocat@gmail.com>

* Add LRU mem cache implementation (#16226)

The current default memory cache implementation is unbounded in size and number of
objects cached. This is hardly ideal.

This PR proposes creating a TwoQueue LRU cache as the underlying cache for Gitea.
The cache is limited by the number of objects stored in the cache (rather than size)
for simplicity. The default number of objects is 50000 - which is perhaps too small
as most of our objects cached are going to be much less than 1kB.

It may be worth considering using a different LRU implementation that actively limits
sizes or avoids GC - however, this is just a beginning implementation.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* [skip ci] Updated translations via Crowdin

* Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (#16407)

* plugins/docker -> techknowlogick/drone-docker

* It is multi-arch

* docs: rewrite email setup (#16404)

* Add intro for both the docs page and mailer methods
  * Fix numbering level in SMTP section
  * Recommends implicit TLS

Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>

* Validate Issue Index before querying DB (#16406)

* Fix external renderer (#16401)

* fix external renderer

* use GBackground context as fallback

* no fallback, return error

Co-authored-by: Lauris BH <lauris@nix.lv>

* Add checkbox to delete pull branch after successful merge (#16049)

* Add checkbox to delete pull branch after successful merge

* Omit DeleteBranchAfterMerge field in json

* Log a warning instead of error when PR head branch deleted

* Add DefaultDeleteBranchAfterMerge to PullRequestConfig

* Add support for delete_branch_after_merge via API

* Fix for API: the branch should be deleted from the HEAD repo

If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo

* Don't delegate to CleanupBranch, only reuse branch deletion code

CleanupBranch contains too much logic that has already been performed by the Merge

* Reuse gitrepo in MergePullRequest

Co-authored-by: Andrew Thornton <art27@cantab.net>

* [skip ci] Updated translations via Crowdin

* Detect encoding changes while parsing diff (#16330)

* Detect encoding changes while parsing diff

* Let branch/tag name be a valid ref to get CI status (#16400)

* fix #16384#

* refactor: move shared helper func to utils package

* extend Tests

* use ctx.Repo.GitRepo if not nil

* fix

* fix

* 企业微信webhook

* 企业微信webhook

* 企业微信webhook

* fix build

* fix build

* Apply suggestions from code review

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: myheavily <myheavily>
Co-authored-by: zhaoxin <gitea@fake.local>
Co-authored-by: Meano <Meano@foxmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: GiteaBot <teabot@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Bagas Sanjaya <bagasdotme@gmail.com>
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Jimmy Praet <jimmy.praet@telenet.be>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
..
fixtures Create Proper Migration Tests (#15116) 4 years ago
migrations.go Add option to provide signature for a token to verify key ownership (#14054) 4 years ago
migrations_test.go Let package git depend on setting but not opposite (#15241) 4 years ago
testlogger_test.go Create Proper Migration Tests (#15116) 4 years ago
v70.go chore(models): rewrite code format. (#14754) 4 years ago
v71.go Use single shared random string generation function (#15741) 4 years ago
v72.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v73.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v74.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v75.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v76.go chore(models): rewrite code format. (#14754) 4 years ago
v77.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v78.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v79.go chore(models): rewrite code format. (#14754) 4 years ago
v80.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v81.go Upgrade xorm to v1.0.0 (#10646) 5 years ago
v82.go Migrations (v82,v96,v99,v136) remove dependencies (#12286) 5 years ago
v83.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v84.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v85.go Use single shared random string generation function (#15741) 4 years ago
v86.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v87.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v88.go chore(models): rewrite code format. (#14754) 4 years ago
v89.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v90.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v91.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v92.go chore(models): rewrite code format. (#14754) 4 years ago
v93.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v94.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v95.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v96.go chore(models): rewrite code format. (#14754) 4 years ago
v97.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v98.go Upgrade xorm to v0.8.0 (#8536) 5 years ago
v99.go Migrations (v82,v96,v99,v136) remove dependencies (#12286) 5 years ago
v100.go chore(models): rewrite code format. (#14754) 4 years ago
v101.go Allow more than 255 characters for tokens in external_login_user table (#8554) 5 years ago
v102.go Use transaction in V102 migration (#12395) 5 years ago
v103.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 5 years ago
v104.go chore(models): rewrite code format. (#14754) 4 years ago
v105.go chore(models): rewrite code format. (#14754) 4 years ago
v106.go Auto-subscribe user to repository when they commit/tag to it (#7657) 5 years ago
v107.go chore(models): rewrite code format. (#14754) 4 years ago
v108.go Improve notification (#8835) 5 years ago
v109.go Team permission to create repository in organization (#8312) 5 years ago
v110.go Upgrade xorm to v1.0.0 (#10646) 5 years ago
v111.go Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
v112.go Add a storage layer for attachments (#11387) 5 years ago
v113.go Change target branch for pull request (#6488) 5 years ago
v114.go chore(models): rewrite code format. (#14754) 4 years ago
v115.go chore(models): rewrite code format. (#14754) 4 years ago
v116.go chore(models): rewrite code format. (#14754) 4 years ago
v117.go Add branch protection option to block merge on requested changes. (#9592) 5 years ago
v118.go Mark PR reviews as stale at push and allow to dismiss stale approvals (#9532) 5 years ago
v119.go Refactor: Remove Dependencys from Migration v112-v119 (#11811) 5 years ago
v120.go Add owner_name column for table repository for maintaince reason (#9717) 5 years ago
v121.go Restricted users (#6274) 5 years ago
v122.go chore(models): rewrite code format. (#14754) 4 years ago
v123.go Migrate reactions when migrating repository from github (#9599) 5 years ago
v124.go chore(models): rewrite code format. (#14754) 4 years ago
v125.go Migrate reviews when migrating repository from github (#9463) 5 years ago
v126.go Update topics repo count when deleting repository (#10051) 5 years ago
v127.go Language statistics bar for repositories (#8037) 5 years ago
v128.go chore(models): rewrite code format. (#14754) 4 years ago
v129.go chore(models): rewrite code format. (#14754) 4 years ago
v130.go chore(models): rewrite code format. (#14754) 4 years ago
v131.go System-wide webhooks (#10546) 5 years ago
v132.go Allow to set protected file patterns that can not be changed under no conditions (#10806) 5 years ago
v133.go make avatar lookup occur at image request (#10540) 5 years ago
v134.go chore(models): rewrite code format. (#14754) 4 years ago
v135.go Add Organization Wide Labels (#10814) 5 years ago
v136.go chore(models): rewrite code format. (#14754) 4 years ago
v137.go Prevent merge of outdated PRs on protected branches (#11012) 5 years ago
v138.go Add a way to mark Conversation (code comment) resolved (#11037) 5 years ago
v139.go Fix issue ref migration (#11419) 5 years ago
v140.go Change language statistics to save size instead of percentage (#11681) 5 years ago
v141.go Fix migration v141 (#14387) 4 years ago
v142.go Add migration to set IsArchived false if it is null (#11853) 5 years ago
v143.go Decrease the num_stars when deleting a repo (#11954) 5 years ago
v144.go chore(models): rewrite code format. (#14754) 4 years ago
v145.go Fix Migration 145 on MSSQL if varchar is changed to nvarchar (#12445) 5 years ago
v146.go chore(models): rewrite code format. (#14754) 4 years ago
v147.go Fix various documentation, user-facing, and source comment typos (#16367) 4 years ago
v148.go [BugFix] Fix comment broken issue ref dependence (#12651) 4 years ago
v149.go Add Created & Updated to Milestone (#12662) 4 years ago
v150.go Add Primary Key to Topic and RepoTopic (#12639) 4 years ago
v151.go Add migration for password algorithm change (#12784) 4 years ago
v152.go Add configurable Trust Models (#11712) 4 years ago
v153.go Add team support for review request (#12039) 4 years ago
v154.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
v155.go [Enhancement] Allow admin to merge pr with protected file changes (#12078) 4 years ago
v156.go Tagger can be empty, as can Commit and Author - tolerate this (#15835) 4 years ago
v157.go chore(models): rewrite code format. (#14754) 4 years ago
v158.go chore(models): rewrite code format. (#14754) 4 years ago
v159.go Include OriginalAuthor in Reaction constraint (#13505) 4 years ago
v160.go Add block on official review requests branch protection (#13705) 4 years ago
v161.go Add support for corporate WeChat webhooks (#15910) 4 years ago
v162.go Add support for corporate WeChat webhooks (#15910) 4 years ago
v163.go Change topic name size from 25 to 50 (#14150) 4 years ago
v164.go Minimal OpenID Connect implementation (#14139) 4 years ago
v165.go Fix wrong type on hooktask to convert typ from char(16) to varchar(16) (#14148) 4 years ago
v166.go Remove unused commit (#14741) 4 years ago
v167.go Redirect on changed user and org name (#11649) 4 years ago
v168.go noop (#14521) 4 years ago
v169.go Use OldRef instead of CommitSHA for DeleteBranch comments (#14604) 4 years ago
v170.go Add dismiss review feature (#12674) 4 years ago
v171.go Add v171 (addSortingColToProjectBoard) migration for #14634 (#14652) 4 years ago
v172.go v172 migration adds created_unix field instead of expiry (#15458) 4 years ago
v173.go Add UI to delete tracked times (#14100) 4 years ago
v174.go Delete Labels & IssueLabels on Repo Delete too (#15039) 4 years ago
v175.go Fix postgres ID sequences broken by recreate-table (#15015) 4 years ago
v176.go Create Proper Migration Tests (#15116) 4 years ago
v176_test.go Create Proper Migration Tests (#15116) 4 years ago
v177.go Create Proper Migration Tests (#15116) 4 years ago
v177_test.go Create Proper Migration Tests (#15116) 4 years ago
v178.go Add LFS Migration and Mirror (#14726) 4 years ago
v179.go OAuth2 auto-register (#5123) 4 years ago
v180.go v180 migration should be standalone (#16151) 4 years ago
v181.go Rework repository archive (#14723) 4 years ago
v181_test.go Always store primary email address into email_address table and also the state (#15956) 4 years ago
v182.go Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 4 years ago
v182_test.go Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 4 years ago
v183.go Add push to remote mirror repository (#15157) 4 years ago
v184.go Add Status Updates whilst Gitea migrations are occurring (#15076) 4 years ago
v185.go Rework repository archive (#14723) 4 years ago
v186.go Add tag protection (#15629) 4 years ago
v187.go Refactor Webhook + Add X-Hub-Signature (#16176) 4 years ago
v188.go Add option to provide signature for a token to verify key ownership (#14054) 4 years ago