Align webhook branch validation (#1781) - #2105
Chris-C1108 wants to merge 2 commits into
Conversation
015be54 to
bdd45e2
Compare
|
Near duplicate of #1840 It's initially master and if you want to write the routines for a one time migrate to main for individual users you are welcome to.... otherwise this is not going to be merged in it's current state. Alignment is currently with git not GitHub. |
|
Thanks for pointing to #1840 and for the direction. Understood: default stays master, with an explicit one-way opt-in/migration to main per user on their GitHub auth in /user/preferences, wired through the user model, webhook, and repoManager. I am glad to take this on. I will keep working on this branch to implement the preference UI, model field, and sync wiring accordingly. |
|
Implemented the one-way
Tested locally across migrated and unmigrated user flows. Both commits are signed. Ready for review whenever convenient. |
Aligns the webhook branch check with GitHub's current default branch naming (#1781).
Uses
payload.repository.default_branchwhich is already utilized incontrollers/user.js:1706for the import page, falling back to'master'if absent.No behavioral change for repositories using
masteras default.