Update make-a-pr.md

This commit is contained in:
Ereshkigal 2021-02-05 19:50:47 +01:00
parent 61abae6692
commit 6b9e7e3f76

View File

@ -8,20 +8,25 @@ This will learn you how to contribute to SPT-Aki repositories on dev.sp-tarkov.c
### Forking a project and editing its files ### Forking a project and editing its files
1. Fork the project you want to contribute to. 1. Fork the project you want to contribute to.
![](./assets/img/spt-aki/tutorials/pull-requests/img01.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img01.png)
2. *(optional)* Change the forked repository name and informations 2. *(optional)* Change the forked repository name and informations
![](./assets/img/spt-aki/tutorials/pull-requests/img02.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img02.png)
3. By clicking the "Fork Repository" it should bring you directly to your newly "copied" repository. 3. By clicking the "Fork Repository" it should bring you directly to your newly "copied" repository.
You can now directly modify the file from the gitea website file editor. You can now directly modify the file from the gitea website file editor.
![](./assets/img/spt-aki/tutorials/pull-requests/img03.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img03.png)
![](./assets/img/spt-aki/tutorials/pull-requests/img04.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img04.png)
4. Add a helpful commit message (at the bottom of the page) and click on the "Commit changes" button. 4. Add a helpful commit message (at the bottom of the page) and click on the "Commit changes" button.
![](./assets/img/spt-aki/tutorials/pull-requests/img05.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img05.png)
You should see your changes in the file. You should see your changes in the file.
![](./assets/img/spt-aki/tutorials/pull-requests/img06.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img06.png)
<div class="doc-info">You can now create a pull request on the original repository to submit your changes!</div> <div class="doc-info">You can now create a pull request on the original repository to submit your changes!</div>
@ -29,15 +34,19 @@ You should see your changes in the file.
### Creating the actual Pull Request ### Creating the actual Pull Request
1. Go onto the original repository page and click the "New Pull Request" button. 1. Go onto the original repository page and click the "New Pull Request" button.
![](./assets/img/spt-aki/tutorials/pull-requests/img07.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img07.png)
2. Select your repository in the right dropdown menu (should update the page and highlight the changes between your fork and the original repository). 2. Select your repository in the right dropdown menu (should update the page and highlight the changes between your fork and the original repository).
![](./assets/img/spt-aki/tutorials/pull-requests/img08.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img08.png)
3. Click the "New Pull Request" button. 3. Click the "New Pull Request" button.
![](./assets/img/spt-aki/tutorials/pull-requests/img09.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img09.png)
4. Fill the form with informations that would help others better understand your changes and click the "Create Pull Request" button. 4. Fill the form with informations that would help others better understand your changes and click the "Create Pull Request" button.
![](./assets/img/spt-aki/tutorials/pull-requests/img10.png) ![](./assets/img/spt-aki/tutorials/pull-requests/img10.png)
<div class="doc-info">You have now created a pull request!</div> <div class="doc-info">You have now created a pull request!</div>
@ -46,4 +55,5 @@ You should see your changes in the file.
## Official links ## Official links
**Guilded link**: https://www.guilded.gg/senkospub **Guilded link**: https://www.guilded.gg/senkospub
**Written by Sgt.Floof** **Written by Sgt.Floof**