Azure / Azure/azure-rest-api-specs
[context.js] Cannot find PR for commit, if PR just closed
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
Example:
https://github.com/Azure/azure-rest-api-specs/actions/runs/14024783618/job/39261608480#step:3:28
> Mon, 24 Mar 2025 00:46:32 GMT Could not find PR for 1495488d390098996b40c84e5b1c5ee5d2b989aa in abdulgagit:azure-rest-api-specs from either the "commits" or "search" REST APIs
The PR was also closed at "00:46:00", so my guess is the APIs can return empty if a PR was just closed. After the PR is closed, the search API now does return the PR.
https://github.com/Azure/azure-rest-api-specs/pull/33430#event-16946812361
This error can probably be ignored, since if the PR is closed, no need to update the labels anyway. Or, we could retry or ignore such errors, but I worry this might hide real errors.
Contributor guide
Assessment
This issue has not been assessed yet.