Skip to content

skills(nightly): trigger upstream-bot rebases instead of manual resolution - #605

Merged
max-sixty merged 2 commits into
mainfrom
nightly-dependabot-recreate
May 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
nightly-dependabot-recreate

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

Step 3 of the nightly skill only looked for conflicted PRs authored by $BOT_LOGIN, so Dependabot/Renovate PRs left in CONFLICTING after the bot stopped rebasing (typically lockfile rewrites on main that the bump also touched) sat untouched forever.

This change extends Step 3 to also query app/dependabot and app/renovate. For each upstream-bot PR, after confirming the branch carries no human commits, the nightly run triggers the bot's own rebuild path rather than rebasing manually — the bot owns the branch and force-pushes, so a manual rebase would be discarded:

  • dependabot[bot] → post @dependabot recreate as a comment
  • renovate[bot] → edit the PR body to tick [x] <!-- rebase-check --> (Renovate has no comment-based rebase command)

pre-commit-ci[bot] is intentionally not included — it has no recreate/rebase mechanism; conflicted autoupdate PRs get superseded by the next weekly run.

Inline note flags the app/dependabot (PR --author slug) vs dependabot[bot] (commit-author login) discrepancy so the no-human-commits check doesn't false-positive on the bot's own commits.

Test plan

  • Next PRQL nightly picks up PRQL/prql#5374 (notify), PRQL/prql#5543 (ariadne), PRQL/pyprql#632 and posts @dependabot recreate on each
  • Dependabot rebuilds the branches and the PRs go from DIRTY to CLEAN

…ution

Step 3 only looked at `$BOT_LOGIN`, so Dependabot/Renovate PRs left in
`CONFLICTING` after the bot stopped rebasing (typically lockfile rewrites
on `main` that the bump also touched) sat untouched forever.

Now query Dependabot and Renovate PRs too, and on each — after confirming
the branch carries no human commits — trigger the bot's own recreate path:
`@dependabot recreate` comment, or tick the Renovate `rebase-check`
checkbox in the PR body. The bot owns the branch and force-pushes, so
manual rebase would be discarded anyway.

Notes the `app/dependabot` (PR `--author` slug) vs `dependabot[bot]`
(commit-author login) discrepancy inline so the no-human-commits check
doesn't false-positive.

@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.

gh --jq doesn't accept jq flags like --arg — line 90 fails at runtime with accepts at most 1 arg(s), received 4, so the no-human-commits gate never executes. Inline suggestion below pipes to a standalone jq instead.

`gh --jq` accepts only a single expression argument; `--arg` is a jq flag
that gh doesn't forward. Pipe through stdin to a real jq invocation.
@max-sixty
max-sixty merged commit 0fa16af into main May 26, 2026
6 checks passed
@max-sixty
max-sixty deleted the nightly-dependabot-recreate branch May 26, 2026 18:57
@max-sixty max-sixty mentioned this pull request May 27, 2026
max-sixty added a commit that referenced this pull request May 27, 2026
## Why

Cut the 0.1.2 release so consumer repos (and tend's own nightly regen)
pick up the new
`claude-interactive` harness and per-workflow `harness`/`model`
overrides.

## What's new since 0.1.1

**New `claude-interactive` harness**
(`max-sixty/tend/[email protected]`) — opt-in
alternative to the released `claude` harness. PTY-supervised interactive
`claude` via
`script(1)`, end-of-turn detected through Stop/StopFailure hooks. Built
as the
trial path ahead of Anthropic's June 15 billing split between Agent-SDK
metering and
the flat Claude Code subscription. Smoke tested end-to-end on tend
itself. PRs:
#609, #611, #613, #614, #615, #616.

**Per-workflow `harness` / `model` override** — adopters can flip a
single workflow
to a different harness or model without changing `.config/tend.yaml`
defaults. #612.

**Skill refinements** — nightly upstream-bot rebases (#605),
running-in-ci PR bar
(#604) and recheck (#573), env-filter loophole fix (#599),
authorAssociation warning
(#600), review-gates Gate 1 (#602).

**Bug fix** — mention queue-delay now uses `comment.updated_at` so edit
events report
accurately (#595).

## Compatibility

Released `claude` harness path is byte-identical; `claude-interactive`
is strictly
additive and opt-in. Consumer repos that don't touch `harness:` see no
change beyond
the new skill text and the mention-edit fix.
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