Under the openshift organization we have various github repos and each merged PR to those repos will trigger an openshift release build. Finding which release was triggered by a PR can be a pain, we will need to manually look at when the PR was merged and then go to Openshift release page and find a release job which was triggered after the time the PR was merged, check its page and see if it contains a PR if not move on to the next release page. My goal in this small tool is to automate this task.
-
Clone the repo or download the executable.
-
Give it execute permissions: chmod +x ./ocp-release-finder
-
Trigger the tool:
- Simple usage:
./ocp-release-finder https://github.com/openshift/console/pull/5628
- With github AccessToken:
export AccessToken="PASTE YOUR ACCESS TOKEN" ./ocp-release-finder https://github.com/openshift/console/pull/5628
** This is needed in case you are using this tool many times in a short time frame. We use github API to retrieve information about the PR, when we use the API to frequently as an unauthenticated user we will get blocked, see information about how to set up an access token in link
- With Debug:
./ocp-release-finder https://github.com/openshift/console/pull/5628 --debug
This tool will work only one PRs that are newly merged PRs and have releases on Openshift release page that contain them. The reason is that this tool is a web crawler that automate the manual process so if the PR is old then it will not be on the release page.