Skip to content
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

Action failing to update existing PRs on differently named fork #3030

Closed
coleenquadros opened this issue Jul 18, 2024 · 3 comments
Closed

Action failing to update existing PRs on differently named fork #3030

coleenquadros opened this issue Jul 18, 2024 · 3 comments

Comments

@coleenquadros
Copy link

coleenquadros commented Jul 18, 2024

I have a fork of a repo in a different org under a different name. Example if original/repo1 and my fork is copy/copy-repo1. It creates the PR since the head_repo is provided in the create request. But I am seeing an issue on v6 when updating an already existing PR where I see the following error -> Error: Cannot read properties of undefined (reading 'number')

head_repo: headRepository,

I was wondering if there is a way to provide the head_repo similar to what was done here when listing the pull requests and updating them.

@peter-evans
Copy link
Owner

Hi @coleenquadros

What version of the action are you using? I fixed an issue that might be related to what you are seeing in v6.0.1.

@coleenquadros
Copy link
Author

@peter-evans I am using v6. I have a recent fork of your repo and I am referencing the action from there

@peter-evans
Copy link
Owner

@coleenquadros Please double check and make 100% sure that you are using at least v6.0.1, where the fix was made. I can't tell if your fork (and the way you are referencing the forked action) is actually running the latest code. One way you could test to be sure is by not using your fork and calling peter-evans/create-pull-request@v6. If you still see the same issue, then I can look into it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants