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
Handle closed pull requests and empty pull requests with no commit (#6108)
Fixes#6106. The issue is
caused by an closed empty pull request with no commit
pytorch/pytorch#143615.
* Handle a PR with no commit in `fetchPR`. This function is used by
Dr.CI to get all the commits in a pull request.
* Make sure that Dr.CI only queries for open pull requests.
* Fix the broken HUD PR page https://hud.pytorch.org/pr/143615
### Testing
Both
```
curl --request POST \
--url 'http://localhost:3000/api/drci/drci' \
--header 'Authorization: <REDACTED>' \
--data 'repo=pytorch'
```
and
```
curl --request POST \
--url 'http://localhost:3000/api/drci/drci?prNumber=143615' \
--header 'Authorization: <REDACTED>' \
--data 'repo=pytorch'
```
are working ok now.
https://torchci-git-fork-huydhn-fix-drci-issue-6106-fbopensource.vercel.app/pr/143615
can be loaded now.
0 commit comments