YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.22k stars 403 forks source link

Plugin Checker doesn't work with private repository GitHub #524

Closed AlFazal closed 1 year ago

AlFazal commented 1 year ago

I am getting errors using the private repository GitHub

Image Proff : http://alfazalq.online/wp-content/uploads/2023/03/ssa.png

But when i change repository to public then its working fine

Please give me the solution

cocodedesigns commented 1 year ago

What's the code you're using to get the repo? I have a number of projects in private repos and have so far had no issue with updating through them.

YahnisElsts commented 1 year ago

AlFazal and I already discussed this via email yesterday, and we didn't really get anywhere. The code they showed me looked fine, and they said that the access token was correct and had the necessary permissions. If anyone else has some ideas, feel free to chime in.

AlFazal commented 1 year ago

What's the code you're using to get the repo? I have a number of projects in private repos and have so far had no issue with updating through them.

This is the repo code which i am using in my plugin

require 'plugin-update-checker/plugin-update-checker.php'; use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

$myUpdateChecker = PucFactory::buildUpdateChecker( 'https://github.com/AlFazal/Testcrypt', FILE, 'Testcrypt' );

//Optional: If you're using a private repository, specify the access token like this: $myUpdateChecker->setAuthentication('my token');

$myUpdateChecker->setBranch('main');

can you please help me on this issue? this issue higher priority for me

AlFazal commented 1 year ago

AlFazal and I already discussed this via email yesterday, and we didn't really get anywhere. The code they showed me looked fine, and they said that the access token was correct and had the necessary permissions. If anyone else has some ideas, feel free to chime in.

Yes , I couldn't found any solution yet , so i came here maybe some other may know this issue , that's why i raised here ticket brother

AlFazal commented 1 year ago

brother i am using free version GitHub , Maybe this case private method not allowing ?

On Fri, Mar 17, 2023 at 2:18 PM Yahnis Elsts @.***> wrote:

AlFazal and I already discussed this via email yesterday, and we didn't really get anywhere. The code they showed me looked fine, and they said that the access token was correct and had the necessary permissions. If anyone else has some ideas, feel free to chime in.

— Reply to this email directly, view it on GitHub https://github.com/YahnisElsts/plugin-update-checker/issues/524#issuecomment-1473612548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWXA3QRVW5S36KN5DYPHNT3W4Q27DANCNFSM6AAAAAAV6KEUOQ . You are receiving this because you authored the thread.Message ID: @.***>

AlFazal commented 1 year ago

I have fixed this issue , how to close this ticket , can you close by ur side please , thank you for the support

YahnisElsts commented 1 year ago

All right, closing it now.

AlFazal commented 1 year ago

Thank you 👍

On Fri, Mar 17, 2023, 8:32 PM Yahnis Elsts @.***> wrote:

All right, closing it now.

— Reply to this email directly, view it on GitHub https://github.com/YahnisElsts/plugin-update-checker/issues/524#issuecomment-1473977985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWXA3QWCUJSTDRQZSSUE6K3W4R4IJANCNFSM6AAAAAAV6KEUOQ . You are receiving this because you authored the thread.Message ID: @.***>