Skip to content

tend-mention-relay's job is not gated on TEND_ENABLED #1257

Description

@leaf-agent

Splitting the review relay into tend-mention-relay.yaml in 0.2.8 (#1230) dropped the pause gate on that path, and the switch to a TEND_ENABLED repository variable (#1233) did not restore it. With TEND_ENABLED set to false, every pull_request_review submission and every edited review comment on a same-repo PR still starts a relay run and still POSTs the tend-mention-review dispatch, which starts a second run.

Nothing acts on it — tend-mention's jobs do carry vars.TEND_ENABLED != 'false', so the dispatched run is skipped — but a repo that has paused tend still gets two runs per review event, and a relay job in each PR's check list.

What changed

In 0.2.7, the relay lived in tend-mention.yaml and its dispatch step was gated:

      - name: Re-enter on an admitted ref
        if: steps.tend_enabled.outputs.enabled == 'true'

In 0.2.8, tend-mention-relay.yaml's job carries only the fork filter:

  relay:
    if: github.event.pull_request.head.repo.full_name == github.repository

Every other generated workflow got the variable — tend-ci-fix, tend-mention, tend-nightly, tend-notifications, tend-review, tend-review-runs, tend-triage, tend-weekly all have vars.TEND_ENABLED != 'false' in their job-level if. The relay is the one job that does not.

Proposed fix

Add the same condition to the relay's if, keeping the fork filter:

  relay:
    if: >-
      vars.TEND_ENABLED != 'false' &&
      github.event.pull_request.head.repo.full_name == github.repository

Observed while regenerating max-sixty/leaf's workflows for 0.2.8 (max-sixty/leaf#743); leaf does not set the variable, so nothing is paused there and this is a correctness gap rather than an active problem for that repo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions