Skip to content

fix(source-control): never update the branch of a standards-sync pull request #8888

Closed

Description

@kyle-sexton

Refs: #7576

Problem

An update-branch on the owner's token at 2026-10-21 14:56Z added merge commit dbd4ff9 to the standards-sync PR #8877. The managed-files guard rejects that commit and the sync cannot re-arm, so the PR is stuck (melodic-software/ci-workflows#843). Branch refreshes must never touch a standards-sync PR: its only writer is the sync App.

Current behavior

Two babysit-prs paths update a pull request branch from its base with no label check:

  • plugins/source-control/skills/babysit-prs/scripts/babysit_merge.py:4085 (PUT repos/{repo}/pulls/{number}/update-branch);
  • plugins/source-control/skills/babysit-prs/scripts/refresh_pr_branch.py:191.

Desired behavior

  • Both paths skip a PR labelled standards-sync and report the skip. Read the label name from config (a role label, the way _role_label resolves needs-human), never as a string literal, so a consumer can name its own.
  • A test for each path shows a standards-sync PR is never updated.
  • Document the rule where the refresh is described (safety.md).

Known calls

  • Origin: GitHub Support's hub notice, 2026-10-21. Which actor ran the 14:56Z update is unknown: not the poteto session, and pr-merge uses the lanes App token. The rule is ours.
  • It only tightens: it skips a write.

Activity

  1. added
    status: confirmed
    on Oct 21, 2026
  2. added theissue type on Oct 21, 2026
  3. added a commit that references this issue on Oct 21, 2026
    97e43c1
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

    status: confirmed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions