Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 19:10
Unknown Object (File)
Fri, Dec 20, 19:10
Unknown Object (File)
Fri, Dec 20, 19:10
Unknown Object (File)
Fri, Dec 20, 04:37
Unknown Object (File)
Fri, Dec 13, 22:38
Unknown Object (File)
Fri, Dec 13, 18:46
Unknown Object (File)
Thu, Dec 12, 06:40
Unknown Object (File)
Sat, Dec 7, 21:32
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