Add hourly GitHub Actions workflow to auto-fix issues labeled agent_fix#1
Open
hahacium wants to merge 1 commit into
Open
Add hourly GitHub Actions workflow to auto-fix issues labeled agent_fix#1hahacium wants to merge 1 commit into
agent_fix#1hahacium wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
agent_fixand attempt small, safe repository fixes on an hourly schedule to reduce manual triage overhead.Description
.github/workflows/agent-fix.ymlthat selects one open issue with theagent_fixlabel, skips if a corresponding PR already exists, creates a branch, runs a Codex repair agent, commits repository changes when present, and opens a PR..github/codex/prompts/agent-fix.mdthat instructs the repair agent to reproduce the issue when possible, make the smallest safe change, preserve project style, run lightweight checks, and produce a concise final summary.codex-agent-fix-prompt.md), invokesopenai/codex-action@v1withsandbox: workspace-write, removes temporary prompt/output files before checking for repository changes, and usesprintfto safely construct the PR body.Testing
python3+yaml.safe_loadfailed due to the environment missing thePyYAMLmodule (expected failure).ruby -e 'require "psych"; Psych.load_file(ARGV[0]); puts "#{ARGV[0]}: ok"' .github/workflows/agent-fix.yml, which succeeded.git status --shortandgit diff --cached --stat, which showed the two new files were added.Codex Task