lib/codestatus/build_status.rb in codestatus-0.1.1 vs lib/codestatus/build_status.rb in codestatus-0.1.2
- old
+ new
@@ -6,9 +6,15 @@
ERROR = 'error'.freeze
FAILURE = 'failure'.freeze
PENDING = 'pending'.freeze
SUCCESS = 'success'.freeze
+ # Statuses defined in Bitbucket are mapped into GitHub's status
+ # STOPPED => ERROR
+ # FAILED => FAILURE
+ # INPROGRESS => PENDING
+ # SUCCESSFUL => SUCCESS
+
STATUSES = [
ERROR,
FAILURE,
PENDING,
SUCCESS,