Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F4881359: D2680.id6778.diff
Fri, Feb 28, 22:10
Unknown Object (File)
Tue, Feb 25, 10:16
Unknown Object (File)
Sat, Feb 22, 00:10
Unknown Object (File)
Thu, Feb 20, 08:41
Unknown Object (File)
Thu, Feb 20, 08:41
Unknown Object (File)
Mon, Feb 17, 05:38
Unknown Object (File)
Sun, Feb 16, 13:41
Unknown Object (File)
Mon, Feb 10, 12:15
Subscribers
None

Details

Summary

The repository GitHub event has now in the API a new action "edited",
for example when the repository default branch is changed.

This change assigns to a default branch change payload a new event
"default_branch" overriding the GitHub "repository" one, to avoid
raising too much the complexity of RepositoryEvent.

Fixes T1729.

Test Plan

Unit test provided.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable