Page MenuHomeDevCentral

Detect default branch change in repository GitHub event
ClosedPublic

Authored by dereckson on Apr 24 2022, 11:25.
Tags
None
Referenced Files
F6800521: D2680.diff
Fri, Apr 11, 03:17
Unknown Object (File)
Thu, Apr 10, 02:58
Unknown Object (File)
Wed, Apr 9, 12:44
Unknown Object (File)
Thu, Apr 3, 12:27
Unknown Object (File)
Tue, Apr 1, 22:45
Unknown Object (File)
Sat, Mar 29, 09:18
Unknown Object (File)
Thu, Mar 27, 01:10
Unknown Object (File)
Wed, Mar 26, 02:29
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 Passed
Unit
Tests Passed
Branch
github-default-branch-change