Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F2236217: D2680.id6818.diff
Sat, Jun 3, 12:19
Unknown Object (File)
Tue, May 30, 14:15
Unknown Object (File)
Fri, May 26, 18:47
Unknown Object (File)
Tue, May 23, 17:21
Unknown Object (File)
Mon, May 8, 02:06
Unknown Object (File)
Apr 27 2023, 00:12
Unknown Object (File)
Apr 19 2023, 04:58
Unknown Object (File)
Apr 11 2023, 14:33
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