Package CIserver.app

Class StatusUpdater

java.lang.Object
CIserver.app.StatusUpdater

public class StatusUpdater extends Object
This class handles the commit status updates with GitHub's API
  • Constructor Details

    • StatusUpdater

      public StatusUpdater(String url)
      Create an object
      Parameters:
      url - of the repo
  • Method Details

    • ChangeStatus

      public int ChangeStatus(String context, String state, String description, String commit_id)
      Method for updating the GitHub status of a specific commit
      Parameters:
      context - The context to be set for the commit status
      state - The result of the test
      description - A short description of what is tested
      commit_id - The commit_id for the commit status that should be updated