AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Looking for help in finding a tool to streamline our PR merging process

Open Swiftyos opened this issue 2 years ago • 1 comments

Dear community,

We need your help in finding a tool that will help us streamline our merging process. As you may know, we currently have a large number of approved PRs that need to be merged into our codebase. However, we want to ensure that we merge them in a way that minimizes the number of conflicts that arise.

We are hoping to find a tool that will help us determine the optimal order in which to merge these approved PRs. Specifically, we are looking for a tool that can analyze the changes in each PR and identify any potential conflicts that may arise when merging them with our codebase. Ideally, this tool would also suggest an order in which to merge the PRs that minimizes the number of conflicts.

If you have any suggestions for tools that can help us with this process, we would greatly appreciate your input. Additionally, if you have any experience with a similar issue or have any best practices to share, we would love to hear from you.

Thank you in advance for your help.

Please join the discussion on discord as well: https://discord.gg/autogpt

Swiftyos avatar Apr 16 '23 20:04 Swiftyos

If no current tool exists to do this for us, it may be reasonably simple to build one using github's PR api. A quick and dumb implementation could loop through all the open PRs, storing the set of files touched by each into a map. PRa -> file1, file2 PRb -> file2, file3 PRc -> file4

Second pass identifies the PRs that touch files uniquely (no other PRs touch) and suggests them for merge. After this, we look for PRs which both touch the same file and see if there are conflicts. If no conflicts, suggest for merge. If conflicts, try to find some sequence of merging which reduces the total pain to contributors. It's possible this could be represented as a dependency graph which would make it easier as well

rocks6 avatar Apr 17 '23 16:04 rocks6

related #2424

ntindle avatar Apr 20 '23 08:04 ntindle

Also related: #3524 and https://github.com/Significant-Gravitas/Auto-GPT/issues/1870#issuecomment-1527959646 (using Auto-GPT itself to figure out how to manage this project)

Boostrix avatar Apr 30 '23 12:04 Boostrix

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 21:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]