Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2018-01-04 17:57:01
Size: 1802
Editor: ?CédricBoutillier
Comment:
Revision 6 as of 2018-01-26 21:40:20
Size: 2220
Editor: ?CédricBoutillier
Comment: update status
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
New contributions should be pushed there, New contributions should not be pushed to Alioth. Instead, they should be sent to the corresponding project on Salsa, either as commits if you are a member of the ruby-team group, or as a merge request.
Line 23: Line 23:
require "curb"
Line 28: Line 27:
SALSA_GROUP="ruby-team"
Line 34: Line 34:
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
  Gitlab.change_service(project["id"], :irker,
                          "
recipients=debian-ruby&default_irc_uri=irc://irc.oftc.net:6667/&server_host=ruprecht.snow-crash.org&server_port=6659&colorize_messages=true")
Line 41: Line 40:
 * import all (1246) repositories from Alioth pkg-ruby-extras under ruby-team
 * write map rules to redirect anonscm.debian.org checkouts to corresponding repos on salsa
 * import all (1246) repositories from Alioth pkg-ruby-extras under ruby-team, as well as those related to the interpreter (ruby, ruby-defaults, ruby-standalone)
 * write [[https://salsa.debian.org/salsa/AliothRewriter|map rules]] to redirect anonscm.debian.org checkouts to corresponding repos on salsa
Line 44: Line 43:
 * script to create repo with given configuration options
 * [[https://salsa.debian.org/salsa/webhook|webhook]] to mark bugs as pending upon commit [[https://lists.debian.org/87mv1um3bd.fsf@delenn.ganneff.de|announced here]]
Line 48: Line 49:
 * script to create repo with given configuration options
Line 50: Line 50:
 

Migration of the Ruby team to Salsa

Salsa is the new forge for Debian to host repositories.

Since 2018-01-04, the old repositories on Alioth have been made read-only. New contributions should not be pushed to Alioth. Instead, they should be sent to the corresponding project on Salsa, either as commits if you are a member of the ruby-team group, or as a merge request.

See the documentation for Salsa service.

The ruby-team group

The Ruby team is represented by the ruby-team group on Salsa.

  • namespace id: 2159

Gitlab API

The packages ruby-gitlab can be used to get info about the ruby-team group and the projects it contains. The following script has been used for example to activate on all projects irker IRC notifications.

require "gitlab"

SALSA_URL="https://salsa.debian.org/api/v4"
SALSA_TOKEN="XXXXX"
SALSA_NAMESPACE=2159
SALSA_GROUP="ruby-team"
Gitlab.endpoint=SALSA_URL
Gitlab.private_token=SALSA_TOKEN

ruby=Gitlab.group(SALSA_NAMESPACE)

ruby.projects.each do |project|
  Gitlab.change_service(project["id"], :irker,
                          "recipients=debian-ruby&default_irc_uri=irc://irc.oftc.net:6667/&server_host=ruprecht.snow-crash.org&server_port=6659&colorize_messages=true")
end

DONE

  • import all (1246) repositories from Alioth pkg-ruby-extras under ruby-team, as well as those related to the interpreter (ruby, ruby-defaults, ruby-standalone)
  • write map rules to redirect anonscm.debian.org checkouts to corresponding repos on salsa

  • activate IRC notifications on existing repositories

  • script to create repo with given configuration options
  • webhook to mark bugs as pending upon commit announced here

TODO

  • gemwatch
  • tool to iterate over repositories (to set new configuration options)