Module: SemaphoreApi::Client::Branches

Included in:
SemaphoreApi::Client
Defined in:
lib/semaphore_api/client/branches.rb

Instance Method Summary collapse

Instance Method Details

#branch_history(project_hash_id, branch_id) ⇒ Object



13
14
15
# File 'lib/semaphore_api/client/branches.rb', line 13

def branch_history(project_hash_id, branch_id)
  get "/projects/#{project_hash_id}/#{branch_id}"
end

#branch_status(project_hash_id, branch_id) ⇒ Object



9
10
11
# File 'lib/semaphore_api/client/branches.rb', line 9

def branch_status(project_hash_id, branch_id)
  get "/projects/#{project_hash_id}/#{branch_id}/status"
end

#branches(project_hash_id) ⇒ Object



5
6
7
# File 'lib/semaphore_api/client/branches.rb', line 5

def branches(project_hash_id)
  get "/projects/#{project_hash_id}/branches"
end