miércoles, 20 de febrero de 2013

Drupal Community - Contribuir corrigiendo bugs, hacer cambios a un proyecto


1. Choose issue

http://drupal.org/project/issues/<project>

Buscar 'active' or 'needs work'.

2. Download project

Choose the latest branch, which will probably be 7.x-?.x or master.
Click 'Show' and copy the command.
Then run the command in the sites/all/<modules o theme> directory.

3. Find bug (egrep encuentra la cadena en el directorio)

egrep -r hook_node_info simpletest_example/

4. Make branch

git checkout -b [short description]-[issue-number]

5. Fix code

Refer to coding standards for code style.

6. Create patch

git diff > [description]-[issue-number]-[comment-number].patch

Randy Fay has a great post about patching with Git.

7. Upload patch for review

People often use Dreditor to review patches.

8. Make revisions

Once you get feedback, you can make revisions to the patch.
Refresh your repo using

git checkout [version]
git pull

Then re-apply changes:

git apply -v [patchname].patch

No hay comentarios:

Publicar un comentario