Commit Graph

168 Commits

Author SHA1 Message Date
Jarka Košanová 38f3c2e186 Remove link after issue move when no permissions
Don't show new issue link after move
when a user does not have permissions
to display the new issue
2019-02-20 10:17:49 +01:00
Heinrich Lee Yu 3c02697114 Import CSV Backend
Process CSV uploads async using a worker then email results
2019-01-07 11:16:58 +08:00
Heinrich Lee Yu 51ac77af9a Add date range to milestone changed emails
Also refactored issues and MRs to use the same email template file
2018-12-21 18:00:14 +08:00
Alejandro Rodríguez b65cb237ce Send a notification email on mirror update errors
The email is sent to project maintainers containing the last mirror
update error. This will allow maintainers to set alarms and react
accordingly.
2018-12-11 23:08:17 -03:00
Nick Thomas 9395d198f9
Use BFG object maps to clean projects 2018-12-06 18:58:00 +00:00
Cindy Pallares e122e14ac6
Merge branch 'security-guest-comments' into 'master'
[master]Fixed ability to comment on and edit/delete comments on locked or confidential issues

See merge request gitlab/gitlabhq!2612
2018-11-28 19:11:56 -05:00
Chantal Rollison bb6b5653e2 Add email for milestone change 2018-11-02 16:29:32 +00:00
Tiago Botelho 487ac98a2a Ports new refactor from EE to CE 2018-09-24 12:02:26 +01:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Mayra Cabrera 177d847cf5 Automatically disable Auto DevOps for project upon first pipeline failure 2018-09-06 19:20:42 +00:00
gfyoung 8184ce7fb7 Enable frozen in app/mailers/**/*.rb 2018-08-15 21:45:57 +00:00
Mark Chao 5b994b8199 Notify only when unmergeable due to conflict
There is still the edge case when 'no commits' changes to 'conflict'
would not trigger notification, which we ignore for now.

Calling can_be_merged? can cause exception (e.g. non-UTF8)
Ignore those by rescueing.

Remove unmergeable_reason as now only conflict is notified

Update spec
2018-06-20 23:27:17 +08:00
Mark Chao a660f54896 Plural reason(s) 2018-05-18 09:50:01 +08:00
lulalala dc174e9655 Notify with email when merge request became unmergeable
Display MR unmergeable reasons
2018-05-17 08:54:51 +08:00
Mario de la Ossa 02741ca4c5
Backport 5480-epic-notifications from EE 2018-05-07 12:58:47 -06:00
Sean McGivern 33a4439e8f Merge branch 'master' into 'stuartnelson3/gitlab-ce-stn/issue-due-email'
# Conflicts:
#   db/schema.rb
2018-04-10 10:25:59 +00:00
Sean McGivern 682eb75834 Fix body of email when commits are pushed to an MR
This was sending the current user, which is the recipient! It should be the user
who pushed the commits.
2018-04-03 13:22:25 +01:00
Sean McGivern 6412c4c54a Merge branch 'master' into stuartnelson3/gitlab-ce-stn/issue-due-email 2018-03-30 12:58:20 +01:00
YarNayar 99b01e2359 Send notification emails when push to a merge request
Closes #23460
2018-03-26 13:24:52 +01:00
Stuart Nelson 5f39f9b308 Send email to recipients 2018-03-26 08:10:19 +01:00
Nick Thomas ee68bd9771
Add DNS verification to Pages custom domains 2018-02-23 12:22:29 +00:00
🙈 jacopo beschi 🙉 80090c8b06 Resolve "group request membership mail with too long list of "To:"" 2018-02-19 17:47:08 +00:00
Mario de la Ossa 23a20c20f8
Initial work to add notification reason to emails
Adds `#build_notification_recipients` to `NotificationRecipientService`
that returns the `NotificationRecipient` objects in order to be able to
access the new attribute `reason`.

This new attribute is used in the different notifier methods in order to
add the reason as a header: `X-GitLab-NotificationReason`.

Only the reason with the most priority gets sent.
2018-01-16 19:17:55 -06:00
Toon Claes 2acf3a564c Make mail notifications of discussion notes In-Reply-To of each other
When a note is part of a discussion, the email sent out should be
`In-Reply-To` the previous note in that discussion.

