Skip to content

Comments

feat: deduplicate GitHub webhook deliveries#5098

Closed
Flo4604 wants to merge 1 commit intofeat/webhook-out-of-order-guardfrom
feat/webhook-dedup
Closed

feat: deduplicate GitHub webhook deliveries#5098
Flo4604 wants to merge 1 commit intofeat/webhook-out-of-order-guardfrom
feat/webhook-dedup

Conversation

@Flo4604
Copy link
Member

@Flo4604 Flo4604 commented Feb 19, 2026

What does this PR do?

Fixes # (issue)

If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Ran make fmt on /go directory
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Unkey Docs if changes were necessary

Adds a check before creating a deployment to skip if one already exists
for the same commit SHA + app + environment. This prevents duplicate
deployments when GitHub retries webhook deliveries.

Also extracts X-GitHub-Delivery header and logs it throughout the
webhook handler for observability.
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboard Ready Ready Preview, Comment Feb 19, 2026 9:38pm
engineering Ready Ready Preview, Comment Feb 19, 2026 9:38pm

Request Review

Copy link
Member Author

Flo4604 commented Feb 19, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Flo4604
Copy link
Member Author

Flo4604 commented Feb 19, 2026

Dedup handled naturally by Restate idempotency keys in feat/webhook-restate — this SQL-level check is redundant.

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