mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Change to separate owner and name params
This commit is contained in:
@@ -18,10 +18,13 @@ namespace Octokit
|
||||
{
|
||||
public SearchCodeRequest(string term) : base(term) { }
|
||||
|
||||
public SearchCodeRequest(string term, string repo)
|
||||
public SearchCodeRequest(string term, string owner, string name)
|
||||
: this(term)
|
||||
{
|
||||
this.Repo = repo;
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
this.Repo = string.Format(CultureInfo.InvariantCulture, "{0}/{1}", owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -17,10 +17,13 @@ namespace Octokit
|
||||
{
|
||||
public SearchIssuesRequest(string term) : base(term) { }
|
||||
|
||||
public SearchIssuesRequest(string term, string repo)
|
||||
public SearchIssuesRequest(string term, string owner, string name)
|
||||
: this(term)
|
||||
{
|
||||
this.Repo = repo;
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, "name");
|
||||
|
||||
this.Repo = string.Format(CultureInfo.InvariantCulture, "{0}/{1}", owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user