aboutsummaryrefslogtreecommitdiffstats
path: root/models
Commit message (Collapse)AuthorAgeFilesLines
* Add Close() method to gogitRepository (#8901) (#8958)zeripath2019-11-1316-24/+34
| | | | | | | | | | | Backport #8901 - Adjusted slightly for 1.9 In investigating #7947 it has become clear that the storage component of go-git repositories needs closing. This PR adds this Close function and adds the Close functions as necessary. In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files. Fixes #7947
* [Backport] [Fix] milestone close timestamp (#8728) (#8731)65432019-10-291-0/+5
| | | | | | | | | | * [Fix] milestone close timestamp (#8728) * BugFix: Update closed_date_unix colum on milestone table on close * use go standart time lib * make backport work!
* make call createMilestoneComment on newIssue func (#8678) (#8682)jaqra2019-10-251-0/+4
| | | | | * make call createMilestoneComment on newIssue func * make OldMilestoneID 0 instead of -1
* Update heatmap fixtures to restore tests (#8615) (#8617)zeripath2019-10-212-3/+3
| | | | * Update heatmap fixtures to restore tests * Add hint to check the fixture age on fail
* fix bug pull request files will be broken if head repo was transfered to ↵Lunny Xiao2019-10-181-0/+7
| | | | another user or orgnization (#8571)
* Fixes #8369: Create .ssh dir as necessary (#8486) (#8489)zeripath2019-10-131-0/+24
| | | | | | | | | * Ensure .ssh dir exists before rewriting public keys * Ensure .ssh dir exists before appending to authorized_keys * Log the error because it would be useful to know where it is trying to MkdirAll * Only try to create RootPath if it's not empty
* Backport: Ignore mentions for users with no access (#8395) (#8484)guillep2k2019-10-135-40/+175
| | | | | | * Ignore mentions for users with no access * Fix fmt
* Restore functionality for early gits (#7775) (#8476)zeripath2019-10-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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 * Apply suggestions from code review * Update modules/repofiles/temp_repo.go
* Add check for empty set when dropping indexes during migration (#8475)guillep2k2019-10-121-3/+5
|
* Ensure that LFS files are relative to the LFS content path (#8455) (#8458)zeripath2019-10-111-2/+1
|
* Revert "[Backport] Fix issues/pr list broken when there are man… (#8425)Lauris BH2019-10-084-62/+86
| | | This reverts commit 0ea4b786cb99054a381f3005f11f4cf413214617.
* [Backport] Fix issues/pr list broken when there are many repositories ↵65432019-10-084-86/+62
| | | | | | | | | | | | | | | | | | | | (#8409) (#8418) * Fix issues/pr list broken when there are many repositories (#8409) * fix issues/pr list broken when there are many repositories * remove unused codes * fix counting error on issues/prs * keep the old logic * fix panic * fix tests * rm unused import
* feat: highlight issue references with : (#8101) (#8404)65432019-10-062-1/+2
| | | | | | | | | | * feat: highlight issue references with : e.g. #1287: my commit msg e.g. ABC-1234: my commit msg * ref: update model regex to consistent with issueNumericPattern * test: check highlight issue with : in commits messages
* Fix milestone num_issues (#8221) (#8400)65432019-10-073-41/+44
| | | | | | | | | | | | | | | * fix milestone num_issues * update missing completeness * only update milestone closed number when closed issue is assigned a new milestone or clear milestone * fix tests * fix update milestone num * fix completeness calculate * make completeness calucation more clear
* Allow users with explicit read access to give approvals (#8398)guillep2k2019-10-062-1/+35
|
* Backport of commit status fixes in PR #8316 and PR #8321 to v1.9 (#8339)Elias Norberg2019-10-011-3/+6
| | | | | | | | | | | | * Use correct index when fetching commit status Signed-off-by: Elias Norberg <elias@aisle.se> * Compare against base repo to avoid mismatch when merging from fork Signed-off-by: Elias Norberg <elias@aisle.se> * Fix pull request commit status in user dashboard list
* Fix assets on release webhook (#8283)Daniel Fonseca de Lira2019-09-251-2/+4
|
* Fix release API URL generation (#8239)Daniel Fonseca de Lira2019-09-191-1/+1
|
* MS Teams webhook misses commit messages (#8225)Bjoern Petri2019-09-181-0/+1
| | | | | The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included. Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
* [ssh] fix the config specification in the authorized_keys template (#8031) ↵Jakob Ackermann2019-09-161-2/+2
| | | | | | | | | (#8193) The gitea flags must appear in front of the gitea command. Otherwise they are ignored. Signed-off-by: Jakob Ackermann <das7pad@outlook.com> (cherry picked from commit 89648746a5acd4892a026d2962ff217280dbdf5b)
* Add reviewrs as participants (#8124)guillep2k2019-09-121-1/+1
|
* Abort syncrhonization from LDAP source if there is some error. (#7965)David Svantesson2019-08-251-1/+6
| | | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com> (cherry picked from commit b2d23a138942179d62f9bffdb3df272e9300e35b)
* Fix pull creation with empty changes (#7920) (#7926)Mura Li2019-08-201-7/+10
| | | | | * Logs the stderr of git-apply * Add an integration test * Skip testPatch when patch is empty
* fix wrong sender when send slack webhook (#7918) (#7924)Lunny Xiao2019-08-201-4/+4
|
* lfs/lock: round locked_at timestamp to second (#7872) (#7875)Antoine GIRARD2019-08-151-1/+1
| | | | | | | | * lfs/lock: round locked_at timestamp to second * test returned locked_at values * tests: use time RFC3339
* Fix duplicate call of webhook (#7821) (#7824)Antoine GIRARD2019-08-121-1/+0
|
* api: fix multiple bugs with statuses endpoints (#7785) (#7807)Antoine GIRARD2019-08-092-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | * fix commit statuses api url * search refs before passing sha * adjust tests * directly search tags and branches names + remove un-needed check in NewCommitStatus * fix comment * de-duplicate code * test: use relative setting.AppURL * Update routers/api/v1/repo/status.go Co-Authored-By: Lauris BH <lauris@nix.lv> * remove return * Update routers/api/v1/repo/status.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Fix Slack webhook fork message (#7774) (#7783)WGH2019-08-071-2/+2
| | | The order of forkee and fork was mixed up.
* Fix approvals counting (#7757) (#7777)Lunny Xiao2019-08-072-6/+9
| | | | | | | * fix approvals counting * fix tests * fmt
* fix rename failed when rewrite public keys (#7761) (#7769)Lunny Xiao2019-08-061-1/+3
|
* Fix dropTableColumns sqlite implementation (#7710) (#7765)zeripath2019-08-063-97/+23
| | | | | | | | | * Fix dropTableColumns sqlite implementation * use droptables and its index dropping support in v78 and v85 * golang-ci fixes * Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works
* add pagination for admin api get orgs and fix only list public orgs bug ↵Lunny Xiao2019-08-051-3/+1
| | | | (#7742) (#7752)
* Backport: fix repo_index_status lingering when deleting a repository (#7738)guillep2k2019-08-041-0/+1
|
* Fix milestone completness calculation when migrating (#7725) (#7732)Lauris BH2019-08-041-4/+16
|
* Fixes indexed repos keeping outdated indexes when files grow too large (#7731)guillep2k2019-08-031-1/+1
| | | | | | * Fixes indexed repos keeping outdated indexes when files grow too large Co-Authored-By: zeripath <art27@cantab.net>
* Backport: skip non-regular files (e.g. submodules) on repo indexing (#7717)guillep2k2019-08-021-5/+13
| | | | | | * Backport: skip non-regular files (e.g. submodules) on repo indexing * Include "executable" files in the index, as they are not necessarily binary
* fix duplicated webhook when creating issue with assignees (#7681) (#7684)Lunny Xiao2019-07-311-3/+6
|
* Backport of #7675. (#7682)David Svantesson2019-07-311-2/+15
| | | | | Move add to hook queue for created repo to outside xorm session. Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* change length of some repository's columns (#7652) (#7655)Lunny Xiao2019-07-291-2/+2
|
* fix wrong email when use gitea as OAuth2 provider (#7640) (#7647)renothing2019-07-271-4/+4
| | | | | | | 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.
* reserve .well-known username (#7638)Andreas Shimokawa2019-07-261-0/+1
|
* Fix bug create/edit wiki pages when code master branch protected (#7580) (#7623)Lunny Xiao2019-07-262-5/+11
| | | | | * fix bug create/edit wiki pages when code master branch protected * improve FullPushingEnvironment function
* Fix panic on push at #7611 (#7615) (#7618)zeripath2019-07-251-1/+1
| | | | | | | * Fix panic in #7611 Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary * Only fetch the head branch from the remote
* Fix repository's pull request count error (#7518) (#7524)Lunny Xiao2019-07-193-12/+38
| | | | | * fix pr count error * fix tests
* Fix regex for issues in commit messages (#7444) (#7466)mrsdizzie2019-07-142-1/+21
| | | | | | | | | * Fix regex for issues in commit messages Use same regex as markup for matching in commits. Fixes #7438 * make fmt
* only return head: null if source branch was deleted (#6705) (#7376)quantonganh2019-07-092-33/+67
| | | | | | | | | | | * only return head: null if source branch was deleted * add URL into GetPullRequest * TestPullRequest_APIFormat * log error if it is not Err(Branch)NotExist (cherry picked from commit ff85a6331e02338100e3799b5787bf8b686fe003)
* Fix mirror sync not automatically sending webhook requests (#7366)Drew2019-07-061-0/+5
|
* Detect migrating batch size (#7353)Lunny Xiao2019-07-061-0/+6
| | | | | | | | * Make migrating batch size as configurable * detect different table batch insert size and remove config item * remove unrelated changes
* Fix bug conflict between SyncReleasesWithTags and InsertReleases (#7337)Lunny Xiao2019-07-012-13/+15
| | | | | | | | * fix bug conflict between SyncReleasesWithTags and InsertReleases * fix tests * fix fmt
* make dropTableColumns drop columns on sqlite and constraints on all (#6849)zeripath2019-07-011-2/+90
|