Repository navigation
v2026.3.10.1
This release syncs the webhook models with the latest GitHub OpenAPI descriptions and adds the secret_scanning_public_monitoring_alert event family. Upgrading needs code changes if you reference the enum fallback constant UNKNOWN or one of the renamed types below.
⚠️ Breaking changes
- Enum fallback renamed: the fallback constant of 175 webhook enums changed from
UNKNOWN(wire value"unknown") toUNRECOGNIZED(wire value"unrecognized"), for exampleGitHubWebhookCreateRefTypeandGitHubWebhookProjectsV2ItemContentType. MigrateGitHubWebhookCreateRefType.UNKNOWN→GitHubWebhookCreateRefType.UNRECOGNIZEDinswitchbranches and comparisons.fromWirereturnsUNRECOGNIZEDfor a value the library does not know. - Exemption request metadata renamed:
GitHubWebhookSecretScanningPushProtectionExemptionRequestMetadata→GitHubWebhookExemptionRequestMetadataand its...MetadataReasonenum →GitHubWebhookExemptionRequestMetadataReason. This changes the type ofmetadatainGitHubWebhookExemptionRequest. - Secret scanning alert validity renamed:
GitHubWebhookSecretScanningAlertCreatedAlertValidity→GitHubWebhookPublicMonitoringAlertWebhookValidity. This changes the type ofvalidityinGitHubWebhookSecretScanningAlertCreatedAlert. - Label type replaced:
GitHubWebhookIssuesEditedLabelis removed andGitHubWebhookPullRequestLabeledLabeltakes its place, with the same components. It is the type oflabelorlabelsin the discussion, issue labeled, unlabeled and edited, label created, deleted, edited and unarchived, and pull request labeled and unlabeled events and their payloads (for exampleGitHubWebhookDiscussionLabeledEvent,GitHubWebhookLabelCreatedEvent,GitHubWebhookPullRequestLabeledPullRequest). - Issue labels retyped:
labelsinGitHubWebhookIssue,GitHubWebhookIssuesClosedIssue,GitHubWebhookIssuesEditedIssue,GitHubWebhookIssuesPinnedIssueandGitHubWebhookIssuesReopenedIssuechanged fromList<GitHubWebhookLabel>toList<GitHubWebhookPullRequestLabeledLabel>. Update code that reads these labels asGitHubWebhookLabel. - Rule parameter records gained components:
GitHubWebhookFilePathRestrictionParametersandGitHubWebhookMaxFileSizeParametersgained a nullableignoredFilePathslist, andGitHubWebhookPullRequestParametersgained a nullablerequireExtraApprovalForUnattributedChanges. They are trailing components, so constructor calls need one more argument (nullkeeps the old behavior); code that only reads webhooks is not affected. - Transferred issue has its own type: the
newIssuecomponent ofGitHubWebhookIssuesTransferredChangeschanged fromGitHubWebhookIssuesPinnedIssueto the newGitHubWebhookIssuesTransferredChangesNewIssue. Update variable and method signatures that use the old type. - New event type in the sealed
GitHubWebhookEvent:GitHubWebhookSecretScanningPublicMonitoringAlertEventis a new permitted subtype, so an exhaustiveswitchoverGitHubWebhookEventwithout adefaultbranch no longer compiles. Add a case for it (see What's new).
✨ What's new
- Secret scanning public monitoring alerts: the
secret_scanning_public_monitoring_alertwebhook is now parsed intoGitHubWebhookSecretScanningPublicMonitoringAlertEvent, with one record per action (created,dismissed,reopened,validated) andGitHubWebhookSecretScanningPublicMonitoringAlertUnknownActionEventfor any other action. The alert isGitHubWebhookPublicMonitoringAlertWebhook, including where the secret was found. GHEC only. The new package...webhook.secretscanningpublicmonitoringalertis exported and opened inmodule-info. - Dependabot reachability:
GitHubWebhookDependabotAlertFixedAlerthas a newreachabilitycomponent (GitHubWebhookDependabotAlertFixedAlertReachabilitywith averdictand an optionalreason). Because it is a new record component, its canonical constructor changed; this is a response record, so code that only reads webhooks is not affected.
Full Changelog: v2026.3.10.0...v2026.3.10.1