Describe the bug
The script step0_fork_prs fails to recognize the GITHUB_TOKEN defined in the .env file, even though the documentation suggests it should. It only works when the token is provided explicitly via the --token argument.
Steps to Reproduce
- Copy
.env.example to .env.
- Set
GITHUB_TOKEN in the .env file:
GITHUB_TOKEN=ghp_MY_SECRET_TOKEN
- Run the following command:
uv run python -m code_review_benchmark.step0_fork_prs \
--org test--yuto-personal \
--name Gemini
Actual Behavior
The command fails with the following error:
Error: Set GITHUB_TOKEN or use --token
Expected Behavior
The script should load the token from the .env file automatically, as implied by the offline/README.md.
Workaround
Giving the token inline works correctly:
uv run python -m code_review_benchmark.step0_fork_prs \
--org test--yuto-personal \
--name Gemini \
--token ghp_MY_SECRET_TOKEN
Environment
- Repository:
withmartian/code-review-benchmark
- Script:
code_review_benchmark.step0_fork_prs
Describe the bug
The script
step0_fork_prsfails to recognize theGITHUB_TOKENdefined in the.envfile, even though the documentation suggests it should. It only works when the token is provided explicitly via the--tokenargument.Steps to Reproduce
.env.exampleto.env.GITHUB_TOKENin the.envfile:Actual Behavior
The command fails with the following error:
Error: Set GITHUB_TOKEN or use --tokenExpected Behavior
The script should load the token from the
.envfile automatically, as implied by theoffline/README.md.Workaround
Giving the token inline works correctly:
Environment
withmartian/code-review-benchmarkcode_review_benchmark.step0_fork_prs