knl / niv-updater-action

A GitHub Action that creates meaningful pull requests with updates to your niv-managed dependencies, so you don't have to do menial chores.
BSD 3-Clause "New" or "Revised" License
29 stars 11 forks source link

Fix: Get PR number via GraphQL #39

Closed knl closed 3 years ago

knl commented 3 years ago

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