-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Error: Not Found when trying to create a PR to a sparse-cloned repo. #652
Comments
"Not Found" is a 404 response returned from GitHub's API and I think occurs here: https://github.com/peter-evans/create-pull-request/blob/master/src/github-helper.ts#L64 That would indicate that this is an authentication problem, or the repository being targeted is incorrect. In the log there should be line that says Double check the following for your
|
@peter-evans I'm getting the same error:
here is the section you suggested we check
which looks good to me. |
@raffaelespazzoli That does look like the same error. Thank you for providing details.
That seems unlikely to be the cause. The branch itself was actually pushed to the remote successfully. You can find it here: If possible, could you try re-running the workflow for the same |
@ndac-todoroki @raffaelespazzoli I believe I've identified how this error is occurring. The error was confusing because of a small mistake I made in error handling. I've fixed the mistake in version |
I tested again and it worked for me this time, however the target PR had been closed in the meantime, so I am not sure if I am testing in the same exact conditions as before. Anyway the push worked. Thanks for the prompt fix. |
@ndac-todoroki @raffaelespazzoli I'll close this issue for now, but if you have any further problems please let me know. |
I am having this issue, the PR is not created but the branch is created and pushed.
I need to run it when a tag is pushed, exclusively. In the same project, I am using your action with no issues in a I tried multiple times, and it fails |
I found the log where it returns The branch was pushed, so I think your token permissions are fine. The only explanation I can think of is that this is a transient error when calling the GitHub API, or some temporary problem on GitHub's side. It would be very helpful if you could test it again to see if it no longer returns an error. I think I will try to add retry logic to the API calls to try and catch these errors. |
In the latest version, |
Possible related to #634, but not sure if the background is the same.
Subject of the issue
I'm not using the
actions/checkout@v2
to clone the target repository, since it is huge (actions/checkout refuses to clone).I sparseCheckout that repo, made changes to a certain directory.
create-pull-request
crashes after successfully updating/creating a new branch to the remote.Steps to reproduce
The checkout part is:
Then create-pull-request:
Sorry this is a private repo and cannot paste the exact thing, but only the strings are edited.
sparse-checkout works correctly, and push is working too.
I wanted to look at the sources, but wasn't able to tell where the
Not Found
error message comes from :(The text was updated successfully, but these errors were encountered: