public void Close() { var issueApi = _plugin.GetIssuesApi(); issueApi.Close(RepositoryName, IssueOwner, int.Parse(Id)); _plugin.InvalidateCache(); }
public IHostedRepository Fork() { if (IsMine) { throw new InvalidOperationException("Can not fork a repo that is already yours"); } var repoApi = _plugin.GetRepositoryApi(); var tRepo = repoApi.Fork(Owner, Name); if (tRepo == null || tRepo.Owner != _plugin.Auth.Username) { throw new InvalidOperationException("Some part of the fork failed."); } _plugin.InvalidateCache(); return(Convert(_plugin, tRepo)); }
public void ForceReload() { _plugin.InvalidateCache(); Load(); }