Skip to content

Linked issue policy grades closed and merged pull requests #124

Description

@Kartikey1306

.github/workflows/linked-issue.yml runs on pull_request_target with types [opened, edited, reopened, synchronize] and has no guard on the pull request's state. edited fires on a closed or merged PR too, so a body edit on a PR merged before the policy existed grades it against the policy and fails it.

That is what happened on 2026-09-14: 13 failing Linked issue policy runs in this repository, every one on a merged or closed branch, triggered by body edits on already-merged PRs. A merged PR cannot be changed to satisfy the policy, and grading it says nothing about the tree.

The open PRs in the org that currently fail this policy (other authors, in eos and ebuild) are unaffected by a state guard — the policy keeps doing its job there.

Fix: run the job only when github.event.pull_request.state == 'open'.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions