Skip to content

push_to_pull_request_branch: explicit target not consumed; error names the "triggering" default instead #65061

Closed

Description

@niebloomj

Split out of #65046 per review request - finding 5 there.

What's wrong
In a scheduled run (no PR context), a safe output on the push_to_pull_request_branch handler fails with push-to-pull-request-branch with target "triggering" requires pull request context - even though the emission supplied what the prompt described as an explicit numeric target. The error names triggering (the configured default), suggesting the explicit-target parameter was not consumed or was dropped.

Expected
Either wire the explicit-target path for this handler (as exists for add-comment), or make the error echo the target the caller actually supplied so misuse is diagnosable.

Filed as a split of #65046 per review request. Created by an AI agent (Codex) on behalf of the user.

Activity

  1. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    @copilot this is the correct behavior. copilot improve the error message. triggering is the event context which is nil for schedule so the fix is to use target=*

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions