Skip to content

git: remove egit dependency from GitHub task, refactor a bit - #204

Draft
ibodrov wants to merge 1 commit into
masterfrom
ib/no-egit
Draft

git: remove egit dependency from GitHub task, refactor a bit#204
ibodrov wants to merge 1 commit into
masterfrom
ib/no-egit

Conversation

@ibodrov

@ibodrov ibodrov commented Jul 7, 2025

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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.

2 participants