Class Notifier

java.lang.Object
kth.soffgrupp.se.Notifier

public class Notifier
extends Object
This class uses GitHub API to set commit statuses on commits
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) org.kohsuke.github.GHRepository repo  
  • Constructor Summary

    Constructors
    Constructor Description
    Notifier​(org.kohsuke.github.GHRepository repo)  
  • Method Summary

    Modifier and Type Method Description
    void setCommitStatus​(String sha, String description, org.kohsuke.github.GHCommitState status)
    Set commit status for commit sha.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • repo

      org.kohsuke.github.GHRepository repo
  • Constructor Details

    • Notifier

      public Notifier​(org.kohsuke.github.GHRepository repo)
  • Method Details

    • setCommitStatus

      public void setCommitStatus​(String sha, String description, org.kohsuke.github.GHCommitState status) throws IOException
      Set commit status for commit sha. Status is GHCommitState.ERROR GHCommitState.PENDING GHCommitState.FAILURE GHCommitState.SUCCESS
      Parameters:
      sha - Hash value from hexadecimal string
      description - Description of status, short sentence
      status - GHCommitState enum
      Throws:
      IOException