This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webhook): Add/Remove version webhook
- Loading branch information
Alex Eng
committed
Sep 8, 2016
1 parent
d8849ec
commit 468a9fc
Showing
26 changed files
with
956 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 17 additions & 3 deletions
20
zanata-model/src/main/java/org/zanata/model/type/WebhookType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
package org.zanata.model.type; | ||
|
||
import lombok.Getter; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Type of Webhook event. See {@link org.zanata.model.WebHook} for usage. | ||
* | ||
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a> | ||
*/ | ||
public enum WebhookType { | ||
DocumentMilestoneEvent, | ||
DocumentStatsEvent; | ||
public enum WebhookType implements Serializable { | ||
DocumentMilestoneEvent("Translation milestone"), | ||
DocumentStatsEvent("Translation update"), | ||
VersionChangedEvent("Project version"), | ||
ProjectMaintainerChangedEvent("Project maintainer update"), | ||
SourceDocumentChangedEvent("Document"); | ||
|
||
@Getter | ||
private String displayName; | ||
|
||
WebhookType(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
} |
68 changes: 0 additions & 68 deletions
68
zanata-model/src/main/java/org/zanata/model/type/WebhookTypeType.java
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
zanata-model/src/main/java/org/zanata/model/type/WebhookTypeTypeDescriptor.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.