+use HTTP::Tiny;
+use JSON::PP;
+HTTP::Tiny->new(timeout => 5)->post(
+ 'http://127.0.0.1:2567/api/message', {
+ headers => {'content-type' => 'application/json'},
+ content => encode_json({
+ gateway => 'exim-builds',
+ username => '',
+ text => "$animal [$branch]: @{[lc $stat_type]}: @{[lc $stage]}; commit: https://git.exim.org/@{[substr $githeadref, 0, 10]}",
+ }),
+ }
+);
+