Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
PullRequestEvent (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
nireeshT authored and benj58xu committed Dec 5, 2019
1 parent 39cc115 commit c13e701
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/main/java/com/capitalone/dashboard/model/PullRequestEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.capitalone.dashboard.model;

public enum PullRequestEvent {
Assigned,
Unassigned,
Review_requested,
Review_request_removed,
Labeled,
Unlabeled,
Opened,
Edited,
Closed,
Ready_for_review,
Locked,
Unlocked,
Reopened,
Merged,
Synchronize;


public static PullRequestEvent fromString(String value) {
for (PullRequestEvent event : values()) {
if (event.toString().equalsIgnoreCase(value)) {
return event;
}
}
return null;
}
}


0 comments on commit c13e701

Please sign in to comment.