Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F3715604: D2680.diff
Tue, Nov 5, 08:15
F3715504: D2680.diff
Tue, Nov 5, 07:02
Unknown Object (File)
Sun, Nov 3, 23:31
Unknown Object (File)
Thu, Oct 31, 11:48
Unknown Object (File)
Wed, Oct 30, 16:17
Unknown Object (File)
Wed, Oct 30, 06:50
Unknown Object (File)
Tue, Oct 29, 05:16
Unknown Object (File)
Thu, Oct 24, 21:02
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