示例#1
0
        public void Close()
        {
            var issueApi = _plugin.GetIssuesApi();

            issueApi.Close(RepositoryName, IssueOwner, int.Parse(Id));
            _plugin.InvalidateCache();
        }
示例#2
0
        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));
        }
示例#3
0
 public void ForceReload()
 {
     _plugin.InvalidateCache();
     Load();
 }