| 1 | using AgentForge.Abstractions; |
| 2 | using AgentForge.Plugin.RepositoryImport.GitHub.Core; |
| 3 | using Microsoft.AspNetCore.Builder; |
| 4 | using Microsoft.Extensions.Configuration; |
| 5 | using Microsoft.Extensions.DependencyInjection; |
| 6 | |
| 7 | namespace AgentForge.Plugin.Org.Import.GitHub; |
| 8 | |
| 9 | public sealed class OrgImportGitHubForgePlugin : IForgePlugin |
| 10 | { |
| 11 | public string Id => "org-import-github"; |
| 12 | public string DisplayName => "GitHub organization member import"; |
| 13 | |
| 14 | public string Tier => "extended"; |
| 15 | |
| 16 | public void ConfigureServices(IServiceCollection services, IConfiguration configuration) |
| 17 | { |
| 18 | services.AddGitHubImportCore(); |
| 19 | services.AddScoped<GitHubOrgMembersImporter>(); |
| 20 | services.AddScoped<IForgeOrgImporter, GitHubOrgMembersImporter>(); |
| 21 | } |
| 22 | |
| 23 | public void MapEndpoints(WebApplication app) => ForgeOrgImportGitHubEndpoints.Map(app); |
| 24 | public void RegisterFeatures(ForgeFeatureRegistry registry) => registry.Add("org_import_github"); |
| 25 | } |
| 26 | |
View only · write via MCP/CIDE