Exploring Additional Slash Commands
In this lesson we will take a look at some additional slash commands and their usage.
We saw a few of the most commonly employed slash commands used through a typical pull request process. We’ll expand on that next by creating a new PR and experimenting with a few other commands.
Creating a PR for experimentation #
git checkout mastergit pullgit checkout -b my-pr
We created a new branch called my-pr
.
Next, we’ll make a minor change to the source code and push it to the newly created branch. Otherwise, GitHub would not allow us to make a pull request if nothing changed.
echo "My PR" | tee README.mdgit add .git commit \--message "My second PR with prow"git push --set-upstream origin my-pr
We are finally ready to create a pull request.
jx create pullrequest \--title "My PR" \--body "What I can say?" \--batch-mode
Please open the link from the output in your favorite browser.
You will notice that this time your colleague is automatically assigned as a reviewer. Prow took the list of reviewers from the OWNERS
file and saw that there are only two available. Since you made the pull request, it decided to assign the other user as the reviewer. It wouldn’t ...