Kookie finds it hard to differentiate the subject lines of GitLab emails, and so can't easily tell whether the build has started working again, or if it's just been broken, so I volunteered to make it easier. --- ...s-in-email-subject-clearer-to-Kookie.patch | 35 +++++++++++++++++++ services/gitlab/default.nix | 8 ++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 services/gitlab/Make-pipeline-status-in-email-subject-clearer-to-Kookie.patch
diff --git a/services/gitlab/Make-pipeline-status-in-email-subject-clearer-to-Kookie.patch b/services/gitlab/Make-pipeline-status-in-email-subject-clearer-to-Kookie.patch new file mode 100644 index 0000000..48cda65 --- /dev/null +++ b/services/gitlab/Make-pipeline-status-in-email-subject-clearer-to-Kookie.patch @@ -0,0 +1,35 @@ +From 8c5e6d238e9dd1ac12c4539e9beb8330525c228e Mon Sep 17 00:00:00 2001 +From: Alyssa Ross hi@alyssa.is +Date: Fri, 16 Apr 2021 11:47:28 +0000 +Subject: [PATCH] Make pipeline status in email subject clearer to Kookie + +--- + app/mailers/emails/pipelines.rb | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb +index fb1f70723fd..02b3ff29c96 100644 +--- a/app/mailers/emails/pipelines.rb ++++ b/app/mailers/emails/pipelines.rb +@@ -3,15 +3,15 @@ + module Emails + module Pipelines + def pipeline_success_email(pipeline, recipients) +- pipeline_mail(pipeline, recipients, 'Successful') ++ pipeline_mail(pipeline, recipients, '🥳 Successful') + end + + def pipeline_failed_email(pipeline, recipients) +- pipeline_mail(pipeline, recipients, 'Failed') ++ pipeline_mail(pipeline, recipients, '🔥️ Failed') + end + + def pipeline_fixed_email(pipeline, recipients) +- pipeline_mail(pipeline, recipients, 'Fixed') ++ pipeline_mail(pipeline, recipients, '🥳 Fixed') + end + + private +-- +2.31.0 + diff --git a/services/gitlab/default.nix b/services/gitlab/default.nix index cd33b53..6afd40c 100644 --- a/services/gitlab/default.nix +++ b/services/gitlab/default.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }:
{ petabyte.secrets."gitlab/initial-root-password".owner = "gitlab"; @@ -32,6 +32,12 @@ port = 443; https = true;
+ packages.gitlab = pkgs.gitlab.overrideAttrs ({ patches ? [], ... }: { + patches = patches ++ [ + ./Make-pipeline-status-in-email-subject-clearer-to-Kookie.patch + ]; + }); + initialRootPasswordFile = config.petabyte.secrets."gitlab/initial-root-password".path; secrets = { secretFile = config.petabyte.secrets."gitlab/secret".path;