GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(workflows): reusable min-release-age restore on the repobuddy app token by unional · Pull Request #103 · repobuddy/.github

Conversation

@unional

@unional unional commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Repobuddy/.github side of repobuddy/repobuddy#972. It references the issue and does not close it.

Changes

  • .github/workflows/min-release-age.yml (new, on: workflow_call): removes expired minimum-release-age lifts with npx repobuddy@<version> release-age restore --github-output, then force-pushes the restore branch and opens or updates the restore PR. The push and the PR use a token minted from the repobuddy app with actions/create-github-app-token. A PR opened with GITHUB_TOKEN would not run the required checks. The token is minted only when a lift was removed. Actions are pinned by SHA, the job has contents: read, and the CLI runs from $RUNNER_TEMP so the caller's own .npmrc gate does not block fetching it.
  • .github/scripts/check-app-installs.mjs: the expected permission set is now contents: write, metadata: read, pull_requests: write. The script has no tests, so no tests changed.
  • README: a new "Minimum-release-age restore" section with the caller, inputs and secrets.

Caller interface (for the repobuddy/repobuddy side)

on:
  schedule: [{ cron: '17 3 * * *' }]
  workflow_dispatch: {}
permissions:
  contents: read
jobs:
  restore:
    uses: repobuddy/.github/.github/workflows/min-release-age.yml@v2
    secrets: inherit
Input Default Effect
branch chore/min-release-age-restore Source branch of the restore PR (force-pushed).
repobuddy-version '4' repobuddy CLI version or range.
node-version lts/* Node.js for the CLI.
Secret (required) Use
REPOBUDDY_APP_ID App that pushes and opens the PR.
REPOBUDDY_APP_PRIVATE_KEY Its private key.

There is no script input. The published CLI replaces the copied min-release-age.mjs.

Ref: the README says callers pin @v2, never @main. @v2 resolves this file only after the next v2 release. @main works for a smoke test before that.

Owner actions (not done here)

  • Add Pull requests: write to the repobuddy GitHub App, then approve the permission change on every org installation.
  • Then run node .github/scripts/check-app-installs.mjs. Until each installation is approved, it reports that installation as deviates.
  • Cut a v2 release so @v2 callers get the workflow.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
unional and others added 2 commits November 20, 2026 01:31
@unional @claude
chore(scripts): expect pull_requests: write on the repobuddy app
b0395bb
The owner granted the repobuddy GitHub App Pull requests: write so
min-release-age.yml can open the restore PR with an app token
(repobuddy/repobuddy#972). check-app-installs.mjs now expects Contents:
write, Metadata: read and Pull requests: write, and reports an install
without the new permission as deviating.

Refs repobuddy/repobuddy#972

Signed-off-by: unional <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@unional @claude
feat(workflows): add reusable min-release-age restore workflow
273b70d
A restore PR opened with GITHUB_TOKEN does not trigger pull_request
workflows, so callers needed a per-repo MIN_RELEASE_AGE_TOKEN secret.
min-release-age.yml mints the push and PR token from the repobuddy app
(REPOBUDDY_APP_ID / REPOBUDDY_APP_PRIVATE_KEY), as dep-changeset.yml
does, and runs `repobuddy release-age restore` from the published CLI so
callers keep no script copy. The token is minted only when a lift was
removed. README documents the caller, inputs and secrets.

Refs repobuddy/repobuddy#972

Signed-off-by: unional <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@changeset-bot

changeset-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 273b70d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mergify

mergify Bot commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

This pull request is merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@unional

unional commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

No changeset: this repo has no .changeset/config.json and publishes no npm package. It is released with git tags (v2), so the changeset-bot notice does not apply.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@unional
unional merged commit e2ebf68 into main Nov 20, 2026
5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@unional unional mentioned this pull request Nov 22, 2026
Consolidate the bot GitHub Apps onto one repobuddy-org-owned app #79
Open
3 of 16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@unional
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.