Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-07-04 01:17:27 -0400
committerMichael Keppler2019-07-06 01:42:45 -0400
commit3eb1b0eadb30c2d75259171ba9037601ba00b81e (patch)
tree5b5536901720a278416366c6f8055b105410e7f0
parentb63c233bb460629b0ce018b2c79e0c388b1ea889 (diff)
downloadegit-github-master.tar.gz
egit-github-master.tar.xz
egit-github-master.zip
Use not deprecated hook test URLHEADmaster
The singular "/test" is deprecated according to https://developer.github.com/v3/repos/hooks/#test-a-push-hook. That segment is not used anywhere else, so it can be changed without having a copy of the singular version. Bug:548762 Change-Id: Iecd00e422544d4a851e665330c876f2c1cf9ec8c Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
-rw-r--r--org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/IGitHubConstants.java5
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
index b623d09b..e5c8fe2a 100644
--- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
+++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/RepositoryServiceTest.java
@@ -625,7 +625,7 @@ public class RepositoryServiceTest {
@Test
public void runHook() throws IOException {
service.testHook(repo, 5609);
- verify(client).post("/repos/o/n/hooks/5609/test");
+ verify(client).post("/repos/o/n/hooks/5609/tests");
}
/**
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/IGitHubConstants.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/IGitHubConstants.java
index 41dc50af..e159bbd8 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/IGitHubConstants.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/IGitHubConstants.java
@@ -178,8 +178,9 @@ public interface IGitHubConstants {
String SEGMENT_TAGS = "/tags"; //$NON-NLS-1$
/** */
String SEGMENT_TEAMS = "/teams"; //$NON-NLS-1$
- /** */
- String SEGMENT_TEST = "/test"; //$NON-NLS-1$
+
+ /** previously singular, now plural */
+ String SEGMENT_TEST = "/tests"; //$NON-NLS-1$
/** */
String SEGMENT_TREES = "/trees"; //$NON-NLS-1$
/** */

Back to the top