Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F3163525: D2680.id6778.diff
Wed, Jun 26, 11:44
F3160236: D2680.id.diff
Wed, Jun 26, 03:57
F3160173: D2680.diff
Wed, Jun 26, 03:39
F3158480: D2680.id6817.diff
Wed, Jun 26, 00:17
F3156692: D2680.diff
Tue, Jun 25, 18:40
F3155185: D2680.diff
Tue, Jun 25, 13:32
Unknown Object (File)
Sun, Jun 23, 20:49
Unknown Object (File)
Sun, Jun 23, 00:20
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