Difference between revisions of "Using the Github UI to Make Pull Requests/nl"

From Joomla! Documentation

(Created page with "Dit artikel helpt met het begrijpen en aanmaken van Pull Reqeusts op GitHub, zodat je kunt deelnemen aan een project zoals Joomla!.")
(Updating to match new version of source page)
 
(58 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<noinclude><languages /></noinclude>
 
<noinclude><languages /></noinclude>
 
{{Top portal heading|color=white-bkgd|icon=book|icon-color=#5091cd|size=3x|text-color=#333|title=Handleiding}}
 
{{Top portal heading|color=white-bkgd|icon=book|icon-color=#5091cd|size=3x|text-color=#333|title=Handleiding}}
Dit artikel helpt met het begrijpen en aanmaken van Pull Reqeusts op GitHub, zodat je kunt deelnemen aan een project zoals Joomla!.
+
<div class="mw-translate-fuzzy">
 +
Dit artikel helpt met het begrijpen en maken van een Pull Reqeusts op GitHub, zodat je kunt deelnemen aan een project zoals Joomla!.
 +
Veel wijzigingen, inclusief bug fixes en functionele toevoegingen kunnen ingevoerd en beoordeeld worden via de normale GitHub pull request werkflow.
 +
</div>
  
== What is a Pull Request? ==
+
Some changes though are "substantial", and we ask that these be put through a bit of a design process and produce a consensus among the community and the core team.
A Pull Request is a <b>request</b> to <b>pull</b> some code to a repository (project) on GitHub.
 
  
In basic language your asking if some code changes/additions you made can be used in the project. This changes can be the solution for a bug or a new feature.
+
== Voor het doen van een pull request ==
Github has a simple web interface that makes it very easy to propose a simple change to code. You don't need to install any software or do anything beside register for a git hub account.
+
Een haastig voorgesteld pull request kan de kans op aanvaarding verminderen. Lage kwaliteit voorstellen, voorstellen voor eerder afgewezen functies, kunnen snel afgewezen worden, wat demotiverend op de niet voorbereide bijdrager kan zijn. Het voorbereiden voorafgaand aan het pull request kan het proces makkelijker maken.
  
== Identify the change you like to made ==
+
Although there is no single way to prepare for submitting a pull request, it is generally a good idea to pursue feedback from other project developers beforehand to ascertain that the pull request may be desirable. Although it may seem like a useful feature or bug fix, there may be reasons it cannot work that you have not considered (or could not know about).
First of all, map what changes you like to made.
 
  
For example, we like to add an icon for at the article info block, before the authors name. On the moment of writing, this icon is not displayed yet.
+
As a rule of thumb, receiving encouraging feedback from long-standing project developers, and particularly members of the core team or existing contributors, is a good indication that the pull request is worth pursuing.  To get feedback, we suggest you join the [https://volunteers.joomla.org/ Volunteers Portal] and join RingCentral (still referred to as Glip, just ask a team lead in the Volunteers portal to add you) to ask other developers.  Once you are ready, we suggest, before doing any code, you submit an issue to the [https://issues.joomla.org Joomla! issue tracker] with "RFC" at the beginning.  That will create a request for comments which will help you to identify any additional work or issues you may have to overcome to get your idea accepted.
  
[[File:Infoblock before.png|frame|none]]
+
== Wat is een Pull Request? ==
 +
<div class="mw-translate-fuzzy">
 +
Een Pull Request is een verzoek om code toe te voegen aan een Repository (project) op GitHub.
 +
</div>
  
== Find the file you want to modify on Github==
+
<div class="mw-translate-fuzzy">
If you don't have a GitHub account yet, sign up on [http://www.github.com GitHub]. It is free and very easy to do. After that, go to the [http://www.github.com/joomla/joomla-cms Joomla! CMS repository] and find the file you like to edit. You can navigate through by clicking on the folder and file name.
+
In wat simpelere taal: je dient een verzoek in voor het wijzigen van code in een project. Deze wijzigen kunnen de oplossing voor een bug zijn, maar bijvoorbeeld ook een nieuwe functie.
 +
</div>
 +
<div class="mw-translate-fuzzy">
 +
GitHub heeft een gebruikersinterface die het erg makkelijk maakt om wijzigingen in te dienen. Je hoeft hiervoor geen extra software te installeren. Het enig dat je hoeft te doen is je registreren op GitHub.
 +
</div>
  
This can be a hard step sometimes, because Joomla! counts more than 6000 files. In our example we have to edit the following file: /layouts/joomla/content/info_block/author.php.
+
<div class="mw-translate-fuzzy">
 +
== Bekijk welke wijzigingen je wilt maken ==
 +
</div>
 +
<div class="mw-translate-fuzzy">
 +
Als eerste bekijk je wat je precies wilt gaan wijzigen.
 +
</div>
  
[[File:Github joomlacms.png|thumbnail|none]]
+
<div class="mw-translate-fuzzy">
 +
Wij nemen het volgende voorbeeld: we willen een icoontje toevoegen  aan het artikel info-blok. Namelijk een icoontje voor de naam van de auteur. Op het moment van schrijven staat deze er nog niet.
 +
</div>
  
== Make your changes ==
+
[[File:Before-patch.jpg|The situation before the patch is applied]]
Navigate to the file, and edit the file by clicking on the pencil icon on the right.
+
== Vind het bestand dat je wilt aanpassen op GitHub ==
 +
<div class="mw-translate-fuzzy">
 +
Als je nog geen account op GitHub hebt, kun je deze aanmaken op [https://github.com GitHub]. Het is gratis en erg snel en makkelijk te doen. Ga hierna naar de [https://github.com/joomla/joomla-cms Joomla! CMS repository] en zoek het bestand dat je wilt wijzigen. Je kunt door de bestanden bladeren door op de map- en bestandsnamen te klikken.
 +
</div>
  
In our example, we add the following code to line 14 of the file: <tt>autor.php</tt>
+
Before you start navigating through the files check that you are in the right <code>branch</code> There is a dropdown box to the left next to the 'New pull request' button. It will show staging which is the current branch of the CMS being worked on <code>Staging</code>. For the development of the next 3.10 version. <code>3.10-dev</code> and <code>4.0-dev</code>. Branch names can change! Ask fellow Joomla developers if you are not sure which branch to select.
 +
[[File:Files-on-github.jpg|An example of the files in the Joomla GitHub repository]]
 +
<div class="mw-translate-fuzzy">
 +
Deze stap kan soms wat lastig zijn, omdat Joomla! meer  dan 6000 bestanden telt. In ons voorbeeld hebben we het volgende bestand nodig:
 +
/layouts/joomla/content/info_block/author.php
 +
</div>
 +
 
 +
[[File:The files changed2.png|The files changed]]
 +
 
 +
== Maak je wijzigingen ==
 +
<div class="mw-translate-fuzzy">
 +
Navigeer naar het bestand, en klik op het potlood icoontje om het bestand te bewerken.
 +
</div>
 +
 
 +
<div class="mw-translate-fuzzy">
 +
In ons voorbeeld voegen we op lijn 14 de volgende code toe:
 +
<tt>author.php</tt>
 +
</div>
 +
<source lang="xml">
 +
<div class=
 +
</source>
 +
and a closing
 
<source lang="xml">
 
<source lang="xml">
<span class="icon-user"></span>
+
</div>
 
</source>
 
</source>
  
[[File:Github_filechange.png|thumbnail|none]]
+
[[File:Edit-github2.jpg|The files to be edited on GitHub]]
 +
 
 +
<div class="mw-translate-fuzzy">
 +
Opmerking: je hebt wellicht de blauwe melding boven aan de pagina al opgemerkt. Deze melding vertelt je dat GitHub een kopie heeft gemaakt van het project, waar je je wijzigingen in kunt maken. Zo'n kopie heet een Fork. De wijzigingen die je maakt in deze kopie kunnen worden gebruikt in het project. Als je meer wilt weten over hoe GitHub werkt [https://guides.github.com/introduction/flow/ kun je dit artikel lezen] voor wat achtergrond informatie.
 +
</div>
 +
 
 +
== Voeg een titel en beschrijving toe ==
 +
<div class="mw-translate-fuzzy">
 +
Onder de editor kun je een titel en een beschrijving toevoegen.
 +
</div>
 +
 
 +
<div class="mw-translate-fuzzy">
 +
De titel moet zo kort mogelijk zijn, en duidelijk vertellen wat de PR doet.
 +
</div>
  
Note: you may have noticed the blue message above the page. This message is telling you that GitHub made a copy of the project for you, where you can made changes. This copy is called a Fork. The changes you made in this copy can be used in the original project. If you like to read more about how GitHub works, [https://guides.github.com/introduction/flow/ you can read this article] for some background information.
+
De beschrijving bevat meer detailleerde informatie over de Pull Request en informatie over hoe deze getest kan worden. Zorg ervoor dat deze informatie zo compleet en duidelijk mogelijk is. Wanneer je een Pull Request maakt is het ook de gewoonte om het issue ID te vermelden in de beschrijving. Dit doe je door een # (hashtag) te typen, volgend door het ID nummer. Dit nummer kun je direct achter de titel van de Issue vinden, in dezelfde notatie.
  
== Add a title and description ==
 
Below the editor, we can specify our Pull Request by adding a title and a description.
 
  
The title had to be sort, and must tell what this pull request does. The description contains more detailed information about the Pull request and some information how to test it. Make this information so complete and clear as possible.
+
[[File:Describe-changes.jpg|Describe the changes]]
  
[[File:Github description.png|thumbnail|none]]
+
== Dien de Pull Request in ==
 +
Klik op de knop "Propose file changes" en daarna op de knop "Create Pull request". Jou pull request is nu gemaakt!
 +
[[File:Create pull request.PNG|framed|center]]
  
== Send the Pull Request ==
+
[[File:Create pull request.PNG|framed|center]]
Click on the button "Propose file changes" and you're Pull Request is made!
 
  
== And now? ==
+
== En nu? ==
The only thing you had to do now is waiting until someone see this PR and test it. When someone reacts, you will be notified via an email. It may happen someone requested addition information, so try to stay up-to-date with you Pull Request.
+
Het enige dat je nu hoeft te doen is afwachten totdat iemand de PR test. Als iemand reageert, ontvang je hierover een email. Het kan gebeuren dat iemand wat meer informatie wil, dus probeer de reacties op jou PR zo goed mogelijk bij te houden.
  
If a Pull Request is twitce successfully tested, someone with moderator right will add the label 'RTC' to it. RTC means: Ready To Commit'. In basic language it tells someone who has admin right: He, this Pull request is successfully tested, and can be add to Joomla!. The admin will add (Merge) the project to the Joomla! CMS github repository. You Pull Request is definitive now, and well be present in the next version of Joomla!.
+
Als de Pull Request twee maal succesvol is getest voegt een moderator het label "RTC" toe. RTC staat voor "Ready To Commit". Dit label vertelt een administrator: Deze PR is succesvol getest en kan nu toegevoegd worden aan Joomla!. De administrator zal dan de wijzigen toevoegen (Merge) aan de Joomla! CMS GitHub repository. Uw PR is nu definitief doorgevoerd en zal in de volgende versie van Joomla! zitten! als het het oplossen van een bug was of in een punt-release als de PR een nieuwe functie was.
  
 
<noinclude>
 
<noinclude>

Latest revision as of 11:13, 21 September 2021

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français
Handleiding

Dit artikel helpt met het begrijpen en maken van een Pull Reqeusts op GitHub, zodat je kunt deelnemen aan een project zoals Joomla!. Veel wijzigingen, inclusief bug fixes en functionele toevoegingen kunnen ingevoerd en beoordeeld worden via de normale GitHub pull request werkflow.

Some changes though are "substantial", and we ask that these be put through a bit of a design process and produce a consensus among the community and the core team.

Voor het doen van een pull request

Een haastig voorgesteld pull request kan de kans op aanvaarding verminderen. Lage kwaliteit voorstellen, voorstellen voor eerder afgewezen functies, kunnen snel afgewezen worden, wat demotiverend op de niet voorbereide bijdrager kan zijn. Het voorbereiden voorafgaand aan het pull request kan het proces makkelijker maken.

Although there is no single way to prepare for submitting a pull request, it is generally a good idea to pursue feedback from other project developers beforehand to ascertain that the pull request may be desirable. Although it may seem like a useful feature or bug fix, there may be reasons it cannot work that you have not considered (or could not know about).

As a rule of thumb, receiving encouraging feedback from long-standing project developers, and particularly members of the core team or existing contributors, is a good indication that the pull request is worth pursuing. To get feedback, we suggest you join the Volunteers Portal and join RingCentral (still referred to as Glip, just ask a team lead in the Volunteers portal to add you) to ask other developers. Once you are ready, we suggest, before doing any code, you submit an issue to the Joomla! issue tracker with "RFC" at the beginning. That will create a request for comments which will help you to identify any additional work or issues you may have to overcome to get your idea accepted.

Wat is een Pull Request?

Een Pull Request is een verzoek om code toe te voegen aan een Repository (project) op GitHub.

In wat simpelere taal: je dient een verzoek in voor het wijzigen van code in een project. Deze wijzigen kunnen de oplossing voor een bug zijn, maar bijvoorbeeld ook een nieuwe functie.

GitHub heeft een gebruikersinterface die het erg makkelijk maakt om wijzigingen in te dienen. Je hoeft hiervoor geen extra software te installeren. Het enig dat je hoeft te doen is je registreren op GitHub.

Bekijk welke wijzigingen je wilt maken

Als eerste bekijk je wat je precies wilt gaan wijzigen.

Wij nemen het volgende voorbeeld: we willen een icoontje toevoegen aan het artikel info-blok. Namelijk een icoontje voor de naam van de auteur. Op het moment van schrijven staat deze er nog niet.

The situation before the patch is applied

Vind het bestand dat je wilt aanpassen op GitHub

Als je nog geen account op GitHub hebt, kun je deze aanmaken op GitHub. Het is gratis en erg snel en makkelijk te doen. Ga hierna naar de Joomla! CMS repository en zoek het bestand dat je wilt wijzigen. Je kunt door de bestanden bladeren door op de map- en bestandsnamen te klikken.

Before you start navigating through the files check that you are in the right branch There is a dropdown box to the left next to the 'New pull request' button. It will show staging which is the current branch of the CMS being worked on Staging. For the development of the next 3.10 version. 3.10-dev and 4.0-dev. Branch names can change! Ask fellow Joomla developers if you are not sure which branch to select. An example of the files in the Joomla GitHub repository

Deze stap kan soms wat lastig zijn, omdat Joomla! meer dan 6000 bestanden telt. In ons voorbeeld hebben we het volgende bestand nodig: /layouts/joomla/content/info_block/author.php

The files changed

Maak je wijzigingen

Navigeer naar het bestand, en klik op het potlood icoontje om het bestand te bewerken.

In ons voorbeeld voegen we op lijn 14 de volgende code toe: author.php

<div class=

and a closing

</div>

The files to be edited on GitHub

Opmerking: je hebt wellicht de blauwe melding boven aan de pagina al opgemerkt. Deze melding vertelt je dat GitHub een kopie heeft gemaakt van het project, waar je je wijzigingen in kunt maken. Zo'n kopie heet een Fork. De wijzigingen die je maakt in deze kopie kunnen worden gebruikt in het project. Als je meer wilt weten over hoe GitHub werkt kun je dit artikel lezen voor wat achtergrond informatie.

Voeg een titel en beschrijving toe

Onder de editor kun je een titel en een beschrijving toevoegen.

De titel moet zo kort mogelijk zijn, en duidelijk vertellen wat de PR doet.

De beschrijving bevat meer detailleerde informatie over de Pull Request en informatie over hoe deze getest kan worden. Zorg ervoor dat deze informatie zo compleet en duidelijk mogelijk is. Wanneer je een Pull Request maakt is het ook de gewoonte om het issue ID te vermelden in de beschrijving. Dit doe je door een # (hashtag) te typen, volgend door het ID nummer. Dit nummer kun je direct achter de titel van de Issue vinden, in dezelfde notatie.


Describe the changes

Dien de Pull Request in

Klik op de knop "Propose file changes" en daarna op de knop "Create Pull request". Jou pull request is nu gemaakt!

Create pull request.PNG
Create pull request.PNG

En nu?

Het enige dat je nu hoeft te doen is afwachten totdat iemand de PR test. Als iemand reageert, ontvang je hierover een email. Het kan gebeuren dat iemand wat meer informatie wil, dus probeer de reacties op jou PR zo goed mogelijk bij te houden.

Als de Pull Request twee maal succesvol is getest voegt een moderator het label "RTC" toe. RTC staat voor "Ready To Commit". Dit label vertelt een administrator: Deze PR is succesvol getest en kan nu toegevoegd worden aan Joomla!. De administrator zal dan de wijzigen toevoegen (Merge) aan de Joomla! CMS GitHub repository. Uw PR is nu definitief doorgevoerd en zal in de volgende versie van Joomla! zitten! als het het oplossen van een bug was of in een punt-release als de PR een nieuwe functie was.