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)
Thu, Apr 18, 01:01
Unknown Object (File)
Wed, Apr 17, 10:29
Unknown Object (File)
Sun, Apr 14, 11:33
Unknown Object (File)
Sun, Apr 14, 00:11
Unknown Object (File)
Fri, Apr 12, 21:36
Unknown Object (File)
Fri, Apr 12, 02:09
Unknown Object (File)
Wed, Apr 10, 10:14
Unknown Object (File)
Mon, Apr 8, 11:09
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