Skip to content

Commit 9fd1d08

Browse files
committed
Remove GitHub token handling setting private repos feature will not be developed yet
1 parent 115fad3 commit 9fd1d08

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

github-to-wordpress-sync.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ private function make_api_request($url) {
194194
)
195195
);
196196

197-
// Add GitHub token if available (for private repos or higher rate limits)
198-
$github_token = get_option('gtws_github_token');
199-
if ($github_token) {
200-
$args['headers']['Authorization'] = 'token ' . $github_token;
201-
}
202-
203197
$response = wp_remote_get($url, $args);
204198

205199
if (is_wp_error($response)) {

0 commit comments

Comments
 (0)