lib/janky/notifier/github_status.rb
# Create a Success or Failure Status for the Commit.
Create a Success or Failure Status for the Commit.
Create a Success or Failure Status for the Commit .
def completed(build)
        repo   = build.repo_nwo
        path   = "repos/#{repo}/statuses/#{build.sha1}"
        status = build.green? ? "success" : "failure"
        desc = case status
          when "success" then "Build ##{build.number} succeeded in #{build.duration}s"
          when "failure" then "Build ##{build.number} failed in #{build.duration}s"
        end
        post(path, status, build.web_url, desc, context(build))
      end
def completed ( build ) repo = build . repo_nwo path = "repos/#{repo}/statuses/#{build.sha1}" status = build . green? ? "success" : "failure" desc = case status when "success" then "Build ##{build.number} succeeded in #{build.duration}s" when "failure" then "Build ##{build.number} failed in #{build.duration}s" end post ( path , status , build . web_url , desc , context ( build ) ) end
Create a Success or Failure Status for the Commit.
Create a Success or Failure Status for the Commit .
build