Closes gitlab-org/gitlab-ce#36054
2017-12-13 21:26:01 +01:00
Brett Walker f9f4672275 Send a confirmation email when the user adds a secondary email address. Utilizes the Devise `confirmable` capabilities. Issue #37385 2017-09-23 15:23:11 +02:00
Nick Thomas d7b03c37f8 Speed up Group#user_ids_for_project_authorizations 2017-08-14 12:47:15 +01:00
Alexis Reigel 075dae65b1 find_by_id -> find_by(:id, ...) 2017-07-27 15:43:37 +02:00
Alexis Reigel c1281982bd notification email on add new gpg key 2017-07-27 15:40:41 +02:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Valery Sizov 387c4b2c21 Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
Douwe Maan c319f21141
Address review comments 2017-04-05 17:44:14 +01:00
Douwe Maan 21e10888c3
Address review comments 2017-04-05 17:44:14 +01:00
Douwe Maan 874413cf70
Fix specs 2017-04-05 17:44:14 +01:00
Douwe Maan f6f6aaf593
Better notification emails for notes and (diff) discussions 2017-04-05 17:44:14 +01:00
Kamil Trzciński 12dd5ac221 All CI offline migrations 2017-03-17 23:06:11 +00:00
Alexis Reigel f0766fdefa extract pipeline mails layout 2017-02-22 12:22:52 +01:00
Jarka Kadlecova d6b11dafd3 Support notes without project 2017-01-18 18:38:17 -05:00
hhoopes 24070bac45 Add new template to handle both commit & mr notes
Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future.

Also removed some of the inconsistencies between text and html email versions.

Still needed is a text-only version of git diffs and testing.
2016-11-25 15:23:49 +00:00
Lin Jen-Shin 045c671533 Use bcc for pipeline emails because:
We use bcc here because we don't want to generate this emails for a
thousand times. This could be potentially expensive in a loop, and
recipients would contain all project watchers so it could be a lot.
2016-10-18 20:02:35 +08:00
Lin Jen-Shin 7d97a22e86 Just show the first merge request we found, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16963209
2016-10-14 19:54:51 +08:00
Lin Jen-Shin b5f9d4c4bc Introduce Pipeline#merge_requests_with_active_first,
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16956802
2016-10-14 19:13:11 +08:00
Mike Greiling 6b50c21140 skip the premailer compilation step since css is already inlined for the pipeline emails 2016-10-08 00:58:49 -05:00
Mike Greiling a4d63a91a2 prevent pipeline emails from using the normal layout wrapper 2016-10-07 18:30:42 -05:00
Mike Greiling 9c931c63c9 include pipeline ref in subject line 2016-10-06 10:12:59 -05:00
Mike Greiling 60caeb14a7 update subject and email header message 2016-10-06 10:09:24 -05:00
Lin Jen-Shin f39ba1bb5e Merge remote-tracking branch 'upstream/master' into pipeline-emails
* upstream/master: (372 commits)
  Enable Lint/StringConversionInInterpolation cop and autocorrect offenses
  resolve duplicated changelog entry
  credit myself 😄
  change determine conditions
  override subject method in devise mailer
  follow the styleguide: Don't use parentheses around a literal
  wrap subject with method subject
  move spec back into shared example `an email sent from GitLab`
  stub config settings in spec
  remove empty line at block body end
  remove extra entry
  create new test in `spec/mailers/notify_spec.rb`
  move changelog to 8.13
  add configurable email subject suffix
  Fixes sidebar navigation.
  Convert "SSH Keys" Spinach features to RSpec
  Enable import/export back for non-admins
  Update gitlab-shell to 3.6.3
  Updated artwork of empty group state.
  Better empty state for Groups view.
  ...
2016-10-04 02:38:25 +08:00
Fu Xu 64a60bc454 wrap subject with method subject 2016-10-03 18:07:28 +08:00
Lin Jen-Shin db6b2b1899 Show open merge request against default branch if exists 2016-09-26 17:18:30 +08:00
Lin Jen-Shin 4add6ca6ec Try to integrate the email into notification system 2016-09-13 19:09:53 +08:00
Lin Jen-Shin 5de54a7137 no longer TODO 2016-09-01 02:21:24 +08:00