afragen / git-updater

This WP plugin will update GitHub, Bitbucket, GitLab, and Gitea hosted plugins and themes
https://git-updater.com
MIT License
3.17k stars 462 forks source link

Create hook to point to 'api.wordpress.org` clone. #1071

Open afragen opened 4 hours ago

afragen commented 4 hours ago

@JeffMatson has created/is in process of creating a clone of sorts for the plugin/theme/update repositories and an API to access them.

Git Updater, by design, checks to see if a plugin/theme is hosted on the official repository and if the Git Updater sees the plugin/theme is on the default branch it will preferentially update from the official repository. There is a hook to override this behavior. https://git-updater.com/knowledge-base/wordpress-org-directory/

It seems that if hosts will be providing their own clones of .org then Git Updater should be able to check and see if the plugin/theme exists there.

afragen commented 3 hours ago

Working on this in branch api-domain-hook.

afragen commented 2 hours ago

Now in develop

JeffMatson commented 2 hours ago

@afragen Ooooh man I love this!

Let's chat more too - I think we have some overlapping goals that could work really well together.

afragen commented 2 hours ago

Absolutely!