lib/git/semaphore/project.rb in git-semaphore-2.5.1 vs lib/git/semaphore/project.rb in git-semaphore-2.6.0
- old
+ new
@@ -139,9 +139,14 @@
def rebuild
Git::Semaphore::API.rebuild(project_hash_id, branch_id, @auth_token)
end
+ def result
+ Git::Semaphore::API.status(project_hash_id, branch_id, @auth_token)\
+ ['result'] # the latest un-cached build result for the current branch
+ end
+
def browse
`open #{branch_url}`
{ url: branch_url }
end