Skip to content

feat: add PR conflict detection with system pins via GitHub App#48

Open
MrgSub wants to merge 1 commit intobetter-auth:mainfrom
MrgSub:feat/pr-conflict-detection-system-pins
Open

feat: add PR conflict detection with system pins via GitHub App#48
MrgSub wants to merge 1 commit intobetter-auth:mainfrom
MrgSub:feat/pr-conflict-detection-system-pins

Conversation

@MrgSub
Copy link
Copy Markdown

@MrgSub MrgSub commented Feb 25, 2026

webhooks + polling fallback

Introduce server-side monitoring of open PRs for merge conflicts. When a conflict is detected, a repo-global system pin is created and surfaced in the maintainer dashboard.

  • Add GitHub App webhook endpoint handling installation lifecycle and pull_request events with signature verification and dedupe
  • Add conflict evaluator (Inngest) that checks mergeable_state with retry logic for GitHub's async mergeability computation
  • Add polling fallback (15min cron) for repos without app installation
  • Add RepoSystemPin, GitHubAppInstallation, GitHubAppInstallationRepo Prisma models with transition-based pin activation/clearing
  • Add ConflictPinsSection UI in repo overview for maintainers
  • Auth: installation tokens (primary), user OAuth fallback (polling)

…oks + polling fallback

Introduce server-side monitoring of open PRs for merge conflicts.
When a conflict is detected, a repo-global system pin is created
and surfaced in the maintainer dashboard.

- Add GitHub App webhook endpoint handling installation lifecycle
  and pull_request events with signature verification and dedupe
- Add conflict evaluator (Inngest) that checks mergeable_state
  with retry logic for GitHub's async mergeability computation
- Add polling fallback (15min cron) for repos without app installation
- Add RepoSystemPin, GitHubAppInstallation, GitHubAppInstallationRepo
  Prisma models with transition-based pin activation/clearing
- Add ConflictPinsSection UI in repo overview for maintainers
- Auth: installation tokens (primary), user OAuth fallback (polling)
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 25, 2026

@MrgSub is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment thread apps/web/.env.example
Comment on lines +67 to +70
# Secret for verifying GitHub webhook signatures
# Configure in your GitHub repo/org webhook settings
# Generate with: openssl rand -hex 20
# GITHUB_WEBHOOK_SECRET=your_webhook_secret
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yrs

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