Repository navigation
Make build reusable, so it can be invoked from core-v2 - #277
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical fork checkout and secret-handling issues remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Extracts the test workflow into a reusable GitHub Actions workflow invoked by build.yml.
Changes:
- Adds configurable refs, API URLs, Java versions, and secrets.
- Moves the test matrix and setup steps into
tests.yml. - Updates
build.ymlto call the reusable workflow.
File summaries
| File | Summary |
|---|---|
.github/workflows/tests.yml |
Defines the reusable workflow; fork PRs cannot receive the required secret, and omitted optional secrets are exported empty, affecting test skipping. |
.github/workflows/build.yml |
Invokes the reusable workflow; fork PR checkout may fail because the supplied SHA may not exist in the upstream repository. |
Review details
Suppressed comments (1)
.github/workflows/tests.yml:54
- This optional secret is exported unconditionally, so callers that omit it still create
DEMO_COMPANY_SECRET_KEYwith an empty value.SeatsioClientTest.isDemoCompanySecretKeySet()checks only whether the variable exists, causing the usage-report tests to run with an empty API key instead of being skipped whencore-v2invokes this workflow without the optional secret. Omit/unset the variable when the secret is absent, or change the test helper to require a non-empty value.
DEMO_COMPANY_SECRET_KEY: ${{ secrets.DEMO_COMPANY_SECRET_KEY }}
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
mroloux
marked this pull request as ready for review
September 18, 2026 07:09
mroloux
requested review from
bverbeken and
schaloner
and removed request for
a team
September 18, 2026 07:09
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Workflow checkouts must use a ref available in the target repository for fork pull requests.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
.github/workflows/tests.yml:41
- The caller passes
github.event.pull_request.head.sha, but this checkout is hard-coded toseatsio/seatsio-java. For a pull request opened from a fork, that SHA exists only in the fork, so checkout fails before the tests run. Make the repository an input and passgithub.event.pull_request.head.repo.full_namefor PRs (while retainingseatsio/seatsio-javafor cross-repository callers), or use a base-repository ref instead of the fork SHA.
.github/workflows/build.yml:13
- This passes the pull request's head SHA to a checkout of the base
seatsio/seatsio-javarepository. For PRs opened from forks, that SHA belongs to the fork and is not available in the base repository, soactions/checkoutfails before the tests run. Use the event'sgithub.sha/merge commit, or another ref guaranteed to exist inseatsio/seatsio-java.
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- Files reviewed: 3/3 changed files
- Comments generated: 0 new
- Review effort level: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.