This repository was archived by the owner on Sep 30, 2024. It is now read-only.
[Backport 5.0] batches: use correct repository field for check_suite & check_run webhook events#52043
Merged
Merged
Conversation
…hook events (#52035) Closes #51782 GitHub (not sure of how recent this change is) removed the `repository` field from the `CheckSuite` and `CheckRun` field from the `check_suite` and `check_run` events. This resulted in the CI status for customers needing to be updated. I tested this on S2 and I had the same issue. Here's a link to the [Batch Change I created on S2](https://sourcegraph.sourcegraph.com/users/BolajiOlajide/batch-changes/wh-test?visible=1) (cherry picked from commit 9578c41)
Contributor
|
cc @camdencheek |
BolajiOlajide
approved these changes
May 16, 2023
camdencheek
approved these changes
May 16, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #51782
GitHub (not sure of how recent this change is) removed the
repositoryfield from theCheckSuiteandCheckRunfield from thecheck_suiteandcheck_runevents.This resulted in the CI status for customers needing to be updated. I tested this on S2 and I had the same issue.
Here's a link to the Batch Change I created on S2
Here's a changeset that got created via a Batch Change with CI checks passing:
Here's the batch change on S2 not showing the status checks:
Context
Test plan
To test this, you must manually send a webhook payload to your Sourcegraph instance. This fix is specific to GitHub webhooks, here's a sample payload for the
check_runevent.