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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin Checker doesn't work with private repository GitHub

AlFazal opened this issue · comments

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

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.

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.

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 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

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

All right, closing it now.