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
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Describe the bug
This bug appears when you click "Re-run all checks" or "Re-run failed checks button on the checks tab in one repository.
This bug happens when you already have a pull request from a forked repository to an original repository and click the above buttons.
This bug doesn't affect when you create a pull request directly into the repository without a forked repository.
To Reproduce
Steps to reproduce the behavior:
Make a pull request from a forked repository to an original repository
Click on the buttons showed above
You will get the error "Cannot read property 'filter' of undefined" as a result.
The text was updated successfully, but these errors were encountered:
After investigation, I found out that GitHub doesn't send me a pull request attribute in this specific situation when the pull request is from a forked repository to an original repository and I clicked the buttons "Re-run" I get an empty pull request attribute:
in the other situation when I create a pull request directly without using a forked repository and I clicked the "Re-run buttons" the pull request field is there:
Note: The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array and a null value for head_branch.
Which feels related to this issue. We know from #199 that we receive the CheckSuiteEvent for both the target repository against which a pull request was filed and a source repository when the app is also installed there. I think we'll need to filter the CheckSuiteEvent's to make sure they are being triggered for the right repository.
Describe the bug
This bug appears when you click "Re-run all checks" or "Re-run failed checks button on the checks tab in one repository.
This bug happens when you already have a pull request from a forked repository to an original repository and click the above buttons.
This bug doesn't affect when you create a pull request directly into the repository without a forked repository.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: