r/developersIndia • • 6d ago

Suggestions Building a tool that automatically checks whether a GitHub PR breaks or conflicts with the existing codebase. Is this a useful idea?

I've been thinking about building a developer tool and wanted to get some honest feedback before starting.

The idea is to create a tool that automatically reviews incoming Pull Requests and checks whether the newly submitted code actually fits into the existing codebase.

The problem I'm trying to solve is that a piece of code can be perfectly valid on its own, compile successfully, and still break existing functionality when integrated into a project.

Here's what I'm thinking of building:

Code correctness: Detect syntax errors, compilation issues and potential bugs.

Compatibility checking: Understand the existing repository and identify whether new changes might break existing functions or dependencies.

Code quality: Detect duplicated logic, unnecessary code and inconsistencies with existing coding patterns.

AI-powered review: Use AI to understand the context of the repository and identify logical issues that traditional linters might miss.

Automated PR feedback: Generate a report directly on GitHub explaining detected issues, their severity and possible fixes.

I'm considering two ways of using it:

As a GitHub Action that automatically runs whenever someone creates or updates a PR.

As a CLI tool that developers can run directly from their terminal.

The idea is to combine traditional static analysis, testing and AI rather than relying entirely on an LLM.

I'd particularly like feedback on a few things:

Is this solving an actual problem developers face?

Aren't existing tools like CodeRabbit, SonarQube and GitHub Copilot already doing something similar?

What would make this tool genuinely different or worth using?

Is repository-level compatibility analysis a useful feature?

Would you personally use something like this?

I'm still at the idea stage, so I'd appreciate honest criticism, suggestions and potential problems with this approach.

0 Upvotes

13 comments sorted by

•

u/AutoModerator 6d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/AKmemekiller 6d ago

Yeah it's called keeping your branch updated. Takes like 10 seconds

1

u/CuriousSoul1419 Software Developer 6d ago

yeah good idea

1

u/novice-procastinator 6d ago

GitHub actions are expensive af 

1

u/argo_devbuild 2d ago

a lot of the bill is usually useless runs. A concurrency group with cancel-in-progress and paths-ignore for docs changes cuts that before you pay for anything else

1

u/limmbuu Software Engineer 6d ago

code rabbit?

1

u/cybermethhead 6d ago

We have copilot running on PRs, as well as cursor bots
I can’t think of a feature over here which I haven’t already seen in another tool or something which can’t be done using git hooks. Something like husky.

No offence but you should build something which people really want. I mean you could build it, but it wouldn’t make money.

If you do want to build this like Hell bent manner think of other features.

But this sounds like a custom git flow a lot of companies might be having already.
And if they don’t it wouldn’t be difficult for them to make one.

Sorry to burst your bubble

1

u/HoldZealousideal1966 6d ago

Good problem to solve, but I believe it’s next to impossible to solve. You can build a solution for 1 codebase, customised and specific to it, but I don’t think it will generalise. And once you start dealing with Python or other loosely typed languages, all hell will break loose.

1

u/FlashyBat5 6d ago

Yeah git pull sucks I would rather have AI do it.

1

u/alaricvonfalken Data Scientist 5d ago

not really

1

u/9H0STphoenix Full-Stack Developer 4d ago

Bro, you're too late to build this

1

u/next-sapien 3d ago

You're trying to solve two problems.

  1. PR reviews
  2. Merge Conflicts.
  • People have already created and using their own version of PR reviews specific to Repos. You can create one as well, but It will be hard to follow single rule for all repos.

For 2nd Point, I'll make it a strict rule for team members to do git pull' check conflicts then raise PR.

0

u/ZnV1 Tech Lead 6d ago

"aren't xyz doing similar" etc

Bro you should be telling us 😭