summaryrefslogtreecommitdiff
path: root/src/main/java/uk
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2015-12-10 18:04:15 +0000
committerJoe Robinson <joe@lc8n.com>2015-12-10 18:04:15 +0000
commit317ece104f891afd0c5928773e298cd6cf352f48 (patch)
tree764f5a39d759f83e2163d37a84036812f554aa14 /src/main/java/uk
parent596983ae286c88031010a43f7bbca3984d1a40a7 (diff)
Add JSON annotation to pick up underscore in user_name
Diffstat (limited to 'src/main/java/uk')
-rw-r--r--src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java b/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java
index bd8c961..bc20045 100644
--- a/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java
+++ b/src/main/java/uk/co/blatech/blaears/models/gitlab/Push.java
@@ -1,5 +1,7 @@
package uk.co.blatech.blaears.models.gitlab;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
/**
* Model for a GitLab Push message, to be converted from JSON
* See http://www.blatech.co.uk/help/web_hooks/web_hooks
@@ -7,6 +9,7 @@ package uk.co.blatech.blaears.models.gitlab;
public class Push {
String objectKind;
+ @JsonProperty("user_name")
String userName;
Repository repository;