Skip to content

Add evergreen agentic workflow for automated PR health maintenance#62

Merged
mrjf merged 4 commits into
mainfrom
copilot/create-evergreen-workflow
Apr 8, 2026
Merged

Add evergreen agentic workflow for automated PR health maintenance#62
mrjf merged 4 commits into
mainfrom
copilot/create-evergreen-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

New agentic workflow that runs every 5 minutes to detect and fix merge conflicts and CI failures across open PRs.

Design

  • Deterministic selection: Pre-flight Python step fetches all open PRs sorted by number ascending, checks each for merge conflicts (mergeable state) and failing CI (check-runs + commit status APIs), selects the first unhealthy PR
  • Attempt tracking: Per-PR state persisted in repo-memory (branch memory/evergreen) as pr-{number}.md files containing HEAD SHA + attempt count. Counter resets when SHA changes; caps at 5 attempts per repo state
  • Agent instructions: Resolve merge conflicts (merge base branch, resolve intelligently), fix CI failures (read logs, identify root cause, surgical fix), push via push-to-pull-request-branch safe output

Safe outputs

  • Max 3 pushes to PR branches per run
  • Max 3 comments per run
  • 30-minute timeout

Manual dispatch

Supports workflow_dispatch with optional pr_number input to target a specific PR, bypassing the scheduling/selection logic.

Copilot AI assigned Copilot and mrjf Apr 7, 2026
Copilot AI linked an issue Apr 7, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add evergreen workflow to check for merge conflicts and failing tests Add evergreen agentic workflow for automated PR health maintenance Apr 7, 2026
Copilot AI requested a review from mrjf April 7, 2026 17:42
Copilot finished work on behalf of mrjf April 7, 2026 17:42
@mrjf mrjf marked this pull request as ready for review April 7, 2026 19:55
@mrjf
Copy link
Copy Markdown
Contributor

mrjf commented Apr 7, 2026

@copilot fix CI

…een-workflow

Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 7, 2026

@copilot fix CI

Fixed in 5dfd6b6 — merged main to pick up the lint fixes. The CI failure was caused by pre-existing lint errors in src/core/frame.ts, src/core/series.ts, and tests/stats/value_counts.test.ts that were already fixed on main. All 1130 tests, lint, and typecheck now pass.

Copilot finished work on behalf of mrjf April 7, 2026 20:23
@mrjf
Copy link
Copy Markdown
Contributor

mrjf commented Apr 8, 2026

@copilot you need to compile this agentic workflow

https://github.com/github/gh-aw

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 8, 2026

@copilot you need to compile this agentic workflow

https://github.com/github/gh-aw

Compiled in 1055bb2 — ran gh aw compile .github/workflows/evergreen.md which generated the evergreen.lock.yml (73KB).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • github.github.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of mrjf April 8, 2026 03:28
@mrjf mrjf merged commit 803fe44 into main Apr 8, 2026
2 checks passed
@mrjf mrjf deleted the copilot/create-evergreen-workflow branch April 8, 2026 03:40
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.

Create a new agentic workflow called evergreen

2 participants