Skip to content

Conversation

@ibodrov
Copy link
Collaborator

@ibodrov ibodrov commented Jul 7, 2025

org.eclipse.egit.github.core looks dead.
Replace EGit's client with the standard HttpClient. Tidy up the code a bit.

Replace EGit's client with the standard HttpClient. Tidy up the code a
bit.
@ibodrov ibodrov requested a review from a team July 7, 2025 20:06
@ibodrov ibodrov marked this pull request as draft July 7, 2025 20:23
Comment on lines +951 to +955
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create(url))
.timeout(Duration.ofSeconds(30))
.header("Accept", "application/vnd.github.v3+json")
.header("Authorization", "token " + token);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think setting a User-Agent header is a nice thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants