[pkg-perl-tools] 01/01: dpt-salsa: configurerepo(): replace irker service with kgb webhook

gregor herrmann gregoa at debian.org
Fri Feb 9 17:30:22 UTC 2018


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit a3752d247dcfb8784bc7d12f3a1784dff17f6c5e
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Feb 9 18:29:50 2018 +0100

    dpt-salsa: configurerepo(): replace irker service with kgb webhook
    
    Gbp-Dch: Ignore
---
 scripts/salsa | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/scripts/salsa b/scripts/salsa
index 7545730..cc9f926 100755
--- a/scripts/salsa
+++ b/scripts/salsa
@@ -292,7 +292,7 @@ sub configurerepo {
         my $repo_path = repo2repopath($_);
         my $repo_name = $api->project($repo_path)->{name};
 
-        # webhooks: cleanup; tagpending
+        # webhooks: cleanup and set: tagpending and kgb
         my $hooks = $api->project_hooks($repo_path);
         $api->delete_project_hook( $repo_path, $_->{id} ) foreach @{$hooks};
 
@@ -303,26 +303,26 @@ sub configurerepo {
                 push_events => 1,
             }
         );
+        $api->create_project_hook(
+            $repo_path,
+            {   url =>
+                    'http://kgb.debian.net:9418/webhook/?channel=debian-perl',
+                push_events           => 1,
+                issues_events         => 1,
+                merge_requests_events => 1,
+                tag_push_events       => 1,
+                note_events           => 1,
+                job_events            => 1,
+                pipeline_events       => 1,
+                wiki_events           => 1,
+            }
+        );
 
-        # services: cleanup; emails-on-push, irker
+        # services: cleanup and set: emails-on-push
         $api->delete_project_service( $repo_path, 'emails-on-push' );
-        $api->delete_project_service( $repo_path, 'irker' );
         $api->edit_project_service( $repo_path, 'emails-on-push',
             { recipients => 'pkg-perl-cvs-commits at lists.alioth.debian.org' }
         );
-        $api->edit_project_service(
-            $repo_path,
-            'irker',
-            {
-
-                server_host       => 'ruprecht.snow-crash.org',
-                server_port       => '6659',
-                default_irc_uri   => 'irc://irc.oftc.net:6667/',
-                recipients        => 'debian-perl',
-                colorize_messages => 1,
-
-            }
-        );
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list