Extract everything after refs/heads/ as branch.

By dropping the front part of the ref, one is able to use branches with deeper
nesting than 1. Since the subproject configuration allows this, it should be
supported by the github helper method.

Example ref spec:
* master
* foo/bar
* foo/bar/baz

For documentation, see (Payload -> ref) at
https://developer.github.com/v3/activity/events/types/#pushevent
Merge pull request #497 from nblock/bugfix/ref-extraction

Extract everything after refs/heads/ as branch.
Add option to disable sharing

Fixes #498

Signed-off-by: Michal Čihař <michal@cihar.com>
Trivial spelling: s/you/your/.
Add support for GitLab notifications.

This commit adds support for GitLab notifications (push webhooks) available at
the url endpoint: '/hooks/gitlab/'.

Summary of the changes:
* Add the url endpoint and the appropriate gitlab handler method.
* Add to 'Notification hooks' on data/<project>.
* Add tests.
* Update documentation.

This commit has been tested with GitLab CE 7.1.0.
Check for the content-type instead of the service name.
Merge pull request #500 from nblock/feature/gitlab-support

Feature/gitlab-support
Changelog entry (issue #500)

Signed-off-by: Michal Čihař <michal@cihar.com>
Register hook backends using decorator

This allows to simplify the code without explicitly listing all hook
backends in the handler.

Also remove not used csrf decorator on the hooks as they are never
called directly from the view.

See also issue #500.

Signed-off-by: Michal Čihař <michal@cihar.com>
We no longer have strict requirement on Pillow

The brokeness with 2.4.0 was actually caused by images with alpha
channel which we tried to use as without alpha for rendering widgets.

Signed-off-by: Michal Čihař <michal@cihar.com>
Add separate Selenium testing to Travis

Signed-off-by: Michal Čihař <michal@cihar.com>
Test against Django 1.7rc as well

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix syntax error

Signed-off-by: Michal Čihař <michal@cihar.com>
Django 1.7 fails for now

Signed-off-by: Michal Čihař <michal@cihar.com>
Better name for method running checks

This also avoids name clash with Model method in Django 1.7.

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix typo in test name

Signed-off-by: Michal Čihař <michal@cihar.com>
Specify Django version ranges rather than being explict

Signed-off-by: Michal Čihař <michal@cihar.com>
Use sauce_connect addon instead of manual execution

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix syntax

Signed-off-by: Michal Čihař <michal@cihar.com>
Better way to get Django version

Signed-off-by: Michal Čihař <michal@cihar.com>