{% extends "projects/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Edit {{ watch.name }} - {{ project.name }} - Pychestrate{% endblock %} {% block content %} {% set primary_action = watch.actions[0] if watch.actions else none %} {% set trigger = watch.trigger_source.value %} {% set current_status = form_data.build_status if form_data else (watch.conditions.build_status or 'any') %}
{{ ui.field_error(errors, 'name') }}

When

What starts a watch and what it watches cannot be changed; create another watch instead.

{% if trigger != 'repository_tag' %}
{{ ui.field_error(errors, 'branch_pattern') }} Regular expression matched from the start of the branch name. Leave empty to match every branch.
{% endif %} {% if trigger == 'repository_tag' %}
{{ ui.field_error(errors, 'tag_pattern') }} Regular expression matched from the start of the tag name. Leave empty to match every tag.
{% endif %} {% if trigger == 'build_completion' %}
{{ ui.field_error(errors, 'build_status') }}
{% endif %}

Then

{{ ui.field_error(errors, 'action_type') }}

For "Run a build".

{{ ui.field_error(errors, 'action_target_id') }}

For starting a release pipeline, or running an infrastructure or test job: the id of the thing to run. Takes precedence over the build specification when set.

Cancel
{% endblock %}