from __future__ import unicode_literals
import pilo


class WebhookForm(pilo.Form):
    commit = pilo.fields.String('ref')

    @commit.filter
    def commit(self, value):
        if 'refs/tags' not in value:
            return pilo.NONE
        return value
    name = pilo.fields.String('repository.name')
    organization = pilo.fields.String('repository.organization')
    build = pilo.fields.Boolean(default=False)

383efba0da244472015b5cb54c75bb4d5737717b
<mask token>

<mask token>


class WebhookForm(pilo.Form):
    <mask token>

    @commit.filter
    def commit(self, value):
        if 'refs/tags' not in value:
            return pilo.NONE
        return value
    <mask token>
    <mask token>
    <mask token>

<mask token>


class WebhookForm(pilo.Form):
    commit = pilo.fields.String('ref')

    @commit.filter
    def commit(self, value):
        if 'refs/tags' not in value:
            return pilo.NONE
        return value
    name = pilo.fields.String('repository.name')
    organization = pilo.fields.String('repository.organization')
    build = pilo.fields.Boolean(default=False)

from __future__ import unicode_literals
import pilo


class WebhookForm(pilo.Form):
    commit = pilo.fields.String('ref')

    @commit.filter
    def commit(self, value):
        if 'refs/tags' not in value:
            return pilo.NONE
        return value
    name = pilo.fields.String('repository.name')
    organization = pilo.fields.String('repository.organization')
    build = pilo.fields.Boolean(default=False)
