diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 01:24:58 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 01:24:58 +0800 |
commit | 72d0c8d9bce125be1b851b142b0f41242d496f6f (patch) | |
tree | 18c5b2e6cde83497358b0245fb75b6e2d5ea6615 /git_hooks_handle_other.go | |
parent | Hooks, git2d: Simplify deployment logic (diff) | |
download | forge-72d0c8d9bce125be1b851b142b0f41242d496f6f.tar.gz forge-72d0c8d9bce125be1b851b142b0f41242d496f6f.tar.zst forge-72d0c8d9bce125be1b851b142b0f41242d496f6f.zip |
irc: Factor the IRC stuff into its own package
Diffstat (limited to 'git_hooks_handle_other.go')
-rw-r--r-- | git_hooks_handle_other.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/git_hooks_handle_other.go b/git_hooks_handle_other.go index d4a6aea..da40bb6 100644 --- a/git_hooks_handle_other.go +++ b/git_hooks_handle_other.go @@ -12,7 +12,6 @@ import ( "errors" "fmt" "io" - "log/slog" "net" "path/filepath" "strconv" @@ -226,11 +225,7 @@ func (s *Server) hooksHandler(conn net.Conn) { mergeRequestWebURL := fmt.Sprintf("%s/contrib/%d/", s.genHTTPRemoteURL(packPass.groupPath, packPass.repoName), newMRLocalID) fmt.Fprintln(sshStderr, ansiec.Blue+"Created merge request at", mergeRequestWebURL+ansiec.Reset) - select { - case s.ircSendBuffered <- "PRIVMSG #chat :New merge request at " + mergeRequestWebURL: - default: - slog.Error("IRC SendQ exceeded") - } + s.ircBot.Send("PRIVMSG #chat :New merge request at " + mergeRequestWebURL) } else { // Existing contrib branch var existingMRUser int var isAncestor bool |