-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: Add Co-authored-by attribution for AI commits #3789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
This reverts commit 316d8f8.
This reverts commit 15d623f.
This reverts commit d1437b7.
This reverts commit ff8e985.
This reverts commit 072bd30.
This reverts commit d5671c2.
This reverts commit 482e0c2.
This reverts commit e951164.
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.0-flash-lite-001) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
/aider --model vertex_ai/gemini-2.5-pro-exp-03-25 aider/args.py aider/repo.py tests/basic/test_repo.py
> Aider v0.81.3.dev38+gc56e836d.d20250412
> Model: vertex_ai/gemini-2.5-pro-exp-03-25 with diff-fenced edit format
> Git repo: .git with 649 files
> Repo-map: using 4096 tokens, auto refresh
> Added aider/args.py to the chat.
> Added aider/repo.py to the chat.
> Added tests/basic/test_repo.py to the chat.
#### /web https://github.com/Aider-AI/aider/issues/3788
> Scraping https://github.com/Aider-AI/aider/issues/3788...
> For the best web scraping, install Playwright:
/home/ei-grad/repos/github.com/aider-ai/aider/.venv/bin/python3 -m playwright install --with-deps chromium
See https://aider.chat/docs/install/optional.html#enable-playwright for more info.
> Install playwright? (Y)es/(N)o [Yes]: n
> Unable to initialize playwright.
> ... added to chat. Ensure that we have properly implemented the proposal from issue 3788. Provide me detailed chain of thought.Okay, I will review the code and ensure it aligns with the proposal from issue #3788 regarding Git commit attribution, specifically the Chain of Thought:
Conclusion: The implementation across No code changes are required based on this review. The implementation appears correct. |
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <[email protected]>
This PR implements the proposal from issue #3788, adding support for attributing AI-generated commits using the
Co-authored-by:
Git trailer.Changes:
--attribute-co-authored-by
command-line flag (and corresponding config option) to enable this feature. Defaults toFalse
.aider/repo.py
'scommit
method:aider_edits=True
and--attribute-co-authored-by=True
, aCo-authored-by: aider (<model_name>) <[email protected]>
trailer is appended to the commit message.aider_edits=True
):--attribute-co-authored-by=True
:--attribute-author=True
or--attribute-committer=True
is explicitly set, the respective name is modified in addition to the trailer.--attribute-co-authored-by=False
:--attribute-author=False
/--attribute-committer=False
).aider_edits=False
),--attribute-co-authored-by
is ignored, and attribution follows the existing rules for--attribute-committer
.--attribute-co-authored-by
argument definition and help text toaider/args.py
.tests/basic/test_repo.py
to cover the new flag and its interactions with existing attribution flags (test_commit_with_co_authored_by
,test_commit_co_authored_by_with_explicit_name_modification
, etc.).Resolves: #3788
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) [email protected]