Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-12-18 19:42:45 +0000
committerKevin Sawicki2011-12-18 19:42:45 +0000
commit98ea512f8ca3b27237d9856e48d56585ac92767e (patch)
tree92cf801d7daeb4842c8ede250830c2aab18250d8
parent5a524967d785f1a74e4180f368fd135cc34a0beb (diff)
downloadegit-github-98ea512f8ca3b27237d9856e48d56585ac92767e.tar.gz
egit-github-98ea512f8ca3b27237d9856e48d56585ac92767e.tar.xz
egit-github-98ea512f8ca3b27237d9856e48d56585ac92767e.zip
Bump user agent versions to 1.3.0
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java2
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/GitHub.java34
2 files changed, 18 insertions, 18 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
index 2f91f023..f988d77b 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
@@ -114,7 +114,7 @@ public class GitHubClient {
/**
* Default user agent request header value
*/
- protected static final String USER_AGENT = "GitHubJava/1.2.0"; //$NON-NLS-1$
+ protected static final String USER_AGENT = "GitHubJava/1.3.0"; //$NON-NLS-1$
/**
* 422 status code for unprocessable entity
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/GitHub.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/GitHub.java
index 0793fe95..426e491b 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/GitHub.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/GitHub.java
@@ -49,14 +49,14 @@ public class GitHub {
+ Pattern.quote(HTTP_GITHUB_COM) + ")/([^/]+)/([^/]+)"); //$NON-NLS-1$
/** USER_AGENT */
- public static final String USER_AGENT = "GitHubEclipse/1.2.0"; //$NON-NLS-1$
+ public static final String USER_AGENT = "GitHubEclipse/1.3.0"; //$NON-NLS-1$
/** REPOSITORY_SEGMENTS */
public static final String REPOSITORY_SEGMENTS = "/user/repository"; //$NON-NLS-1$
/**
* Configure client with standard configuration
- *
+ *
* @param client
* @return given client
*/
@@ -66,7 +66,7 @@ public class GitHub {
/**
* Set credentials on client from task repository
- *
+ *
* @param client
* @param repository
* @return specified client
@@ -83,7 +83,7 @@ public class GitHub {
/**
* Create status of severity with message
- *
+ *
* @param severity
* @param message
* @return status
@@ -94,7 +94,7 @@ public class GitHub {
/**
* Create status of severity with message and throwable
- *
+ *
* @param severity
* @param message
* @param e
@@ -106,7 +106,7 @@ public class GitHub {
/**
* Create error status from message
- *
+ *
* @param message
* @return status
*/
@@ -116,7 +116,7 @@ public class GitHub {
/**
* Create error status from message and throwable
- *
+ *
* @param message
* @param t
* @return status
@@ -127,7 +127,7 @@ public class GitHub {
/**
* Create error status from throwable
- *
+ *
* @param e
* @return status
*/
@@ -139,7 +139,7 @@ public class GitHub {
/**
* Create error status from {@link IOException} that wraps it in a
* {@link GitHubException} if it is a {@link RequestException}
- *
+ *
* @param e
* @return status
*/
@@ -149,7 +149,7 @@ public class GitHub {
/**
* Get log
- *
+ *
* @return log
*/
public static ILog getLog() {
@@ -158,7 +158,7 @@ public class GitHub {
/**
* Log message and throwable as error status
- *
+ *
* @param message
* @param t
*/
@@ -168,7 +168,7 @@ public class GitHub {
/**
* Log throwable as error status
- *
+ *
* @param t
*/
public static void logError(Throwable t) {
@@ -177,7 +177,7 @@ public class GitHub {
/**
* Get repository for url
- *
+ *
* @param repositoryUrl
* @return repository or null if not present in url
*/
@@ -187,11 +187,11 @@ public class GitHub {
/**
* Create url with github.com host
- *
+ *
* @param user
* @param project
* @return url
- *
+ *
* @see #createGitHubUrlAlternate(String, String)
*/
public static String createGitHubUrl(String user, String project) {
@@ -200,11 +200,11 @@ public class GitHub {
/**
* Create url with github.org host
- *
+ *
* @param user
* @param project
* @return url
- *
+ *
* @see #createGitHubUrl(String, String)
*/
public static String createGitHubUrlAlternate(String user, String project) {

Back to the top