Skip to content

Conversation

@conico974
Copy link
Contributor

Introduce a proxy for GitHub API requests, enhancing flexibility and security. Update dependencies and implement linting for code quality.

@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2025

🦋 Changeset detected

Latest commit: 7f5781f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gitbook/integration-github Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 19, 2025

Open in StackBlitz

bun add https://pkg.pr.new/GitbookIO/integrations/@gitbook/api@1057

commit: 7f5781f

return false;
}
try {
const response = await fetch(
Copy link
Contributor

@emmerich emmerich Nov 20, 2025

Choose a reason for hiding this comment

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

I think it'd be better if the proxy/no-proxy decision was managed and decided by us on the GitBook side, rather than reflag - probably something in the installation.

Suggested change
const response = await fetch(
const shouldUseProxy = context.environment.installation?.proxied;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I agree, right now it works this way for gitlab as well. I wanted to do something quick to unblock this https://linear.app/gitbook-x/issue/RND-8673/static-ips-for-github-git-sync
We could revisit this later

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants