Skip to content

fix(backend): warn on missing GitHub App org installation - #1522

Closed
brendan-kellam wants to merge 3 commits into
mainfrom
brendan/fix-sou-1588
Closed

fix(backend): warn on missing GitHub App org installation#1522
brendan-kellam wants to merge 3 commits into
mainfrom
brendan/fix-sou-1588

Conversation

@brendan-kellam

@brendan-kellam brendan-kellam commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Fixes SOU-1588

Summary

  • replace createOctokitFromToken and getOctokitWithGithubApp with a single createOctokit factory
  • prefer GitHub App authentication for owner-scoped requests and fall back to token authentication when no app is configured
  • warn and skip only an organization without an app installation while continuing to sync valid organizations
  • keep initialization, licensing, and token-generation failures fatal

Testing

  • yarn workspace @sourcebot/backend test
  • yarn workspace @sourcebot/backend build

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6f875b3a-2834-4f5e-a254-76c04394bb82

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant