-
Notifications
You must be signed in to change notification settings - Fork 628
Fix #889: add missing repo info and fix wrong argument to gh #890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
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
Unless executed in a git repository, `gh` no longer seems to get information about the current repo where it's executing, which leads to failures like the one in tensorflow#889. A simple solution is to set the `$GH_TOKEN` environment variable, which `gh` uses if it's defined.
@mhucka
mhucka
changed the title
(削除) Set GH_REPO for the
(追記) Fix #889: add missing repo info and fix wrong argument to gh (追記ここまで)
Aug 29, 2025
gh CLI tool (削除ここまで)
@mhucka
mhucka
added
area/health
Involves general matters of project configuration, health, maintenance, and similar concerns
area/ci
Involves continuous integration workflows and infrastructure
labels
Aug 30, 2025
Closing this, after off-line discussions led us to conclude that the whole workflow should be reverted back to a prior state. PR #892 will revert it.
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.
Uh oh!
There was an error while loading. Please reload this page.
gh pr viewcan take the PR info in a number of ways, but does not recognize the URLs produced by${{github.event.pull_request.url}}as being a pull request URL. This reuslts in failures like the one in #889.This workflow was working before. Something must have changed – perhaps a version update to
ghchanged the behavior. In any case, one straightforward way to resolve it is to give it a PR number instead of a URL.If a PR number is given, though, then
ghalso needs to be told which repository the PR number refers to.ghwould normally get this info from the current repo where it's executing, but since for efficiency we skip doing a git check-out for that step, it needs to be told explicitly. A simple solution is to set the$GH_TOKENenvironment variable, whichghuses if it's defined.