# Manage Git Pull Requests

### Tasks

1. SSH into the storage server as user `max` using the given credentials.
2. Locate the already cloned Git repository in Max's home directory.
3. Confirm the repository contains Sarah’s story and commit history using `git log`.
4. Verify Max's story is pushed to the `story/fox-and-grapes` branch.
5. Open the Gitea UI from the top bar of the lab environment.
6. Log in to Gitea as user `max`.
7. Create a Pull Request:
   * Title: `Added fox-and-grapes story`
   * Source branch: `story/fox-and-grapes`
   * Destination branch: `master`
8. Assign `tom` as a reviewer to the PR through the Gitea UI.
9. Log out of Gitea.
10. Log in to Gitea as user `tom`.
11. Review and approve the Pull Request.
12. Merge the PR into the `master` branch.
13. Take screenshots (or a screen recording) as evidence of each key action.

### Steps

{% stepper %}
{% step %}
SSH max Login with password `Max_pass123`

```
ssh max@ststor01
```

{% endstep %}

{% step %}
Navigate to the cloned repo

```
cd story-blog
```

{% endstep %}

{% step %}
Confirm Sarah's and Max’s commits exist

```
git log
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FHlbLlNX2stpoJlraaBaJ%2Fimage.png?alt=media&#x26;token=f44b291a-fbdb-4d86-8976-04caade51531" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Verify `story/fox-and-grapes` exists

```
git branch -a
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2F7eFxPJYd1zUHve9Uj5TJ%2Fimage.png?alt=media&#x26;token=b1956a8b-b218-418e-8478-94abef7169e6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Open **Gitea UI and**  Login as `max` / `Max_pass123`

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FQDIlNU2xaIuIdU3VfF5Z%2Fimage.png?alt=media&#x26;token=132b6767-6006-473f-92d4-2b96278f314e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Create PR in **`story-blog`** repo:

* Title: `Added fox-and-grapes story`
* From branch: `story/fox-and-grapes`
* To branch: `master`

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FmsY8gU4yFw9bBSx0Eu0X%2Fimage.png?alt=media&#x26;token=7366d617-3b8b-40a6-9abb-43c532753638" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In PR page → Click **Reviewers** → Add `tom`

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FiZIbccwMzDK57LMcmwL2%2Fimage.png?alt=media&#x26;token=6b8aa446-df57-4b90-b35d-3e73c8d2390e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Logout from Max's Gitea account. Login as `tom` / `Tom_pass123`

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FhhmFhBFMNY203vpxiNgU%2Fimage.png?alt=media&#x26;token=a2d53c9f-98be-4309-b06d-99cf2b65e567" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Open the PR → Review → Approve → Merge

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FgEX7NEjZhk2VSBg6arvy%2Fimage.png?alt=media&#x26;token=5a787663-e79d-4937-9abf-8ced91b72cef" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}
The pull request has been merged as [`6764b4acf8`](http://git.stratos.xfusioncorp.com/sarah/story-blog/commit/6764b4acf839c03b51983c778467ab4c436d24b4).

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FVXg36JJ3L7wLk00NqcLn%2Fimage.png?alt=media&#x26;token=0b4165a9-8c0a-46e0-a69b-58a8d1437ba9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FyLEM9j8DWfelqfErHiNn%2Fimage.png?alt=media&#x26;token=d8414aba-8b95-40d7-973f-d4bfcd661253" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
