adding a check for finished PRs