https://github.com/ashleywolf/continuous-ai-resolver
Automatically resolve stale or already fixed GitHub issues and PRs powered by AI.
https://github.com/ashleywolf/continuous-ai-resolver
ai continuous continuous-ai
Last synced: about 1 month ago
JSON representation
Automatically resolve stale or already fixed GitHub issues and PRs powered by AI.
- Host: GitHub
- URL: https://github.com/ashleywolf/continuous-ai-resolver
- Owner: ashleywolf
- License: mit
- Created: 2025-07-11T22:43:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-07-11T23:03:00.000Z (5 months ago)
- Last Synced: 2025-08-22T17:22:56.310Z (3 months ago)
- Topics: ai, continuous, continuous-ai
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-continuous-ai - Continuous AI Resolver - Automatically resolve stale or already fixed GitHub issues and PRs powered by AI (Categories / Continuous Triage)
README
## Continuous AI Resolver
Automatically resolve stale or already fixed GitHub issues and PRs powered by AI.
Continuous AI Resolver is a GitHub Action that runs weekly (or on demand) to help maintainers keep their repos tidy. It uses an LLM to check open issues and pull requests and determine if they’ve already been addressed in the codebase. If so, it comments with context and can optionally close them.
### Why
Maintainers spend too much time triaging duplicates, stale reports, or PRs that no longer apply. This agent runs in the background and acts as a second set of eyes, saving time and surfacing what’s already handled.
## What it Does
- Detects stale or resolved issues and PRs using LLM context matching
- Posts a comment with explanation and links (e.g., which file/function fixed it)
- Checks for missing contribution info (like steps to reproduce)
- Optionally labels incomplete issues with needs-info
- Re-runs weekly to catch newly fixed items
## How it Works
The resolver:
1. Loads open issues and pull requests for your repository
2. Scrapes their text and matches against code context
3. Uses OpenAI (GPT-4) to determine if the thread is already resolved
4. Posts a smart comment, if applicable
5. Skips threads already if reviewed
## Setup
1. Add this workflow to .github/workflows/continuous-ai-resolver.yml
(already included in this repo)
2. Create an OPENAI_API_KEY with access to GPT-4.
Optionally, you can self-host a model and point to it via OPENAI_BASE_URL.
3. Customize the behavior in main.js, openai-client.js, or resolver.js.
4. (Optional) Adjust your repository’s CONTRIBUTING.md — it’s auto-referenced when checking for issue completeness.
Or run it manually:
- You can trigger the workflow manually via the Actions tab (choose Run workflow) or wait for it to run on Sunday at midnight UTC.
## Output
If an issue is resolved or missing required details:
- Post a structured comment (including a link to the resolving code)
- Optionally apply a `needs-info` label
- Skip duplicates already commented on
## Contributions Welcome
This is built to be forked and improved.
## License
MIT with ❤️ for open source maintainers.