Skip to content

ci: open Release PRs with the org release app when set up - #30

Merged
Paullo9 merged 1 commit into
mainfrom
claude/release-app-token
Oct 29, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
claude/release-app-token

Conversation

@Paullo9

@Paullo9 Paullo9 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul

What and why

Release PRs opened by release-please with GITHUB_TOKEN get pull_request runs that sit at "awaiting approval" (and the dispatched CI run does not count toward the PR's required check), so every Release PR needed a tap. This is the fix release-please documents: open the Release PR with a GitHub App token.

  • New first step mints a token from the org's release app (actions/create-github-app-token@v3, org variable RELEASE_APP_CLIENT_ID, org secret RELEASE_APP_KEY) and release-please uses it. CI then runs on the Release PR like on any PR, and the release tag runs the tag workflows (version check, docs) that a GITHUB_TOKEN tag never started.
  • Variable unset: unchanged behaviour (GITHUB_TOKEN plus the CI dispatch). So this is safe to merge before the app exists.
  • Fork-PR approval for outside contributors is untouched.

Checklist

  • swift test -c release passes: unaffected, release-please only
  • A test fails without the change and passes with it: workflow-only; the next Release PR after the app is set up is the check
  • Pinned numbers are unchanged
  • Docs: no user-visible change (ci: releases nothing)

🤖 Generated with Claude Code

… set up

A Release PR opened with GITHUB_TOKEN gets pull_request runs that wait for approval, and its tags start no workflows.
With the org variable RELEASE_APP_CLIENT_ID and secret RELEASE_APP_KEY set, the job mints an app token instead; unset,
it falls back to GITHUB_TOKEN and the CI dispatch as before.

Done: Release PRs can run CI without a tap. Next: the app and its two org settings (Paul).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 self-assigned this Oct 29, 2026
@Paullo9
Paullo9 merged commit 41bef67 into main Oct 29, 2026
6 checks passed
@Paullo9
Paullo9 deleted the claude/release-app-token branch October 29, 2026 15:53
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.

1 participant