Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F4033323: D2680.id6818.diff
Tue, Jan 21, 10:14
F4033319: D2680.id.diff
Tue, Jan 21, 10:12
F4033317: D2680.id6817.diff
Tue, Jan 21, 10:10
F4033316: D2680.id6778.diff
Tue, Jan 21, 10:10
Unknown Object (File)
Tue, Jan 21, 01:41
Unknown Object (File)
Sat, Jan 18, 18:22
Unknown Object (File)
Sat, Jan 18, 05:08
Unknown Object (File)
Sat, Jan 18, 05:07
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