Conversation
anurag629
approved these changes
Nov 13, 2026
anurag629
left a comment
Member
There was a problem hiding this comment.
Thanks @bhushan4work. With GITHUB_WORKSPACE set, the path now comes from the workspace, so a run in site/ writes file=site/evals/pricing.chat.yaml, and without it the output is the same as before. cwd reaches the reporter from io.cwd through the factory options, and api/cli.api.md has the new option. All checks pass, including e2e.
Member
|
Merged, thanks @bhushan4work. |
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.
What does this change?
Fixes the GitHub reporter so annotations point at the right file when
chatcops testruns from a subfolder (e.g. a monorepo job withworking-directory: site). WhenGITHUB_WORKSPACEis set, the reporter now writesfile=relative to the workspace root instead ofio.cwd, so annotations land on the correct file in the PR Files tab. Paths are normalized to forward slashes on Windows. WithoutGITHUB_WORKSPACE, output is unchanged.Closes #599
How I tested this
packages/cli/tests/github.test.tswithGITHUB_WORKSPACEset to the parent of the working folder; asserts the annotation emitsfile=site/evals/.... Confirmed it fails on unmodifieddevand passes with the fix.GITHUB_WORKSPACEis absent.pnpm -r typecheckfor@chatcops/cli.AI assistance
none
Checklist
devpnpm -r build,pnpm testandpnpm -r typecheckpass locallypnpm changeset) if this changescore,widgetorserverpnpm apirun andapi/committed if an exported type or option changed