public Flag(IConfiguration config, List <string> flags, string repo, string baseBranch) { _flags = flags; _repo = repo; _baseBranch = baseBranch; _api = new GithubApi(config, GetRepoOwnerFromUrl(), GetRepoNameFromUrl(), baseBranch); _flowdock = new FlowdockApi(config); }
public GithubApi(IConfiguration config, string owner, string name, string baseBranch) { RepoOwner = owner; RepoName = name; BaseBranch = baseBranch; _client = new WebClient(config); _logger = new FlowdockApi(config); }