How to obtain the YOLO achievement on GitHub
This week, I set out to learn about GitHub’s YOLO achievement and how to obtain it. This achievement represents a bad practice that occurs when a user merges a pull request that has been assigned to another reviewer without giving the reviewer time to actually review it.
I attempted to obtain this achievement by following these steps.
-
I chose one of my repositories that I had also cloned on my local computer. In the repository Settings, I went to the Collaborators section and added a GitHub friend. I asked them to accept the invitation, which they did.
-
I created an issue to define a task to resolve (this step is not necessary, but I did it). Next, I created a local branch, referencing the issue number in its name. I made two commits to resolve the issue.
-
Finally, I pushed the new branch and clicked the button to create a pull request in GitHub’s interface. On the right side of the screen, I selected my GitHub friend as a reviewer. However, instead of waiting for their review, I immediately merged the pull request.
Getting the YOLO GitHub achievement
- Add a collaborator to one of my repositories and wait for them to accept the invitation
- Create a new branch with some commits to resolve a task
- Create a pull request and assign the collaborator as a reviewer
- Merge the pull request immediately without waiting for the collaborator's review