TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Private Repo on bitbucket #663

Open Beheer80 opened 7 years ago

Beheer80 commented 7 years ago

Hello,

Is there a way to get a plugin from a Private repo on Bitbucket?

ryanlabelle commented 7 years ago

Was just wondering the same thing but for a private github repo.

In your example you provide:

// This is an example of how to include a plugin from a GitHub repository in your theme.
        // This presumes that the plugin code is based in the root of the GitHub repository
        // and not in a subdirectory ('/src') of the repository.
        array(
            'name'      => 'Adminbar Link Comments to Pending',
            'slug'      => 'adminbar-link-comments-to-pending',
            'source'    => 'https://github.com/jrfnl/WP-adminbar-comments-to-pending/archive/master.zip',
        ),

but preferably it would be great to have a space for a token to download from a private repo.

I've searched but didn't see any one asking.

Love this script!

jrfnl commented 7 years ago

At this moment, there is no simple way I can think of of doing this. Getting things to work with GH downloads was interesting in itself. By their very nature, a private repo is, well, private, so the security implications of downloading things from a private repo would need to be considered, not so much in TGMPA itself, but for the themes and plugins which include it.

I'd be happy to look at a pull request for this though and welcome anyone who's interested in such a feature to create one.

pipdig commented 7 years ago

Just to chime in, I'd also be interested in this feature. It could work in a similar way to https://github.com/YahnisElsts/plugin-update-checker#bitbucket-integration

NightShiftCreative commented 6 years ago

I am also in need of this feature. Downloading from a private repo with access token would be a great solution!