You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following error on when my workflow tries to use the action to update an existing PR on private repositories
Attempting creation of pull request
A pull request already exists for meetalbert:main-rebase/notifications_dbrouter_on_7811
Fetching existing pull request
Attempting update of pull request
Error: Cannot read properties of undefined (reading 'number')
Describe your issue here.
Starting on 2024-03-09 I started seeing the above error in one of our workflows where the action fails to update existing pull requests. We were using version v4.0.0 but I upgraded to the latest version of the action and the problem persists. We have not changed anything in the workflow that started failing in over a year.
The action appears to be getting an empty list back when querying the github API for pull requests here. Then when indexing into the list here it gets undefined back.
Steps to reproduce
I was able to reproduce the empty list result using the github API and curl but for a private repos only
You are correct that did fix it. In my original test I did not merge the workflow into the master since the workflow I was testing was pre-merge. Thanks for the help!
Subject of the issue
Getting the following error on when my workflow tries to use the action to update an existing PR on private repositories
Describe your issue here.
Starting on 2024-03-09 I started seeing the above error in one of our workflows where the action fails to update existing pull requests. We were using version v4.0.0 but I upgraded to the latest version of the action and the problem persists. We have not changed anything in the workflow that started failing in over a year.
The action appears to be getting an empty list back when querying the github API for pull requests here. Then when indexing into the list here it gets undefined back.
Steps to reproduce
I was able to reproduce the empty list result using the github API and curl but for a private repos only
^^ Will return empty list
It seems to be alleviated if you remove the OWNER from the
head
parameterFor public repos it seems to work either way
If this issue is describing a possible bug please provide (or link to) your GitHub Actions workflow.
Unfortunatley I cannot provide the full workflow here is out use if the action within the workflow though. Not sure if that will be helpful or not
The text was updated successfully, but these errors were encountered: