-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix namespaces for Artifacts models (#2862)
- Loading branch information
Showing
3 changed files
with
145 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
using System.Diagnostics; | ||
using System.Globalization; | ||
|
||
[DebuggerDisplay("{DebuggerDisplay,nq}")] | ||
public class ArtifactWorkflowRun | ||
namespace Octokit | ||
{ | ||
public ArtifactWorkflowRun() | ||
[DebuggerDisplay("{DebuggerDisplay,nq}")] | ||
public class ArtifactWorkflowRun | ||
{ | ||
} | ||
|
||
public ArtifactWorkflowRun(long id, long repositoryId, long headRepositoryId, string headBranch, string headSha) | ||
{ | ||
Id = id; | ||
RepositoryId = repositoryId; | ||
HeadRepositoryId = headRepositoryId; | ||
HeadBranch = headBranch; | ||
HeadSha = headSha; | ||
} | ||
public ArtifactWorkflowRun() | ||
{ | ||
} | ||
|
||
public ArtifactWorkflowRun(long id, long repositoryId, long headRepositoryId, string headBranch, string headSha) | ||
{ | ||
Id = id; | ||
RepositoryId = repositoryId; | ||
HeadRepositoryId = headRepositoryId; | ||
HeadBranch = headBranch; | ||
HeadSha = headSha; | ||
} | ||
|
||
/// <summary> | ||
/// The workflow run Id | ||
/// </summary> | ||
public long Id { get; private set; } | ||
|
||
/// <summary> | ||
/// The workflow run Id | ||
/// </summary> | ||
public long Id { get; private set; } | ||
|
||
/// <summary> | ||
/// The repository Id | ||
/// </summary> | ||
public long RepositoryId { get; private set; } | ||
|
||
/// <summary> | ||
/// The head repository Id | ||
/// </summary> | ||
public long HeadRepositoryId { get; private set; } | ||
|
||
/// <summary> | ||
/// The head branch | ||
/// </summary> | ||
public string HeadBranch { get; private set; } | ||
|
||
/// <summary> | ||
/// The head Sha | ||
/// </summary> | ||
public string HeadSha { get; private set; } | ||
|
||
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Id: {0}", Id); | ||
} | ||
/// <summary> | ||
/// The repository Id | ||
/// </summary> | ||
public long RepositoryId { get; private set; } | ||
|
||
/// <summary> | ||
/// The head repository Id | ||
/// </summary> | ||
public long HeadRepositoryId { get; private set; } | ||
|
||
/// <summary> | ||
/// The head branch | ||
/// </summary> | ||
public string HeadBranch { get; private set; } | ||
|
||
/// <summary> | ||
/// The head Sha | ||
/// </summary> | ||
public string HeadSha { get; private set; } | ||
|
||
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture, "Id: {0}", Id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters