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 2, 2016
1 parent
98442d2
commit 9640dd4
Showing
9 changed files
with
462 additions
and
126 deletions.
There are no files selected for viewing
16 changes: 14 additions & 2 deletions
16
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,23 @@ | ||
package org.zanata.model.type; | ||
|
||
import lombok.Getter; | ||
|
||
/** | ||
* 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; | ||
DocumentMilestoneEvent("Translation milestone"), | ||
DocumentStatsEvent("Translation update"), | ||
VersionChangedEvent("Project version"), | ||
ProjectMaintainerChangedEvent("Maintainers update"), | ||
SourceDocumentChangedEvent("Source document"); | ||
|
||
@Getter | ||
private String displayName; | ||
|
||
WebhookType(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
} |
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
Oops, something went wrong.