Skip to content

Document org membership requirement for bot accounts - #204

Merged
max-sixty merged 3 commits into
mainfrom
accept-org-invite
Apr 9, 2026
Merged

max-sixty merged 3 commits into
mainfrom
accept-org-invite

Conversation

@max-sixty

@max-sixty max-sixty commented Apr 9, 2026 •

Copy link
Copy Markdown
Owner

For org repos, the bot must be an org member — not just an outside collaborator — because outside collaborators have been observed to get empty secrets.BOT_TOKEN when their actions trigger workflows (e.g., the bot submits a review, firing tend-mention).

Two changes to the install-tend skill:

  1. Step 9 (Grant bot access): Branches on org vs personal repos. For org repos, invites the bot as an org member, then as a repo collaborator. Uses API-based invitation acceptance via the bot's PAT (GH_TOKEN=<bot-pat>) instead of Chrome automation.

  2. Step reordering: API/CLI steps (config, workflows, branch protection, skill overlay, badge) now come first (1-5), browser steps (bot account, OAuth, PAT) are grouped at the end (6-8), followed by the API step that uses the PAT (9).

This was written by Claude Code on behalf of @max-sixty

For org repos, the bot must be an org member — not just an outside
collaborator — to get secret access when its actions trigger workflows.
Reorganizes step 7 to use API-based invitation acceptance (via the bot's
PAT from step 5) instead of Chrome automation.

Co-Authored-By: Claude <[email protected]>
Moves browser-dependent steps (bot account creation, OAuth, PAT
generation) to the end so all API/CLI work completes first. Also
simplifies Chrome automation header and adds org admin fallback
guidance.

New order: config → workflows → branch protection → skill overlay →
badge → bot account → OAuth → PAT → grant access → commit

Co-Authored-By: Claude <[email protected]>

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step reorder looks good — grouping API-first / browser-last is a cleaner flow. One remaining issue from the prior review: the personal repos section still doesn't guard against an empty INVITE_ID (same fix already applied to the org section).

The bot may already be a collaborator, in which case no invitation is
created and the PATCH would fail without this guard.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit dc80989 into main Apr 9, 2026
5 checks passed
@max-sixty
max-sixty deleted the accept-org-invite branch April 9, 2026 01:41
max-sixty added a commit that referenced this pull request Apr 9, 2026
Bumps generator version to 0.0.10 and syncs lockfile.

10 commits since 0.0.9: fix tend-mention on fork PRs (#206), add notifications:read to PAT scopes (#205), improve install-tend skill (#207), document org membership for bot accounts (#204), expand regtest snapshots (#199, #195), simplify nightly survey (#200), add release skill (#198), move tend upgrade to nightly skill (#197).

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty mentioned this pull request Apr 9, 2026
max-sixty added a commit that referenced this pull request Apr 9, 2026
## Summary

- Bump generator version to 0.0.10 and sync lockfile

10 commits since 0.0.9: fix tend-mention on fork PRs (#206), add
notifications:read to PAT scopes (#205), improve install-tend skill
(#207), document org membership for bot accounts (#204), expand regtest
snapshots (#199, #195), simplify nightly survey (#200), add release
skill (#198), move tend upgrade to nightly skill (#197).

> _This was written by Claude Code on behalf of Maximilian Roos_

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants