{% extends "base.html" %} {% block title %}{% if counts.error %}({{ counts.error }}) {% endif %}gitops-watcher{% endblock %} {% block content %}
☂ gitops-watcher / stacks
{% if not last_round %} waiting for the watcher's first round… {% elif stale %} watcher may be stuck · last check {{ last_round|ago }} {% else %} watcher up · next check in … {% endif %}
repos
{{ total }}
ok
{{ counts.ok }}
error
{{ counts.error }}
paused
{{ counts.paused }}
{% if rows or me %} {% if me %} {# the watcher itself: updates itself from its own repo, so no deploy/stop/remove here #} {% set cls = {'ok': 'ok', 'updating': 'busy', 'held': 'warn', 'error': 'error'}.get(me.status, 'new') %} {% set label = {'ok': 'up to date', 'updating': 'updating', 'held': 'held'}.get(me.status, me.status) %} {% if me.note and me.status in ('held', 'error') %} {% endif %} {% endif %} {% for r in rows %} {% set warn = r.missing_env and r.status != 'error' and not r.busy %} {% if r.status == 'error' and r.error and not r.busy %} {% endif %} {% if warn %} {% endif %} {% endfor %}
repostatuscommitlast checklast deploy actions
{{ me.name }}this watcher {{ label }} {% if me.running %}{{ me.running[:7] }}{% endif %} {% if me.latest and me.latest != me.running %} → {{ me.latest[:7] }}{% endif %} {{ me.last_check|ago }} {{ me.started|ago }} auto · {{ me.remote }}/{{ me.branch }}
└─ {{ me.note }}
{% if r.busy %} queued · {{ r.busy }} {% elif r.status == 'new' %} waiting {% else %} {{ r.status }} {% endif %} {% if warn %}⚠ .env{% endif %} {% if r.commit %}{{ r.commit }}{% else %}-{% endif %} {{ r.last_check|ago }} {{ r.last_deploy|ago }} {% if r.busy != 'add' %}
{% if r.status != 'paused' %}
{% else %}
{% endif %}
{% endif %}
└─ {{ r.error }}
└─ .env is missing {{ r.missing_env|length }} key{{ 's' if r.missing_env|length > 1 }} from .env.example: {% for k in r.missing_env %}{{ k }}{{ ", " if not loop.last }}{% endfor %}
{% else %}
no repos yet_
add one with + add repo, or edit repos.yml
{% endif %}
{% endblock %} {% block overlays %} {% endblock %}