diff --git a/README.md b/README.md index be83d5b634f95d52d209f39b9d42b522d1bd10c9..a2c2340ae1b75c1699364997e65cd73b8d370219 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep ```java dependencies { ... - compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.12' + compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.14' } ``` @@ -20,7 +20,7 @@ dependencies { org.gitlab4j gitlab4j-api - 4.8.12 + 4.8.14 ``` @@ -296,8 +296,12 @@ List runners = gitLabApi.getRunnersApi().getAllRunners(); #### ServicesApi ```java -// Activates the gitlab-ci service. -gitLabApi.getServicesApi().setGitLabCI("project-name", "auth-token", "project-ci-url"); +// Activate/Update the Slack Notifications service +SlackService slackService = new SlackService() + .withMergeRequestsEvents(true) + .withWebhook("https://hooks.slack.com/services/ABCDEFGHI/KJLMNOPQR/wetrewq7897HKLH8998wfjjj") + .withUsername("GitLab4J"); +gitLabApi.getServicesApi().updateSlackService("project-path", slackService); ``` #### SessionApi diff --git a/pom.xml b/pom.xml index 29df936f43134316d8c53faac3ca4c3b7c636951..19fd5aaa4cf900485d017de76acafac9b52e853a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.gitlab4j gitlab4j-api jar - 4.8.13-SNAPSHOT + 4.8.14-SNAPSHOT GitLab API Java Client GitLab API for Java (gitlab4j-api) provides a full featured Java API for working with GitLab repositories via the GitLab REST API. https://github.com/gmessner/gitlab4j-api diff --git a/src/main/java/org/gitlab4j/api/models/PushRule.java b/src/main/java/org/gitlab4j/api/models/PushRules.java similarity index 100% rename from src/main/java/org/gitlab4j/api/models/PushRule.java rename to src/main/java/org/gitlab4j/api/models/PushRules.java