From 2e2bdf9c6ce1cd66ba5cfe1a42786a6f486b7969 Mon Sep 17 00:00:00 2001 From: eta Date: Sun, 8 Nov 2020 18:38:19 +0000 Subject: feat(panettone): announce newly created issues using irccat - The new PANETTONE.IRC package contains the SEND-IRC-NOTIFICATION function, which opens a new TCP socket to irccat (if it's running and configured) in order to announce the creation of new issues. - The IRCCATHOST and IRCCATPORT environment variables must be set for this to work. - Additionally, the ISSUECHANNEL environment variable may be used to direct announcements at a given channel (otherwise it'll just use the first one). Change-Id: I429a66f24d0f80ed10db173d6af7105fb1d3d023 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2077 Tested-by: BuildkiteCI Reviewed-by: glittershark --- web/panettone/src/packages.lisp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/panettone/src/packages.lisp') diff --git a/web/panettone/src/packages.lisp b/web/panettone/src/packages.lisp index 1a8453055f..87285fa34d 100644 --- a/web/panettone/src/packages.lisp +++ b/web/panettone/src/packages.lisp @@ -7,6 +7,10 @@ (:use :cl :lass) (:export :styles)) +(defpackage panettone.irc + (:use :cl :usocket) + (:export :send-irc-notification)) + (defpackage :panettone.authentication (:nicknames :authn) (:use :cl :panettone.util :klatre) @@ -47,5 +51,6 @@ :id :subject :body :author-dn :issue-id :status :created-at :field :previous-value :new-value :acting-user-dn :issue-comments :num-comments :issue-events) + (:import-from :panettone.irc :send-irc-notification) (:shadow :next) (:export :start-pannetone :config :main)) -- cgit 1.4.1