debian-mirror-gitlab/lib/gitlab/phabricator_import/conduit/maniphest.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
654 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
module Gitlab
module PhabricatorImport
module Conduit
class Maniphest
def initialize(phabricator_url:, api_token:)
@client = Client.new(phabricator_url, api_token)
end
def tasks(after: nil)
TasksResponse.new(get_tasks(after))
end
private
def get_tasks(after)
client.get('maniphest.search',
params: {
after: after,
attachments: { projects: 1, subscribers: 1, columns: 1 }
})
end
attr_reader :client
end
end
end
end