githubnext / githubnext/gh-aw-cao

[dependabot:release-train-updater] create_pull_request fails with no commits found for self-target repo (githubnext/gh-aw-cao)

Closed
#9,356 0 comments 0 reactions 0 assignees View on GitHub
dependabot dependabot:release-train-updater
Dominant language
JavaScript
Stars
3
Forks
1
Avg merge
49m
Merged PRs (30d)
837

Description

## Blocked: create_pull_request fails with "no commits found" for self-target repo (githubnext/gh-aw-cao)

### What happened
Prepared a low-risk dependency freshness bump — aligning stale `actions/checkout@v6` and `actions/setup-node@v4` pins to `actions/checkout@v7.0.1` / `actions/setup-node@v7.0.0` (both SHAs already used successfully across ~60+ other workflows in this same repository) — across 5 hand-maintained CI workflow files:

- `.github/workflows/enterprise-canary.yml`
- `.github/workflows/enterprise-stress.yml`
- `.github/workflows/release.yml`
- `.github/workflows/review-smoke.yml`
- `.github/workflows/workflow-contracts.yml`

Committed cleanly on branch `dependabot-agent/actions-checkout-setupnode-pin-align-20260911033300` (commit `4b517271c56333e613e5f7664af10d352c430e30`, based on `main`@`6af5fa38c506de9735cceb816fe5e940713c75dc`). Verified before calling the tool:
- `git log origin/main..HEAD --oneline` → exactly 1 non-empty commit
- `git diff origin/main HEAD --stat` → exactly 5 files changed, 11 insertions / 11 deletions
- All 5 edited files parse as valid YAML
- `npm run compile` (`gh aw compile --strict --no-emit`) succeeded

`create_pull_request` was called **twice** (once without an explicit `base`, once with `base: "main"`), and **both times** returned the identical error:
```
{"result":"error","error":"No changes to commit - no commits found","details":"No commits were found to create a pull request. Make sure you have committed your changes using git add and git commit before calling create_pull_request."}
```

### Why this is likely a known systemic issue, not a candidate problem
This repo's dependency-agent cache memory (`/tmp/gh-aw/cache-memory/dependabot-release-train-*.md`) documents this **exact same failure signature** recurring specifically when `target_repo == githubnext/gh-aw-cao` and the workspace root (not a separate `target/` checkout) is used as the git working directory for `create_pull_request`:
- 2026-09-10-01-55-00: astro/copilot-sdk family bump — same "no changes to commit - no commits found" error, twice, referencing prior tracking as `githubnext/gh-aw-cao#6830` / `#6618`.
- 2026-09-10-07-55-35: undici override fix — same error.
- 2026-09-10-14-37-21: astro patch bump — same error, twice.
- 2026-09-10-19-44-23 (for github/gh-aw, using `target/` checkout): success — supporting the theory that `create_pull_request` may require the tool's cwd/checkout to differ from the workspace root, but this run's target_repo IS the workspace root itself (githubnext/gh-aw-cao), so there is no separate `target/` checkout available as a workaround here.

This is now (at minimum) the **4th–5th confirmed occurrence** of this exact error for this repo's self-target scenario, across multiple different diffs/branches/commit SHAs, all with verified non-empty, correctly-based commits.

### Requested remediation
Please investigate the `create_pull_request` safe-output implementation's git-diff/commit-detection logic specifically for the case where `target_repo == safe_output_repo == workspace root` (i.e., no separate `target/` checkout is used). A prior GitHub issue may already track this (referenced in agent cache memory as `#6830`/`#6618`), but this agent could not locate it via `search_issues` this run (queries tried: "create_pull_request no commits found", "checkout setup-node" — 0 results). If those issue numbers exist and are still open, please treat this as an additional reproduction; otherwise this issue can serve as the new tracking record.

### The prepared (unmerged) fix, for manual application if desired
```diff
--- a/.github/workflows/enterprise-canary.yml
+++ b/.github/workflows/enterprise-canary.yml
@@ -45,7 +45,7 @@
timeout-minutes: 120
environment: central-agentic-ops-${{ inputs.safe_output_mode }}
steps:
- - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
```
(Same one-line pin swap applied to the other 4 files; `setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4` → `setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0` in `release.yml` and `workflow-contracts.yml`.)

### Control Plane
- Correlation ID: 34558393256-198
- Central repo: githubnext/gh-aw-cao
- Run URL: https://github.com/githubnext/gh-aw-cao/actions/runs/34558393256

> Generated by [:dependabot: Dependabot / Release Trains](https://github.com/githubnext/gh-aw-cao/actions/runs/34558721052) · copilot · auto · 170.1 AIC · ⌖ 12 AIC · ⊞ 18.1K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-cao+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-cao%2Fdependabot-release-train-updater%22&type=issues)
>

Add this agentic workflow to your repo

To install this agentic workflow, run

```
gh aw add githubnext/gh-aw-cao/.github/workflows/dependabot-release-train-updater.md@main
```

> - [x] expires on Sep 25, 2026, 3:42 AM UTC

Contributor guide

Open the contributing guide

Research direction

Start by reproducing create_pull_request with target_repo equal to the safe-output repository at the workspace root, then compare its git-diff and commit detection with the successful github/gh-aw run that used a separate target/ checkout. Inspect the safe-output implementation and prior references #6830/#6618; done means a committed self-target change is detected and a pull request is created without the no-commits error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, javascript
Domain
ci-cd, devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.