Using the Github UI to Make Pull Requests/es: Difference between revisions

From Joomla! Documentation

Created page with "Usar la interfaz de usuario de Github para Hacer Solicitudes"
 
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(34 intermediate revisions by 2 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=Tutorial}}
{{Top portal heading|color=white-bkgd|icon=book|icon-color=#5091cd|size=3x|text-color=#333|title=Tutorial}}
This article helps you understanding and creating Pull Requests on Github, so you can contribute to a project like Joomla!.
<div class="mw-translate-fuzzy">
Este artículo te ayuda a comprender y crear Solicitudes de Extracción en Github, así que puedes contribuir a un proyecto como el de Joomla!.
</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 you are 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.
== Before making a 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.
A hastily proposed pull request can hurt its chances of acceptance. Low quality proposals, proposals for previously rejected features, may be quickly rejected, which can be demotivating for the unprepared contributor. Laying some groundwork ahead of the pull request can make the process smoother.


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).


== Identify the change you like to made ==
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.
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.
== ¿Qué es una Solicitud de Extracción? ==
<div class="mw-translate-fuzzy">
Un Solicitud de Extracción es una <b>solicitud</b> para que se<b>extraiga</b> un poco de código a un repositorio (proyecto) en GitHub.
</div>


[[File:Infoblock before.png|frame|none]]
<div class="mw-translate-fuzzy">
En lenguaje básico te estás preguntando si algún cambio/adición de código que hayas realizado se pueden utilizar en el proyecto. Este cambio puede ser la solución a un error o una nueva característica.
</div>
<div class="mw-translate-fuzzy">
Github tiene una interfaz web simple que hace que sea muy fácil proponer un simple cambio de código. No necesitas instalar ningún software o hacer otra cosa además de registrarse para tener una cuenta 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.
== Identificar el cambio que te gustaría a hacer ==
</div>
<div class="mw-translate-fuzzy">
Primero de todo, señala qué cambios te gustaría hacer.
</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">
Por ejemplo, nos gustaría añadir un icono en el bloque información de artículo, antes que el nombre de los autores. En el momento de la escritura, este icono aún no aparece.
</div>


[[Image:Github joomlacms.png]]
[[File:Before-patch.jpg|The situation before the patch is applied]]
== Encontrar el archivo que deseas modificar en Github ==
<div class="mw-translate-fuzzy">
Si no tienes una cuenta de GitHub aú, regístrate en [http://www.github.com GitHub]. Es gratis y muy fácil de hacer. Después de eso, ve al [http://www.github.com/joomla/joomla-cms Repositorio del CMS de Joomla!] y busca el archivo que deseas editar. Puedes navegar haciendo clic sobre la carpeta y nombre del archivo.
</div>


== Make your changes ==
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.
Navigate to the file, and edit the file by clicking on the pencil icon on the right.
[[File:Files-on-github.jpg|An example of the files in the Joomla GitHub repository]]
<div class="mw-translate-fuzzy">
Este puede ser un paso duro a veces, porque Joomla! cuenta con más de 6000 archivos. En nuestro ejemplo tenemos que editar el siguiente archivo: /layouts/joomla/content/info_block/author.php.
</div>


In our example, we add the following code to line 14 of the file: <tt>autor.php</tt>
[[File:The files changed2.png|The files changed]]
 
== Hacer los cambios ==
<div class="mw-translate-fuzzy">
Navega hasta el archivo y edita el archivo haciendo clic en el icono del lápiz en la derecha.
</div>
 
<div class="mw-translate-fuzzy">
En nuestro ejemplo, tenemos que añadir el siguiente código a la línea 14 del archivo: <tt>autor.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>


[[Image:Github_filechange.png]]
[[File:Edit-github2.jpg|The files to be edited on GitHub]]


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 make 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.
<div class="mw-translate-fuzzy">
Nota: puedes haber notado el mensaje de fondo azul de arriba de la página. Este mensaje es para decirte que GitHub hizo una copia del proyecto para ti, donde puedes hacer cambios. Esta copia se llama Bifurcación. Los cambios realizados en esta copia pueden ser utilizadod en el proyecto original. Si quieres leer más acerca de cómo trabaja GitHub, [https://guides.github.com/introduction/flow/ puedes leer este artículo en inglés] para alguna información de los antecedentes.
</div>


== Añadir un título y una descripción ==
<div class="mw-translate-fuzzy">
A continuación del editor, podemos especificar nuestra Solicitud de Extracción mediante la adición de un título y una descripción.
</div>


== Add a title and description ==
<div class="mw-translate-fuzzy">
Below the editor, we can specify our Pull Request by adding a title and a description.  
El título debe ser corto, y debe decir que hace esta solicitud de extracción.
</div>


The title has to be short, and must tell what this pull request does.
La descripción contiene información más detallada acerca de la solicitud de Extracción y alguna información de cómo probarlo. Redacta esta información de manera tan completa y clara como sea posible. Cuando realizas una Solicitud de Extracción de un problema en GitHub, es muy común añadir también el ID DEL problema en la descripción. Puedes hacer esto escribiendo un # (hash tag) seguido directamente con el ID del problema. Puedes encontrar este ID directamente después del título del tema, en la misma anotación.


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. When you made a Pull Request of an issue on GitHub, it is very common to add also the issue ID in the description. You can do this by typing a # (hash tag) with directly following the issue ID. You can find this ID directly after the title of the issue, in the same notation.


[[Image:Github_description.png]]
[[File:Describe-changes.jpg|Describe the changes]]


 
== Enviar la Solicitud de Extracción ==
== Send the Pull Request ==
Has clic en el botón "Proponer los cambios en el archivo" y después en el botón "Crear Solicitud de Extracción". ¡Tu solicitud de extracción se realiza ahora!
Click on the button "Propose file changes" and after that on the button "Create Pull Request". Your pull request is made now!


[[File:Create pull request.PNG|framed|center]]
[[File:Create pull request.PNG|framed|center]]


== ¿Y ahora? ==
Lo único que tienes que hacer ahora es esperar hasta que alguien ponga a prueba este PR. Cuando alguien hace un comentario, serás notificado a través de un correo electrónico. Puede suceder que alguien solicite información adicional, así que trata de mantenerse al día con tu Solicitud de Extracción.


== And now? ==
Si una Solicitud de Extracción es probado con éxito en dos ocasiones, un moderador va a añadir la etiqueta 'RTC'. RTC significa: Listo Para Usar. En lenguaje básico se le dice a alguien que se utilizado correctamente: Esta solicitud de Extracción fue probada con éxito y puede ser añadida a Joomla!. La administración agregad (Mezcla) con el proyecto del repositorio del CMS de Joomla! en github. Tu Solicitud de Extracción es definitiva ahora y estará presente en la próxima versión de Joomla! si era sobre la solución de un error o en la próxima versión de menor importancia si el PR se acerca una nueva característica.
The only thing you have to do now is wait until someone will test this PR. When someone comments, you will be notified via an email. It can happen that someone requests addition information, so try to stay up-to-date with you Pull Request.
 
If a Pull Request is successfully tested twice, a moderator will add the label 'RTC' to it. RTC means: Ready To Commit'. In basic language it tells someone who has commit rights: This Pull request is successfully tested, and can be added to Joomla!. The admin will add (Merge) the project to the Joomla! CMS github repository. Your Pull Request is definitive now, and will be present in the next version of Joomla! if it was about fixing a bug or in the next minor version if the PR was about a new feature.


<noinclude>
<noinclude>
[[Category:Bug Squad]]
[[Category:Bug Squad/es]]
[[Category:Development]]
[[Category:Development/es]]
[[Category:GitHub]]
[[Category:GitHub/es]]
[[Category:Tutorials]]
[[Category:Tutorials/es]]
</noinclude>
</noinclude>

Latest revision as of 16:13, 21 September 2021

Tutorial

Este artículo te ayuda a comprender y crear Solicitudes de Extracción en Github, así que puedes contribuir a un proyecto como el de Joomla!.

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.

Before making a pull request

A hastily proposed pull request can hurt its chances of acceptance. Low quality proposals, proposals for previously rejected features, may be quickly rejected, which can be demotivating for the unprepared contributor. Laying some groundwork ahead of the pull request can make the process smoother.

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.

¿Qué es una Solicitud de Extracción?

Un Solicitud de Extracción es una solicitud para que seextraiga un poco de código a un repositorio (proyecto) en GitHub.

En lenguaje básico te estás preguntando si algún cambio/adición de código que hayas realizado se pueden utilizar en el proyecto. Este cambio puede ser la solución a un error o una nueva característica.

Github tiene una interfaz web simple que hace que sea muy fácil proponer un simple cambio de código. No necesitas instalar ningún software o hacer otra cosa además de registrarse para tener una cuenta github.

Identificar el cambio que te gustaría a hacer

Primero de todo, señala qué cambios te gustaría hacer.

Por ejemplo, nos gustaría añadir un icono en el bloque información de artículo, antes que el nombre de los autores. En el momento de la escritura, este icono aún no aparece.

The situation before the patch is applied

Encontrar el archivo que deseas modificar en Github

Si no tienes una cuenta de GitHub aú, regístrate en GitHub. Es gratis y muy fácil de hacer. Después de eso, ve al Repositorio del CMS de Joomla! y busca el archivo que deseas editar. Puedes navegar haciendo clic sobre la carpeta y nombre del archivo.

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

Este puede ser un paso duro a veces, porque Joomla! cuenta con más de 6000 archivos. En nuestro ejemplo tenemos que editar el siguiente archivo: /layouts/joomla/content/info_block/author.php.

The files changed

Hacer los cambios

Navega hasta el archivo y edita el archivo haciendo clic en el icono del lápiz en la derecha.

En nuestro ejemplo, tenemos que añadir el siguiente código a la línea 14 del archivo: autor.php

<div class=

and a closing

</div>

The files to be edited on GitHub

Nota: puedes haber notado el mensaje de fondo azul de arriba de la página. Este mensaje es para decirte que GitHub hizo una copia del proyecto para ti, donde puedes hacer cambios. Esta copia se llama Bifurcación. Los cambios realizados en esta copia pueden ser utilizadod en el proyecto original. Si quieres leer más acerca de cómo trabaja GitHub, puedes leer este artículo en inglés para alguna información de los antecedentes.

Añadir un título y una descripción

A continuación del editor, podemos especificar nuestra Solicitud de Extracción mediante la adición de un título y una descripción.

El título debe ser corto, y debe decir que hace esta solicitud de extracción.

La descripción contiene información más detallada acerca de la solicitud de Extracción y alguna información de cómo probarlo. Redacta esta información de manera tan completa y clara como sea posible. Cuando realizas una Solicitud de Extracción de un problema en GitHub, es muy común añadir también el ID DEL problema en la descripción. Puedes hacer esto escribiendo un # (hash tag) seguido directamente con el ID del problema. Puedes encontrar este ID directamente después del título del tema, en la misma anotación.


Describe the changes

Enviar la Solicitud de Extracción

Has clic en el botón "Proponer los cambios en el archivo" y después en el botón "Crear Solicitud de Extracción". ¡Tu solicitud de extracción se realiza ahora!

¿Y ahora?

Lo único que tienes que hacer ahora es esperar hasta que alguien ponga a prueba este PR. Cuando alguien hace un comentario, serás notificado a través de un correo electrónico. Puede suceder que alguien solicite información adicional, así que trata de mantenerse al día con tu Solicitud de Extracción.

Si una Solicitud de Extracción es probado con éxito en dos ocasiones, un moderador va a añadir la etiqueta 'RTC'. RTC significa: Listo Para Usar. En lenguaje básico se le dice a alguien que se utilizado correctamente: Esta solicitud de Extracción fue probada con éxito y puede ser añadida a Joomla!. La administración agregad (Mezcla) con el proyecto del repositorio del CMS de Joomla! en github. Tu Solicitud de Extracción es definitiva ahora y estará presente en la próxima versión de Joomla! si era sobre la solución de un error o en la próxima versión de menor importancia si el PR se acerca una nueva característica.