[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alioth repository becoming R/O and moving to salsa.debian.org



Hi,

Migration seems successful.
I am now activating IRC commit notifications using irker
and the configuration available at
  https://wiki.debian.org/Salsa/Doc#IRC_notifications

It was fortunately possible to turn this on using the API
for all repositories, with the following hackish script.
Fortunately. the ruby-gitlab package makes requesting the
list of repositories of a group easier than with curl for which the
results are paginated...

------------8<------------------
#!/usr/bin/ruby

require "curb"
require "gitlab"

SALSA_URL="https://salsa.debian.org/api/v4";
SALSA_TOKEN="XXXXXXX"
SALSA_NAMESPACE = 2159 # ruby-team on salsa

Gitlab.endpoint = SALSA_URL
Gitlab.private_token = SALSA_TOKEN

ruby = Gitlab.group(SALSA_NAMESPACE)

ruby.projects.each do |project|
http = Curl.put("#{SALSA_URL}/projects/#{project["id"]}/services/irker?recipients=debian-ruby&default_irc_uri=irc://irc.oftc.net:6667/&server_host=ruprecht.snow-crash.org&server_port=6659&colorize_messages=true") do |h|
    h.headers['PRIVATE-TOKEN'] = SALSA_TOKEN
  end
end
------------->8-----------------


Our next new setup-repository script should add the configuration upon
creation of the repository so that we don't have to manually do it (and
possibly forget to activate).

The next step is writing the mapping from alioth to salsa to make
checkout from anonscm.debian.org be redirected correctly to 
salsa.

Cheers,

Cédric



Attachment: signature.asc
Description: PGP signature


Reply to: