Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

webhooks: Deterministically match webhook events to repos#63668

Merged
eseliger merged 1 commit into
mainfrom
es/07-05-webhooksdeterministicallymatchwebhookeventstorepos
Jul 16, 2024
Merged

webhooks: Deterministically match webhook events to repos#63668
eseliger merged 1 commit into
mainfrom
es/07-05-webhooksdeterministicallymatchwebhookeventstorepos

Conversation

@eseliger

@eseliger eseliger commented Jul 5, 2024

Copy link
Copy Markdown
Member

Previously, we would attempt to recreate the clone URL of a repo based on event data. This is a lossy matching, and can cause events to get rejected, although we have the repo cloned.

This PR changes the matching to instead use the external ID of the repo, which we already store in the repo table in a separate column.

Closes SRC-40

Test plan:

Tests still pass, set up webhooks locally and they still matched (but only tried GitHub).

Previously, we would attempt to recreate the clone URL of a repo based on event data. This is a lossy matching, and can cause events to get rejected, although we have the repo cloned.

This PR changes the matching to instead use the external ID of the repo, which we already store in the repo table in a separate column.

Closes SRC-40

Test plan:

Tests still pass, set up webhooks locally and they still matched (but only tried GitHub).
@cla-bot cla-bot Bot added the cla-signed label Jul 5, 2024

eseliger commented Jul 5, 2024

Copy link
Copy Markdown
Member Author

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

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 5, 2024
@eseliger eseliger marked this pull request as ready for review July 5, 2024 11:05
@eseliger eseliger requested a review from a team July 5, 2024 11:05
@eseliger eseliger merged commit 6a7b3bb into main Jul 16, 2024
@eseliger eseliger deleted the es/07-05-webhooksdeterministicallymatchwebhookeventstorepos branch July 16, 2024 04:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants