feat: respect repository contribution rules#85
Open
shaoohh wants to merge 3 commits into
Open
Conversation
c678ece to
cb6a207
Compare
Owner
|
need rebase |
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.
What this changes
This PR teaches OpenMeta to read repository contribution rules before it tries to open an automatic PR, and to back off into review/artifact mode when those rules are not safely satisfied.
It adds lightweight repository rule discovery and caching, uses structured LLM extraction for freeform contribution docs, and threads the detected rules through PR drafting, branch/commit naming, and final PR submission gating.
Why
Issue #77 is really about one thing: OpenMeta should stop treating every repository as if contribution workflows are the same.
A lot of repositories require issue links, prior discussion, validation notes, PR templates, release note context, or specific naming conventions. Before this change, those rules were mostly invisible to the agent, which meant it could generate artifacts that looked plausible but still violated the repository's actual contribution process.
Highlights
CONTRIBUTING.md, PR templates, CODEOWNERS, and issue templatesTesting
bun test test/content.test.ts test/contribution-pr.test.ts test/llm.test.ts test/agent-run.test.tsbun test test/agent-orchestrator.test.ts test/state-services.test.ts test/workspace.test.ts