Skip to content

Decide Whether the Pull Request Workflow Snippet Runs on a Retargeted Base #4060

Closed

Description

@ptr727

Question

catalog/snippets/workflows/test-pull-request.yml triggers on a bare pull_request:, which runs on the default activity types opened, synchronize, and reopened. A downstream review raised that retargeting a pull request's base, an edited activity, then runs no validation for the new base.

Whether to add edited is a trade-off the snippet's owner decides. It fires on every title and body edit too, so each edit would rerun the full validator, and the aggregator's required check is already posted on the head. A carrying repository should not diverge from the reference on its own, so the question is raised here rather than answered downstream.

Activity

  1. added
    gate
    on Nov 11, 2026
  2. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-11. The same answer as #4051 settles this. The snippet keeps the default activity types and does not add edited, and a retarget is cleared by a push or a close and reopen. edited would re-run the full validator on every title or body edit.

  3. ptr727 commented on Nov 11, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 3 (2026-11-11). Branch feature/workflow-contract-triggers, group: #4011, #4051, #4048, #4060.

    Predicted files:

    • WORKFLOW.md
    • docs/reusable-workflows.md
    • spec/audit.py
    • tests/test_audit_helpers.py
    • .agents/skills/workflow-ci-contract/references/architecture.md
    • .agents/skills/workflow-ci-contract/references/d-guarantees.md
    • .agents/skills/workflow-ci-contract/references/test-methodology.md
    • .github/skills/workflow-ci-contract/references/architecture.md
    • .github/skills/workflow-ci-contract/references/d-guarantees.md
    • .github/skills/workflow-ci-contract/references/test-methodology.md
    • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/architecture.md
    • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md
    • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/test-methodology.md
    • .claude-plugin/fleet-skills/.source-digests/workflow-ci-contract
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

    gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions