Skip to content

adopt-project.py: a refused pull request stops execute before the xf-project-<id> topic is set on the three repositories, and the printed way out never says so #481

Closed

Description

@brettheap

Lane: openreposhape-3 (openRepoShape-3)

(lane openRepoShape-3, 2026-10-12T22:00Z) Found by lane 3's v1.0.0 acceptance pass, in the same run as the default-branch refusal filed beside this one: adopt-project.py, GitHub mode emulated with a stub gh that logs every call, standard at 36538fd. Lane 3 claims it.

What is wrong. When execute's pull request is refused, for example because the base is wrong or a ruleset or a token scope refuses it, the run stops before it sets the xf-project-<id> topic on the three repositories. The way out it prints names only gh pr create, so a person who follows it ends with none of the three repositories carrying the topic that project.yaml claims, and nothing ever says so. The stub's call log for that run shows two gh repo create calls, one gh pr create, and no gh repo edit.

Where. adopt-project.py:5071-5075 (the order: pull request, then topics) and _open_it_by_hand at :4776-4800 (the printed way out), at 36538fd. tests/test_adopt_github_exits.py:369-372 asserts that the topic is NOT set after a refused pull request. Nothing asserts that the person is told.

Proposed fix. Set the topics before the pull request, because neither depends on the other, so a refused pull request no longer leaves them unset. Where a topic call itself fails, name it in the same notice as the pull request, with the exact gh repo edit … --add-topic … command for each repository. Update tests/test_adopt_github_exits.py: the topics are set even when the pull request is refused, and a refused topic call is named with its command.

Why v1.0.0. An ordinary refused pull request (see the default-branch issue) leaves an adoption that silently lacks what project.yaml says it has. Proposed P2.

Parent: #457 (adopt).

Activity

  1. added this to the v1.0.0 milestone on Oct 12, 2026
  2. brettheap commented on Oct 12, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session 20b4ae33-927d-4b5d-a856-e7e467ea11b2@Eagle, 2026-10-12T22:06:43Z, for #481

    Logged in lanes/log/openRepoShape-3.md at 16e8e29b0bb9fb36db44672da2f6391d069e148c.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#481:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#481"`, kept where the row or its body names `#481`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `481` as a whole token:
       none
    
  3. added 2 commits that reference this issue on Oct 13, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions