Sha256: 7e32115ebffc12eabfa587bbdb1b49d183391c5ff08997bcfd5f99847a034974
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 Bytes
Contents
require 'gitlab' module Gitlab module Release class ApiClient # @param [String] endpoint API endpoint URL, default: ENV['GITLAB_API_ENDPOINT'] and falls back to ENV['CI_API_V4_URL'] # @param [String] private_token user's private token or OAuth2 access token, default: ENV['GITLAB_API_PRIVATE_TOKEN'] def initialize(endpoint, private_token) @client = Gitlab.client( endpoint: endpoint, private_token: private_token ) end # @param [String] version_name # @return Array protected def select_milestones(project_id, version_name) @client.milestones(project_id).select do |milestone| milestone.title.include?(version_name) || milestone.description.include?(version_name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gitlab-release-tools-0.2.0 | lib/gitlab/release/api_client.rb |
gitlab-release-tools-0.1.0 | lib/gitlab/release/api_client.rb |