Ideas for working with AI-generated PRs #3020
hippietrail
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
One thing I've noticed that coding bots do, that humans do too but can learn not to, is to go for naïve solutions assuming there are no and can be no false positives or edge cases. And when one is pointed out they will fix just that one and proudly declare the code is now perfect and has no more edge cases. Until you find another one.
I was originally thinking it would be a good idea just to have a page for contributors to read with agent-coding guidelines that would have an emphasis on looking for false positives and edge cases and some tips on how to hunt for them.
But this morning another idea popped into my head.
Why not just do PRs adding unit tests for those edge cases and false positives - and false negatives - to the PRs?
I'm still bad at git but I believe this is possible and that I've done it before. But I don't remember how. So on the assumption that it's not obvious to others, a quick intro on how to do so would surefly be of benefit. I went ahead and asked an AI:
Opinions?
Beta Was this translation helpful? Give feedback.
All reactions