Skip to content

ci: run the two-step release via the shared GitHub App - #22

Merged
moonD4rk merged 2 commits into
mainfrom
ci/adopt-shared-release-app
Jul 5, 2026
Merged

moonD4rk merged 2 commits into
mainfrom
ci/adopt-shared-release-app

Conversation

@moonD4rk

@moonD4rk moonD4rk commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Bring the two-step (library + CLI module) release in line with the things3 flow, on the shared release GitHub App.

  • Release token — mint an app token scoped to this repo for the library tag, the CLI-bump branch/tag, and the CLI bump PR. The PR is now opened by the app (was the Homebrew PAT), so it is attributed correctly and triggers CI for auto-merge.
  • Identity — release commits are authored by the app instead of hardcoded github-actions[bot].
  • Homebrew — push the formula to homebrew-tap via a short-lived token scoped to that repo (was the long-lived HOMEBREW_TAP_GITHUB_TOKEN PAT); formula-bump commit attributed to the app.

Uses vars.MOOND4RK_CI_RELEASE_APP_CLIENT_ID + secrets.MOOND4RK_CI_RELEASE_APP_PRIVATE_KEY (added to this repo). Requires the app installed on this repo and on homebrew-tap.

Mint a release-scoped app token for the tag pushes and the CLI bump PR (was the default token / Homebrew PAT), attribute release commits to the app, and push the Homebrew formula via a homebrew-tap-scoped app token instead of the long-lived PAT. Mirrors the things3 release flow.
Copilot AI review requested due to automatic review settings July 4, 2026 17:34
@codecov

codecov Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.81%. Comparing base (ab7665e) to head (7bec818).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   75.81%   75.81%           
=======================================
  Files           6        6           
  Lines         769      769           
=======================================
  Hits          583      583           
  Misses        112      112           
  Partials       74       74           
Flag Coverage Δ
unittests 75.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab7665e...7bec818. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns the repository’s two-step release (library + CLI module bump) with the shared “things3” release flow by using a GitHub App for attribution and short-lived, repo-scoped tokens for release and Homebrew tap updates.

Changes:

  • Mint a GitHub App token scoped to this repo and use it for checkout/pushes and for opening/merging the CLI bump PR.
  • Mint a separate GitHub App token scoped to homebrew-tap so GoReleaser can push the formula update without a long-lived PAT.
  • Update release commit authorship in both the workflow and GoReleaser Homebrew formula commits to moond4rk-ci[bot].

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.goreleaser.yml Updates Homebrew formula commit author identity to the GitHub App bot.
.github/workflows/release.yml Mints and uses GitHub App tokens for repo-scoped release operations and for pushing to homebrew-tap; updates git identity and PR merge behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@moonD4rk
moonD4rk enabled auto-merge (squash) July 5, 2026 16:30
@moonD4rk
moonD4rk merged commit 92e1cbd into main Jul 5, 2026
5 checks passed
@moonD4rk
moonD4rk deleted the ci/adopt-shared-release-app branch July 5, 2026 16:31
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