How does GitHub co-pilot relate to InnerSource? #66
Replies: 6 comments 6 replies
-
Is this generative AI - style tooling? Metadata tagging? Or specifically GitHub co-pilot? |
Beta Was this translation helpful? Give feedback.
-
There are thoughts about having Co-Pilot or AI have visibility to company-internal code, but that is not something that we can see being available in the near term. |
Beta Was this translation helpful? Give feedback.
-
AI could help to review pull requests - e.g. letting the submitter know that they could improve their documentation or code submitted with the code request. |
Beta Was this translation helpful? Give feedback.
-
AI and co-pilot may proliferate code duplication if it is inserting code snippits everywhere. |
Beta Was this translation helpful? Give feedback.
-
There was discussion on copilot on PRs, there is a new feature for PRs that as of this writing requires getting on a wait list https://githubnext.com/projects/copilot-for-pull-requests |
Beta Was this translation helpful? Give feedback.
-
Speaking to using generative AI API and not GitHub Copilot..... I've experimented with applying Azure-OpenAI API and the RAG pattern for code discovery. I used open source repositories by my company, but could be done for InnerSource as well. Created embedding of ~300 READMEs, then wrote natural language prompts to describe the type of repository I would like to find if it exists "front end library focused on mapping in JavaScript that can be used with React". It does a good job with that type of query and comparison queries. Example: "explain to me why I would want to use library A vs. library B." My code is not public as it was part of an internal hackathon, but you can experiment quickly on a smaller scale with the GitHub + python example in semantic kernel. https://devblogs.microsoft.com/semantic-kernel/semantic-kernel-embeddings-and-memories-explore-github-repos-with-chat-ui/ Modifying that example to include many repositories and not just a single one wouldn't be too hard for demo purposes. For production, you'd have to worry about things like access and authentication unless you limited it to repositories everyone in your organization can already see. |
Beta Was this translation helpful? Give feedback.
-
Co-pilot helps with code reuse (via code suggestions). This is related to InnerSource, where a common goal is code reuse. How can we be intentional about this?
Beta Was this translation helpful? Give feedback.
All reactions