Contributing to an os project

Post on 19-Jan-2017

131 views 0 download

transcript

Contributing to an OS Project On the example of coala

WHOAMI

TODO:

- Do a contribution- Learn workflows- Discuss workflows

TODO at Home

- Contribute outside!- Have fun!

Who is Who?

- Name- Experience with OS- GitHub Nick- Organization- Logo (Note)- Expectations (Note)

Prep: 3 minutesThen: 2 minutes each

Welcome!

Join tinyurl.com/coala-workshop

Grab an issue attinyurl.com/coala-newhttp://www.tickcounter.com/5minutes

A Git Commit

diff --git a/presentation/Makefile b/presentation/Makefileindex f0c41e9..093b844 100644--- a/presentation/Makefile+++ b/presentation/Makefile@@ -10,5 +10,5 @@ continuous: default

_compile: @echo -n "Compiling markdown to pdf..."- @pandoc $(PRES) -s -o $(TARGET)+ @pandoc $(PRES) -s -o $(TARGET) -V classoption:aspectratio=169 @echo " DONE."

Install and Configure

- You should have git (git-scm.com)- On windows:

- $ git config --global core.editor notepad

$ git config --global user.name "Ford Prefect"$ git config --global user.email ford@prefect.bg

http://www.tickcounter.com/15minutes

Fork and Clone

Fork and Pull: Excercise

- https://github.com/coala-analyzer/coala/- https://github.com/coala-analyzer/coala-bears/- Fork!- Star, optionally.- Don’t watch!- git clone <url-of-your-fork-shown-by-github>

http://www.tickcounter.com/10minutes

Staging

$ git commit --all

setup: Install .coafile via package_data

When installing the .coafile todistutils.sysconfig.get_python_lib, we ignore that thisis not the installation directory in every case. Thusit is easier, more reliable and platform independent tolet distutils install it by itself.

Fixes https://github.com/coala-analyzer/coala/issues/269

$ git push

Let’s Code

- Code- $ git commit --all- $ git push- Create a Pull Request

Code Review

setup: Install .coafile via package_data

When installing the .coafile todistutils.sysconfig.get_python_lib, we ignore that thisis not the installation directory in every case. Thusit is easier, more reliable and platform independent tolet distutils install it by itself.

Fixes https://github.com/coala-analyzer/coala/issues/269

$ git commit --amend --all

Rebase

$ git remote add upstream <url>$ git fetch upstream$ git rebase -i upstream/master

Discussion:Pro’s and con’s of this workflow

Discussion:What other workflows do you know?

What Else Would you Like to Hear?

- What is coala- Designing Software- Testing Software- Internationalization and Localization- Advanced Git- Continuous Integration

This Workshop is Free

But I need to pay may rent. You can help me:

- Provide a quote- Provide feedback- Hire me- Have fun contribute open source - and tell me about it!

Lasse Schuirmann - http://viperdev.io/

Feedbackhttp://tinyurl.com/cos-workshop