Official upstream source mirror. Do not make UH changes here.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-28 09:56:38 +01:00
.github Bump ruby/setup-ruby from 1.324.0 to 1.325.0 2026-09-24 10:42:45 +00:00
app Remove temporary rake task for DCMS bulk emails 2026-09-16 16:17:20 +01:00
bin Generate binstubs for sidekiq 2026-05-13 15:53:48 +01:00
config Add RailsCache healthcheck 2026-04-09 14:28:23 +01:00
db Add one-click-unsubscribe params when calling Notify 2024-06-10 12:03:29 +01:00
docs Update rake task documentation 2026-09-25 15:15:22 +01:00
lib Update rake task documentation 2026-09-25 15:15:22 +01:00
log Preserve the log directory in the repo 2015-03-04 15:49:53 +00:00
spec Add rake task to get subscriber list count by slug 2026-09-11 13:10:48 +01:00
.dockerignore Clean up Dockerfile. 2023-01-12 23:13:55 +00:00
.gitignore Add gems for pact tests, ignore pact reports 2022-07-04 14:19:30 +01:00
.govuk_dependabot_merger.yml Update dependabot merger config to v2, add external dependencies 2024-04-24 09:04:48 +01:00
.rspec Switch from using a rails_helper to a spec_helper 2020-06-22 17:23:20 +01:00
.rubocop.yml Add standard header to protect .rubocop.yml 2021-11-09 09:57:29 +00:00
.ruby-version Update Ruby to version 4 2026-05-13 15:52:05 +01:00
config.ru Update Rails defaults to 6.1 2021-06-23 11:04:39 +01:00
Dockerfile Update Ruby to version 4 2026-05-13 15:52:05 +01:00
Gemfile Bump rails from 8.1.3.1 to 8.1.4 2026-09-28 08:31:21 +00:00
Gemfile.lock Merge pull request #2720 from alphagov/dependabot/bundler/simplecov-1.3.1 2026-09-28 09:56:38 +01:00
LICENCE Add LICENCE file 2017-12-08 15:55:50 +00:00
Rakefile Configure pact tests provider 2022-07-04 15:50:05 +01:00
README.md Standardise name of further docs section in README 2021-07-09 09:39:23 +01:00

email-alert-api

Sends emails to users that subscribe to specific GOV.UK email alerts.

Provides a consistent internal interface to external email notification services. Currently supports only GOV.UK Notify.

Nomenclature

  • Content change:

    • A publication event that creates or changes a content item
    • The representation of that event for the purpose of sending emails
  • Message:

    • A message, distinct from a content change, that can be sent to subscribers of a list
    • The representation of that event for the purpose of sending emails
  • Subscriber list:

    • A particular titled list that a user can sign up to
    • Contains criteria to determine which notifications a subscriber will receive (eg. all publications by HMRC)
  • Subscriber:

    • A user who has subscribed to one or more subscriber lists
  • Subscription:

    • The relationship between a subscriber and the subscription lists they are subscribed to
  • Digest run:

    • One batch of either daily or weekly digests representing a particular subscription that has a start and end time and a set of subscribers to send emails to
  • Email:

    • An email generated from content changes or messages to be sent to subscribers

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.

Use GOV.UK Docker to run any commands that follow.

Running the test suite

bundle exec rake

Further documentation

Check the docs/ directory for detailed instructions, decisions and other documentation.

Licence

MIT License