Skip to content

chore: switch to shared r2-cache action from shared-ai-standards#25

Merged
andreiships-bot merged 2 commits intodevfrom
ci-use-shared-r2-cache
Feb 26, 2026
Merged

chore: switch to shared r2-cache action from shared-ai-standards#25
andreiships-bot merged 2 commits intodevfrom
ci-use-shared-r2-cache

Conversation

@andreiships-bot
Copy link
Copy Markdown
Collaborator

@andreiships-bot andreiships-bot commented Feb 26, 2026

Closes #26

Summary

  • Replace local .github/actions/r2-cache with the shared composite action from andreiships/shared-ai-standards
  • Update setup-bun composite action to reference cross-repo SHA-pinned action
  • Wire metrics-script input for Axiom telemetry (using scripts/ci/r2-cache-metrics.sh)
  • Delete .github/actions/r2-cache/ (replaced by shared action)
  • Delete scripts/lib/curl-retry.sh (bundled inside the shared action)
  • Also skip linked-issue check for chore: PRs in pr-standards (maintenance tasks don't need issues)

Changes

  • .github/actions/setup-bun/action.yml: switch 2 r2-cache usages to andreiships/shared-ai-standards/.github/actions/r2-cache@41b2466c + add metrics-script
  • .github/actions/r2-cache/action.yml: deleted (220 lines)
  • scripts/lib/curl-retry.sh: deleted (62 lines, bundled in shared action)
  • .github/workflows/pr-standards.yml: skip linked-issue check for chore: PRs

Related

Part of the shared CI actions rollout: andreiships/shared-ai-standards hosts the canonical action at .github/actions/r2-cache.

Replace local .github/actions/r2-cache with the shared composite action
from andreiships/shared-ai-standards. The shared action is functionally
identical but parameterized (cache-api configurable) and bundled with
its own curl-retry.sh.

Changes:
- setup-bun: update r2-cache refs to cross-repo SHA-pinned reference
- setup-bun: wire metrics-script for Axiom telemetry
- Delete .github/actions/r2-cache/ (replaced by shared action)
- Delete scripts/lib/curl-retry.sh (bundled in shared action)
@github-actions
Copy link
Copy Markdown

Hey! Your PR title ci: switch to shared r2-cache action from shared-ai-standards doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

Copy link
Copy Markdown
Collaborator Author

@andreiships-bot andreiships-bot left a comment

Choose a reason for hiding this comment

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

Single-pass Review — Claude

Verdict: LGTM (one nitpick on PR title)

The migration is well-executed. SHA is pinned to current main of shared-ai-standards (41b2466c), which is exactly the commit that introduced the metrics-script input — the two changes are correctly coordinated. No dangling references to the deleted files were found.

Findings

[Nitpick] PR title uses ci: prefix — not in the allowed list per CONTRIBUTING.md

CONTRIBUTING.md lists: feat:, fix:, docs:, chore:, refactor:, test:. The prefix ci: is absent (the bot correctly flagged this). Suggested fix: chore: switch to shared r2-cache action from shared-ai-standards


Verification checklist

Check Result
SHA 41b2466c exists in shared-ai-standards ✓ Valid — is current main HEAD
SHA commit introduces metrics-script input feat(r2-cache): add metrics-script input for cross-repo telemetry
scripts/ci/r2-cache-metrics.sh still present on PR branch ✓ Not deleted
scripts/lib/curl-retry.sh fully removed ✓ Gone from file tree
Local .github/actions/r2-cache/ fully removed ✓ Gone from file tree
Other workflow/action files referencing old paths ✓ None found
Shared action cache-api default https://cache.pistachiorama.ai — correct
metrics-script path guard in shared action ✓ Blocks ../ traversal, warns on missing file

Logic change is zero — the shared action bundles curl-retry.sh internally (sourced as ${ACTION_PATH}/curl-retry.sh), so removing the local copy is safe.

@andreiships-bot andreiships-bot marked this pull request as ready for review February 26, 2026 03:44
@andreiships-bot andreiships-bot enabled auto-merge (squash) February 26, 2026 03:44
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@andreiships-bot andreiships-bot changed the title ci: switch to shared r2-cache action from shared-ai-standards chore: switch to shared r2-cache action from shared-ai-standards Feb 26, 2026
@github-actions
Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@andreiships-bot andreiships-bot merged commit 009f3e7 into dev Feb 26, 2026
11 of 12 checks passed
@andreiships-bot andreiships-bot deleted the ci-use-shared-r2-cache branch February 26, 2026 04:10
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.

Replace local r2-cache action with shared action from andreiships/shared-ai-standards

3 participants