It would be helpful to be able to label contributions to a project that come from outside the owning team. This is beneficial for being able to recognize InnerSource practices and measure statistics related to that. This action could be combined with the issue-metrics action to get those statistics for issues/and PRs labeled as InnerSource. InnerSource in this case would be defined as contributions from a non-owner team within an organization. ie. When a feature team contributes to the observability tools on which they depend but do not own as an area of responsibility.
Additionally it may be helpful to "label" the repository with a Repository Topic so that it can be identified as a repository that practices InnerSource.
One complication that would need to be overcome here is the method by which a contribution is determined to be from a "non-owner" team. The tool could rely on several places to get ownership information:
Interface with Backstage API assuming that there is a Backstage instance that has a complete catalog of repos with ownership information
Codeowners file (If someone or a group they belong to is in the codeowners file then they could be considered an owner)
An org chart interface (API) (such as workday, etc.)
Some more ideas on how to get input on what should be considered outside contributions:
One could check which GitHub Team a contributor belongs to and if that team is something else than what the project belongs to. Knowing that some organisations use teams pretty much as tags added to user accounts, one could include a configuration option to white-list which teams count as valid contributor home team.
For monorepos (typically found in corporate code bases of companies founded in the early 2000s) the codeowners file needs to be evaluated to figure out exactly who is maintaining the component a contribution goes to as teams typically develop components side by side in the same repo, but ownership is not shared but separated between teams.
New Action request
Description
It would be helpful to be able to label contributions to a project that come from outside the owning team. This is beneficial for being able to recognize InnerSource practices and measure statistics related to that. This action could be combined with the issue-metrics action to get those statistics for issues/and PRs labeled as InnerSource. InnerSource in this case would be defined as contributions from a non-owner team within an organization. ie. When a feature team contributes to the observability tools on which they depend but do not own as an area of responsibility.
Additionally it may be helpful to "label" the repository with a Repository Topic so that it can be identified as a repository that practices InnerSource.
One complication that would need to be overcome here is the method by which a contribution is determined to be from a "non-owner" team. The tool could rely on several places to get ownership information: