Commit Graph

207 Commits (7b67347104629872d4410a61ce8f78eebae40131)

Author SHA1 Message Date
Lunny Xiao 0c5c34d7dd UpdateIssueUsersByMentions was calling database write operations while ()
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.

issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
Ethan Koenig 4c89a9c33c Bug fixes and tests for modules/base ()
Also address other TODOs
Lunny Xiao 7c46667e71 fixed vulnerabilities labels ()
Ethan Koenig 04b9a7e7a2 Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
Kim "BKC" Carlbäcker 0f05470cb8 [API] Pull Requests ()
Kim "BKC" Carlbäcker 42ec5ce740 Fix breakage from vendor-update
Thomas Boerger e9c6053b86 Merge pull request from Bwko/fix/typo
Fix typos
Sandro Santilli 8aa960f129 Actually document the missing bits
Sandro Santilli 4dd1eb57bd Lint issue.go
Bwko 2a449bd4b1 Fix typos
Lunny Xiao 3dedc027ac Bug fixed for issues ()
Lunny Xiao 30a37311f8 use in instead string join ()
Thibault Meyer ddee4c8b58
Normalize files with gofmt
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Thibault Meyer b0ddced2b5
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
#	models/git_diff.go
#	models/issue.go
#	models/org.go
#	models/pull.go
#	models/repo.go
Thibault Meyer a4454f5d0f
Rewrite XORM queries
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Lunny Xiao c511f1c6c3 Merge pull request from LefsFlarey/issue/3675
Fix 500 error caused by deleted users on issues ()
Flare a6c487f6ca
Fix err not being nil
Sandro Santilli f6a11e0de1 More MixedCase consts
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode*
Sandro Santilli 80eea77953 Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports
Flare fd6be0d17e
Still print error if user does not exist
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Flare 1b59e6f910
Fix 500 error caused by deleted users on issues ()
Unknwon 643142acab Web editor: support upload files
Unknwon 6b98d58906 code cleanup
Unknwon 0b273ac4d5 code cleanup
Kim "BKC" Carlbäcker 06602a84ff Fix PR-webhook issue where Label-data is stale () ()
* Fix PR-webhook issue where Label-data is stale

* Conventions \o/

* logs are nice if they're consistent...
Unknwon a00c932bbc General code quality improvement
Unknwon 6f9a95f830 add HTMLURL to webhook type
- Fill Milestone and Assignee field when available in webhook payload
Unknwon 2625193a48 models/repo_editor: improve code quality
Unknwon 4042d1f0c3 models/issue: improve quality and performance of NewIssue function
Unknwon 94392a7af3 Fix empty repository panic on send test webhook
Unknwon 15845cb287 Code clean up for new config options
Richard Mahn d0a0239bac Squashed commit of the following:
commit 0afcb843d7ffd596991c4885cab768273a6eb42c
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 17:13:29 2016 -0600

    Removed Upload stats as the upload table is just a temporary table

commit 7ecd73ff5535612d79d471409173ee7f1fcfa157
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:42:41 2016 -0600

    Fix for CodeMirror mode

commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:03:33 2016 -0600

    Made tabbing in editor use spaces

commit 23af384c53206a8a40e11e45bf49d7a149c4adcd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:56:46 2016 -0600

    Fix for data-url

commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9
Merge: 7fc8a89 991ce42
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:42:53 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	public/js/gogs.js

commit 7fc8a89cb495478225b02d613e647f99a1489634
Merge: fd3d86c c03d040
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:40:00 2016 -0600

    Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file

commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:39:44 2016 -0600

    Code cleanup

commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 29 15:38:23 2016 -0600

    Code cleanup

commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 18:36:01 2016 -0600

    Code cleanup and fixes

commit c2895dc742f25f8412879c9fa15e18f27f42f194
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 18:24:04 2016 -0600

    Fixes per Unknwon's requests

commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef
Merge: 889e9fa ad7ea88
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Thu Jul 28 17:13:43 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	modules/setting/setting.go

commit 889e9faf1bd8559a4979c8f46005d488c1a234d4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:09:18 2016 -0600

    Fix in gogs.js

commit 47603edf223f147b114be65f3bd27bc1e88827a5
Merge: bb57912 cf85e9e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:07:36 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go
    	public/js/gogs.js

commit bb5791255867a71c11a77b639db050ad09c597a4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 22 14:02:18 2016 -0600

    Update for using CodeMirror mode addon

commit d10d128c51039be19e2af9c66c63db66a9f2ec6d
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Tue Jul 19 16:12:57 2016 -0600

    Update for Edit

commit 34a34982025144e3225e389f7849eb6273c1d576
Merge: fa1b752 1c7dcdd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Tue Jul 19 11:52:02 2016 -0600

    Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file

    Conflicts:
    	modules/bindata/bindata.go

commit fa1b752be29cd455c5184ddac2ffe80b3489763e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Fri Jul 15 18:35:42 2016 -0600

    Feature for editing, creating, uploading and deleting files
Unknwon 3f7f4852ef fully support of webhooks for pull request
Unknwon 5448d29b2e wrong dashboard issue count for create by you
lstahlman 699c71d319 Fix for Links of pull request comment email should use pulls URL ()
Unknwon e7fd65f0cf better code structure and batch minor improvements
Unknwon 8aa0a76702 fix wrong table name in Join
Unknwon e74630ae3b add pagination for repositories
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 46e96c008c Use struct for UI settings
Unknwon 250be011c7 Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Unknwon 5761342f32 fix SQLite3 session read/update conflict on create new issue
lstahlman e7a4f96fb6 Updated Issues and Issues Stats functions to include table aliases. This addresses errors involving ambiguous column references when filtering issues by the view type "Mentioning you". ()
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened
Robin Lambertz ac05f88641 Fix ()