Skip to content

feat: read the GitHub API URL from RR_GITHUB_API_URL - #65

Merged
roxblnfk merged 1 commit into
2.xfrom
feat/github-api-url
Oct 9, 2026
Merged

roxblnfk merged 1 commit into
2.xfrom
feat/github-api-url

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Oct 9, 2026

Copy link
Copy Markdown
Member

What was changed

  • New RR_GITHUB_API_URL environment variable: base URL of the GitHub REST API used to list RoadRunner releases (default https://api.github.com). It lets rr work against GitHub Enterprise, a mirror or a mock server, and is the hook for black-box acceptance tests.
  • GitHubRepository accepts the API URL as an optional fourth constructor/create() argument; existing calls are unchanged.
  • Releases are requested with per_page=100, so listing all RoadRunner releases takes 2 requests instead of about 7, which matters under the 60 requests/hour anonymous limit.

Why?

The variable is deliberately not GITHUB_API_URL: GitHub Actions sets that one in every job (and points it at the GHES API there), so reusing it would silently redirect rr in CI.

Checklist

  • Tested
    • Tested manually
    • Unit tests added
  • Documentation

Releases can be fetched from GitHub Enterprise, a mirror or a mock server. The variable is not `GITHUB_API_URL` because GitHub Actions sets that one in every job. Releases are requested 100 per page, so listing them takes 2 requests instead of about 7.

Assisted-By: Claude Opus 5.5
@roxblnfk
roxblnfk requested a review from a team October 9, 2026 22:09
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4b366981-edbd-4cc6-8aa3-2fd3aa26e3ea

📥 Commits

Reviewing files that changed from the base of the PR and between d8a5b3f and 8d54ffe.


📒 Files selected for processing (5)
  • README.md
  • src/Command.php
  • src/Repository/GitHub/GitHubRepository.php
  • tests/Unit/CommandTest.php
  • tests/Unit/Repository/GitHub/GitHubRepositoryTest.php


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@roxblnfk roxblnfk mentioned this pull request Oct 9, 2026
2 tasks done
@roxblnfk
roxblnfk merged commit eff8b50 into 2.x Oct 9, 2026
10 checks passed
@roxblnfk
roxblnfk deleted the feat/github-api-url branch October 9, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant