Commit Graph

21 Commits (359d3ed01dcc9b9a8b0dadba04a8df708831de23)

Author SHA1 Message Date
zeripath 2569363204
Also ensure the repo is loaded ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 036964b4a7 Ensure issue.Poster is loaded in mailIssueCommentToParticipants ()
Previous code could potentially dereference nil - this PR ensures
that the poster is loaded before dereferencing it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 6311e4ce6a Fix sqlite deadlock when assigning to a PR ()
* Fix sqlite deadlock when assigning to a PR

Fix 5639

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

* More possible deadlocks found and fixed

Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao b3b7598ec6 Improve performance of dashboard ()
techknowlogick 194a11eb11
Don't disclose emails of all users when sending out emails ()
kolaente 95f2e2b57b Multiple assignees ()
Lauris BH 240609432b Issue content should not be updated when closing with comment ()
Lunny Xiao 52e11b24bf Restructure markup & markdown to prepare for multiple markup language… ()
* restructure markup & markdown to prepare for multiple markup languages support

* adjust some functions between markdown and markup

* fix tests

* improve the comments
David Schneiderbauer d766d0c4e0 Prevent sending emails and notifications to inactive users ()
* Filter inactive users before sending emails or creating browser notifications

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix formatting issues

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* included requested changes

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* optimized database queries

* rebasing new master and add tablenames for clarification in xorm queries

* remove escaped quotationmarks using backticks

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Lunny Xiao 5de94a67cf some refactors for issue and comments ()
Győrvári Gábor f2afed3098 Enable assignee e-mail notification ()
* Enable assignee e-mail notification

* Check assignee and doer to avoid self made comment notifications.

* Assignee not always defined

* New method to avoid error when assignee deleted

* Assignee empty check
Jonas Franz 03912ce014 Adding #issuecomment to the URL in E-Mail notifications ()
* Added comment's hashtag to url for mail notifications.

Signed-off-by: Jonas <info@jonasfranz.software>

* Added comment's hashtag to url for mail notifications.
Added explanation to return statement.

Signed-off-by: Jonas <info@jonasfranz.software>

* Added comment's hashtag to url for mail notifications.
Added explanation to return statement + documentation.

Signed-off-by: Jonas <info@jonasfranz.software>

* Added comment's hashtag to url for mail notifications.

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Replacing in-line link generation with HTMLURL. (+gofmt)

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Replaced action-based model with nil-based model. (+gofmt)

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Updating comment for mailIssueCommentToParticipants

Signed-off-by: Jonas Franz <info@jonasfranz.software>
Sandro Santilli 447c9b428f Send notifications to partecipants in issue comments ()
* Send notifications to partecipants in issue comments

Closes 

Includes test (still failing)

* Do not include "labelers" to participants

Fix test to expect what GetParticipants return
Ethan Koenig 1207bda94b Fix typos in models/ ()
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
Bwko c0ca6644ad Lint/issue &mail ()
* Lint models/release.go

* Lint models/ issue_label, issue_mail & mail.go
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
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon 3f7f4852ef fully support of webhooks for pull request
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened