Hello,
I’m trying to use automatic-releases on a private repository. It works fine on public repository but when i change its visibility to private i get an error:
command-name: laminas:automatic-releases:release -vvv
env:
GITHUB_TOKEN: ***
SIGNING_SECRET_KEY: ***
GIT_AUTHOR_NAME: ***
GIT_AUTHOR_EMAIL: ***
In IssueClient.php line 57:
[RuntimeException]
API call to GitHub failed with status code 422 and message "Validation Fail
ed"
Exception trace:
at /app/vendor/jwage/changelog-generator/src/ChangelogGenerator/IssueClient.php:57
ChangelogGenerator\IssueClient->execute() at /app/vendor/jwage/changelog-generator/src/ChangelogGenerator/IssueFetcher.php:33
ChangelogGenerator\IssueFetcher->fetchMilestoneIssues() at /app/vendor/jwage/changelog-generator/src/ChangelogGenerator/IssueRepository.php:26
ChangelogGenerator\IssueRepository->getMilestoneIssues() at /app/vendor/jwage/changelog-generator/src/ChangelogGenerator/ChangelogGenerator.php:36
ChangelogGenerator\ChangelogGenerator->generate() at /app/src/Github/JwageGenerateChangelog.php:54
Laminas\AutomaticReleases\Github\JwageGenerateChangelog->__invoke() at /app/src/Github/CreateReleaseTextThroughChangelog.php:55
Laminas\AutomaticReleases\Github\CreateReleaseTextThroughChangelog->__invoke() at /app/src/Github/MergeMultipleReleaseNotes.php:37
Laminas\AutomaticReleases\Github\MergeMultipleReleaseNotes::Laminas\AutomaticReleases\Github\{closure}() at n/a:n/a
array_map() at /app/src/Github/MergeMultipleReleaseNotes.php:41
Laminas\AutomaticReleases\Github\MergeMultipleReleaseNotes->__invoke() at /app/src/Application/Command/ReleaseCommand.php:88
Laminas\AutomaticReleases\Application\Command\ReleaseCommand->execute() at /app/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1000
Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:271
Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:147
Symfony\Component\Console\Application->run() at /app/bin/console.php:168
Laminas\AutomaticReleases\WebApplication\{closure}() at /app/bin/console.php:169
An ORGANIZATION_ADMIN_TOKEN with full repo scopes is used as GITHUB_TOKEN :