diff --git a/src/config/config.example.php b/src/config/config.example.php index 56e9b5e..a9129b9 100644 --- a/src/config/config.example.php +++ b/src/config/config.example.php @@ -22,7 +22,6 @@ define('PROJECT_EMAIL', 'developer@matomo.org'); * On the screen you don't need to give any permission. The default view public info permission is good enough. */ define('GITHUB_CLIENT_ID', ''); -define('GITHUB_CLIENT_SECRET', ''); define('GITHUB_ORGANIZATION', 'matomo-org'); define('GITHUB_REPOSITORY', 'matomo'); define('NUMBER_OF_ISSUES_PER_PAGE', 100); diff --git a/src/helpers/GithubImporter.php b/src/helpers/GithubImporter.php index f6d14ff..6c3cf49 100755 --- a/src/helpers/GithubImporter.php +++ b/src/helpers/GithubImporter.php @@ -47,7 +47,7 @@ class GithubImporter { } } - public static function buildClient($clientId, $clientSecret) + public static function buildClient($clientId) { $filesystemAdapter = new Local(realpath('../tmp/github_api_cache')); $filesystem = new Filesystem($filesystemAdapter); diff --git a/src/tasks/import_github_issues.php b/src/tasks/import_github_issues.php index 098993a..94f6a42 100644 --- a/src/tasks/import_github_issues.php +++ b/src/tasks/import_github_issues.php @@ -23,7 +23,7 @@ if (DEBUG_ENABLED) { } $logger->info("authenticating"); -$client = helpers\GithubImporter::buildClient(GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET); +$client = helpers\GithubImporter::buildClient(GITHUB_CLIENT_ID); $importer = new helpers\GithubImporter($client, $logger); try {