detectCurrentRepository function
Detect the current repository (github.com only, "owner/repo").
Implementation
Future<String?> detectCurrentRepository({String? cwd}) async {
final result = await detectCurrentRepositoryWithHost(cwd: cwd);
if (result == null || result.host != 'github.com') return null;
return '${result.owner}/${result.name}';
}