The original code relied on hub pr which requires a local git checkout. That
might not work if niv-updater-action is used without previous checkout (a
completely legitimate use case).
This change switches to using GraphQL query to GitHub, that fetches the PR
number based on the branch name.
The original code relied on
hub pr
which requires a local git checkout. That might not work if niv-updater-action is used without previous checkout (a completely legitimate use case).This change switches to using GraphQL query to GitHub, that fetches the PR number based on the branch name.
Fixes #38