Claude Code for Product Designers
Lesson 24 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

2.10 A second look before merging

Next lesson in 8 s

2.9 Your first pull request

Adam explains what pushing a branch means, then has Claude push the branch and open the course's first pull request, and shows the Vercel preview that comes with it.

What you'll learn

  1. "Push the branch" means sending the local branch and its commits to GitHub; until then they only exist on your Mac.
  2. GitHub's branch selector lists branches that have been pushed; a "had recent pushes" banner appears after a push.
  3. Claude can push and open a PR in one step and returns a link to it.
  4. The Claude app marks a session that has a PR with an icon; green means open, not merged.
  5. The PR page shows Claude's description, the full diff and the lines added vs removed.
  6. Many teams prefer small PRs (around 200–500 lines at most); AI makes PRs larger, but AI code review makes that less of a problem.
  7. An open PR doesn't change the live site; Vercel's bot comments with a preview deployment of the branch.
  8. Vercel previews open only for people logged into Vercel and on your team.

Chapters

  1. 00:00What pushing a branch means
  2. 01:28Pushing and opening the PR
  3. 02:54A tour of the pull request
  4. 04:53Vercel's preview deployment
  1. 00:01Okay, this is pretty exciting.
  2. 00:02We are about to raise our first PR.
  3. 00:04Again, a quick recap.
  4. 00:05We have implemented the my bookings view.
  5. 00:07We made some refinements.
  6. 00:09We have updated and revised our CLAUDE.md file.
  7. 00:12We are all set to raise the PR right now.
  8. 00:15I'm going to go back to my main session with Claude and for this branch, everything that there is to know is stored within this one session.
  9. 00:25And actually in the bar, I already have a suggestion which is exactly what I was about to say, which is just push the branch and open a PR.
  10. 00:33Now, before I send before I send it, let's take a pause about and like unpack what the push the branch might mean.
  11. 00:40So right now, we are working in this feature my bookings branch and this branch has four commits, one, two, three and four.
  12. 00:51This one comes from like the origin like like the main branch, but so far all of this is just living locally because we haven't pushed these changes.
  13. 01:00We can actually confirm this by going back to our GitHub.
  14. 01:04And over here, I'm going to refresh the page just to make sure.
  15. 01:06And on GitHub, on the repository page specifically, if I head over here and click on this main selector, this is going to give me a list of all branches
  16. 01:16which are pushed to this remote repository.
  17. 01:19And as you can see right now, it only has one, the main.
  18. 01:23So when I hit enter now and ask Claude to push the branch and open a PR, in a second, what's going to happen is we are going to see
  19. 01:33this branch showing up here and also the pull request tab is going to show up our first PR.
  20. 01:41So it already says here that feature my booking my bookings had recent pushes.
  21. 01:46I'm going to refresh it.
  22. 01:49And now it is indeed listed over here, meaning our work is secured.
  23. 01:53It's already out there.
  24. 01:55So in case anything happens to my computer locally, Nothing is really lost.
  25. 02:02And then let's see.
  26. 02:05Claude is now attempting to open up a pull request and once it's done, it's going to give us a link to this PR.
  27. 02:14So let's give it a second.
  28. 02:18Right. So this is like these are the connectivity internet connectivity issues which I have right now.
  29. 02:28It might actually take a few attempts here to open up the pull request.
  30. 02:33I'm just going to sit and be patient.
  31. 02:37Okay, and we are done.
  32. 02:40Our first PR is open up.
  33. 02:42I had to pause because you know, I had some internet connection issues.
  34. 02:46I ended up switching and using my hotspot, but it has finally worked.
  35. 02:53And there are a couple of things happening here.
  36. 02:55So first of all, that session on the left hand sidebar has now that fancy icon which stands for PR being connected to this particular session.
  37. 03:05And the fact that it's green means that it is ready to be reviewed.
  38. 03:09It has not been merged yet.
  39. 03:12Now okay let's see.
  40. 03:15I'm going to I'm going to now click over here to go and open up and see that PR line and it is now indeed listed over here on that
  41. 03:25repository page on GitHub under pull requests.
  42. 03:28If I now go into pull requests and I click over here, I get to see the entire PR description which Claude helped us put together.
  43. 03:37And also this is where we get to see like the entire code diff for this PR and how many lines of code in total we are adding versus removing.
  44. 03:46Again, we are adding like a new feature, so it's totally fine.
  45. 03:50It's totally expected for the line diff to be a little bit larger.
  46. 03:54Now depending on which engineering teams you're working with and like the conventions in those teams, um might asked to try create smaller PRs.
  47. 04:05In fact, this has been like the standard approach for a really long time um to like try to make PRs as small as possible, typically perhaps around 200 500
  48. 04:18lines of code at most.
  49. 04:20Um in the age of AI, PRs are getting, you know, larger and larger partly because of comments that Claude keep adding uh everywhere it can.
  50. 04:31And um but also it has become it's becoming less of an issue because um as we are about to find out uh in the next video, the code review
  51. 04:40which historically was something that mostly humans were doing is now also taken care uh taken care of by AI agents.
  52. 04:50So our PR is set.
  53. 04:53Um it doesn't really mean that this work is merged with our live application.
  54. 04:58In fact, I can go back to our Vercel deployment.
  55. 05:03Uh I can click over to click on the Tonik Parking course that Vercel that app.
  56. 05:07I'm going to refresh the page and as you can see there is nothing here about that my bookings view.
  57. 05:13But uh now because we have that GitHub repository connected with a Vercel project, what it means is that there is now this comment over here created automatically by a
  58. 05:23Vercel bot which is letting us know that Vercel has created a deployment for this PR or this branch specifically.
  59. 05:31And I can actually click over here on this preview button and this is going to open up um a special kind of URL with this deployment being ready for
  60. 05:41us to review, not just us, anyone else on our team uh before uh merging so that we can test through everything and uh make sure that, you know, not
  61. 05:51just the code it's not just the code that looks safe but also uh the like final experience in the browser is safe as well.
  62. 05:58Uh this is also by the way something that uh only people logged into Vercel uh and being part of your team in Vercel are to be able to open
  63. 06:07up. So it's not like this URL is available to anyone on the internet.
  64. 06:12So yeah, that is how working with PRs looks like now that we have GitHub and we have Vercel connected.
  65. 06:20In the next video, before we merge this work and before we make it appear on the, you know, main deployment, we are going to talk about a code review.
  66. 06:29So I'll see you in the next video.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…