Skip to content

Replace dependabot-repair.yml with agentic workflow via gh aw add#28999

Merged
mnkiefer merged 1 commit intomainfrom
copilot/remove-dependabot-repair-trigger
Apr 28, 2026
Merged

Replace dependabot-repair.yml with agentic workflow via gh aw add#28999
mnkiefer merged 1 commit intomainfrom
copilot/remove-dependabot-repair-trigger

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 28, 2026

The dependabot-repair trigger was a hand-crafted GitHub Actions YAML calling a reusable workflow directly. This replaces it with the proper agentic workflow pattern, sourced from githubnext/dependabot-campaign@ff91842 (v0.2.0).

Changes

  • Deleted .github/workflows/dependabot-repair.yml — the raw uses: githubnext/dependabot-campaign/.github/workflows/dependabot-repair-reusable.lock.yml@<sha> wrapper
  • Added .github/workflows/dependabot-repair.md — agentic markdown workflow with source: field for gh aw update tracking, equivalent to:
    gh aw add githubnext/dependabot-campaign/dependabot-repair@ff91842c074b23270d3a0e26a7206a251232a374
    
  • Compiled .github/workflows/dependabot-repair.lock.yml from the new .md

Note: trigger changes from pull_request_targetpull_request — this is intentional and matches the upstream design; the agentic framework supplies its own token (COPILOT_GITHUB_TOKEN) rather than relying on elevated pull_request_target secrets.

…abot-campaign

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6eca4520-04c9-4c85-9818-d46752d62b53

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@mnkiefer mnkiefer marked this pull request as ready for review April 28, 2026 23:28
Copilot AI review requested due to automatic review settings April 28, 2026 23:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Replaces the legacy dependabot-repair.yml wrapper workflow with a gh-aw “agentic workflow” setup (Markdown source + compiled lock YAML) sourced from githubnext/dependabot-campaign@ff91842 (v0.2.0).

Changes:

  • Delete the hand-written .github/workflows/dependabot-repair.yml reusable-workflow wrapper.
  • Add .github/workflows/dependabot-repair.md agentic workflow source and compile it into .github/workflows/dependabot-repair.lock.yml.
  • Update docs status table to include “Dependabot Local Repair”.
Show a summary per file
File Description
docs/src/content/docs/agent-factory-status.mdx Adds the new Dependabot Local Repair workflow to the published workflow status table.
.github/workflows/dependabot-repair.yml Removes the old wrapper workflow that invoked the upstream reusable workflow.
.github/workflows/dependabot-repair.md Introduces the agentic workflow Markdown definition pointing at the upstream source SHA.
.github/workflows/dependabot-repair.lock.yml Adds the compiled gh-aw lock workflow generated from the Markdown source.

Copilot's findings

Tip

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

  • Files reviewed: 4/4 changed files
  • Comments generated: 1

@@ -0,0 +1,86 @@
---
description: Repair safe Dependabot PR failures locally inside a product repository.
on:
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

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

The workflow is intended to act only on Dependabot PRs (previous wrapper enforced this via if: github.actor == 'dependabot[bot]'), but the new frontmatter trigger will also run for maintainers’ PRs and may not run for Dependabot at all because agentic workflows enforce on.roles during pre-activation by default. Consider adding an explicit bot allowlist (e.g., on.bots: [dependabot[bot]]) so the workflow both (1) reliably activates for Dependabot and (2) doesn’t spend compute/noop on non-Dependabot PRs.

Suggested change
on:
on:
bots: [dependabot[bot]]

Copilot uses AI. Check for mistakes.
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
@mnkiefer mnkiefer merged commit 525e83e into main Apr 28, 2026
98 of 104 checks passed
@mnkiefer mnkiefer deleted the copilot/remove-dependabot-repair-trigger branch April 28, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants