I am currently setting up the CI pipeline for a relatively new project ( 3 merged PRs ) specifically built to be used with netlify-functions i.e this project contains an index static HTML page and all netlify-functions used by another project.
The problem is, the netlify pull request number mismatches with the GitHub pull request number. This has a direct effect on the wait-for-netlify-action plugin which is being used to generate the preview URL for the deployment made from the pull request.
Currently, the Github pull request number is 9 however on Netlify the number is 4
See attached screenshot containing the error from the Github CI Job;
You mentioned that at the time of submitting your post, there were 3 merged PRs so wouldn’t the Netlify pull request number 4 be correct and not 9? Forgive me if I’ve missed something here…
Looking into your Deploys page it appears you had multiple deploy preview urls with the same pull request number but that’s no longer the case. Since PR 15, each deploy preview url is unique and matches the PR. Are you still seeing the issue? In the meantime, I’ll continue to try to repro (I’m unable to at the moment). Thanks!