Improve code for outdated success

refactor code to keep status in the pull_requests.yaml file in line with the status on github