feat(ci): add MR knowledge extraction pipeline with reaction/reject interaction#39
Merged
Conversation
…nteraction Add `teamai ci extract-mr` command for CI pipeline integration: - Extract learnings and codebase suggestions from MR/PR via AI - Post each suggestion as individual comment with unique marker - Reviewer rejects unwanted items via reaction (GitHub 👎 / TGit ☝️) - Post-merge: filter out rejected items, write approved knowledge to team repo - Auto-configure git committer from token API (passes TGit committer-check) - Fix TGit API: use ?iid= query and global MR id for Notes API - Fix AI output: strip preamble before YAML frontmatter - CI templates for GitHub Actions and Coding CI (QCI) - Update README with CI Integration section --story=0
Add `teamai ci extract-mr` command to the command table and add the CI Integration section (quick start, templates, reject interaction) to match the English README updated in PR Tencent#39.
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.
Summary
Add
teamai ci extract-mrcommand for CI pipeline integration with reviewer interaction.Features
--individual-comments)New Files
src/ci/extract-mr.tssrc/ci/mr-comment.tssrc/ci/read-rejections.tsexamples/ci/github-actions-mr-extract.ymlexamples/ci/coding-ci-mr-extract.yamlsrc/__tests__/ci-extract-mr.test.tssrc/__tests__/mr-comment.test.tssrc/__tests__/read-rejections.test.tsModified Files
src/index.tsci extract-mrsubcommandsrc/import-mr.tssrc/providers/tgit/mr-fetch.tsREADME.mdVerified
Test plan
npx tsc --noEmitnpx vitest run— 104 files, 1439 testsm0Nst3r873/teamai-ci-demo+ TGitjaelgeng/teamai-ci-demo