LoginSignup
4
4

More than 5 years have passed since last update.

GitLab API | gitlab gem で 新規グループの作成

Posted at

GitLab API | gitlab gem で 新規グループの作成

概要

gitlab gem で 新規グループの作成

サンプル

require 'gitlab'

Gitlab.configure do |config|
  config.endpoint       = 'http://some_path/api/v3' 
  config.private_token  = 'your token'
end
puts Gitlab.groups.size # => この段階では 0

Gitlab.create_group('SampleGroup1', 'sample_group1')
Gitlab.create_group('SampleGroup2', 'sample_group2')

groups =  Gitlab.groups
puts Gitlab.groups.size # => この段階では 2

出力

0
2

参照

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4