Exemplo n.º 1
0
        /// <summary>
        /// Updates the specified repository with the values given in <paramref name="update"/>
        /// </summary>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="update">New values to update the repository with</param>
        /// <returns>The updated <see cref="T:Octokit.Repository"/></returns>
        public IObservable <Repository> Edit(string owner, string name, RepositoryUpdate update)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
            Ensure.ArgumentNotNull(update, nameof(update));

            return(_client.Edit(owner, name, update).ToObservable());
        }
 /// <summary>
 /// Updates the specified repository with the values given in <paramref name="update"/>
 /// </summary>
 /// <param name="owner">The owner of the repository</param>
 /// <param name="name">The name of the repository</param>
 /// <param name="update">New values to update the repository with</param>
 /// <returns>The updated <see cref="T:Octokit.Repository"/></returns>
 public IObservable <Repository> Edit(string owner, string name, RepositoryUpdate update)
 {
     return(_client.Edit(owner, name, update).ToObservable());
 }