Skip to content

Commit 3b995ac

Browse files
authored
fix: updates all int --> long for DatabaseIds
2 parents 95e96c7 + f86613b commit 3b995ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+84
-74
lines changed

Octokit.GraphQL.Core.Generation/Utilities/TypeUtilities.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal static object GetArgName(InputValueModel arg)
6666

6767
public static bool IsCSharpPrimitive(TypeModel type)
6868
{
69-
return type.Kind == TypeKind.Scalar ||
69+
return type.Kind == TypeKind.Scalar ||
7070
type.Kind == TypeKind.Enum ||
7171
(type.Kind == TypeKind.NonNull && IsCSharpPrimitive(type.OfType));
7272
}
@@ -113,7 +113,7 @@ public static TypeModel ReduceType(TypeModel type)
113113

114114
return type;
115115
}
116-
116+
117117
public static string GetGraphQlIdentifierAttribute(string graphQlModelType)
118118
{
119119
if (graphQlModelType == null)
@@ -162,10 +162,10 @@ private static string GetCSharpType(TypeModel type, bool nullableType, bool retu
162162
private static bool IsValueType(TypeModel type)
163163
{
164164
return type.Kind == TypeKind.Enum ||
165-
(type.Kind == TypeKind.Scalar &&
165+
(type.Kind == TypeKind.Scalar &&
166166
(type.Name == "Int" ||
167-
type.Name == "Float" ||
168-
type.Name == "Boolean" ||
167+
type.Name == "Float" ||
168+
type.Name == "Boolean" ||
169169
type.Name == "DateTime" ||
170170
type.Name == "ID"));
171171
}

Octokit.GraphQL/Model/AddedToProjectEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal AddedToProjectEvent(Expression expression) : base(expression)
2828
/// <summary>
2929
/// Identifies the primary key from the database.
3030
/// </summary>
31-
public int? DatabaseId { get; }
31+
public long? DatabaseId { get; }
3232

3333
/// <summary>
3434
/// The Node ID of the AddedToProjectEvent object

Octokit.GraphQL/Model/App.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal App(Expression expression) : base(expression)
2323
/// <summary>
2424
/// Identifies the primary key from the database.
2525
/// </summary>
26-
public int? DatabaseId { get; }
26+
public long? DatabaseId { get; }
2727

2828
/// <summary>
2929
/// The description of the app.

Octokit.GraphQL/Model/BaseRefChangedEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal BaseRefChangedEvent(Expression expression) : base(expression)
3333
/// <summary>
3434
/// Identifies the primary key from the database.
3535
/// </summary>
36-
public int? DatabaseId { get; }
36+
public long? DatabaseId { get; }
3737

3838
/// <summary>
3939
/// The Node ID of the BaseRefChangedEvent object

Octokit.GraphQL/Model/Bot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal Bot(Expression expression) : base(expression)
2929
/// <summary>
3030
/// Identifies the primary key from the database.
3131
/// </summary>
32-
public int? DatabaseId { get; }
32+
public long? DatabaseId { get; }
3333

3434
/// <summary>
3535
/// The Node ID of the Bot object

Octokit.GraphQL/Model/BranchProtectionRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal BranchProtectionRule(Expression expression) : base(expression)
6565
/// <summary>
6666
/// Identifies the primary key from the database.
6767
/// </summary>
68-
public int? DatabaseId { get; }
68+
public long? DatabaseId { get; }
6969

7070
/// <summary>
7171
/// Will new commits pushed to matching branches dismiss pull request review approvals.

Octokit.GraphQL/Model/CheckAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal CheckAnnotation(Expression expression) : base(expression)
2828
/// <summary>
2929
/// Identifies the primary key from the database.
3030
/// </summary>
31-
public int? DatabaseId { get; }
31+
public long? DatabaseId { get; }
3232

3333
/// <summary>
3434
/// The position of this annotation.

Octokit.GraphQL/Model/CheckRun.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal CheckRun(Expression expression) : base(expression)
4242
/// <summary>
4343
/// Identifies the primary key from the database.
4444
/// </summary>
45-
public int? DatabaseId { get; }
45+
public long? DatabaseId { get; }
4646

4747
/// <summary>
4848
/// The corresponding deployment for this job, if any

Octokit.GraphQL/Model/CheckSuite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ internal CheckSuite(Expression expression) : base(expression)
5858
/// <summary>
5959
/// Identifies the primary key from the database.
6060
/// </summary>
61-
public int? DatabaseId { get; }
61+
public long? DatabaseId { get; }
6262

6363
/// <summary>
6464
/// The Node ID of the CheckSuite object

Octokit.GraphQL/Model/CommentDeletedEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal CommentDeletedEvent(Expression expression) : base(expression)
2828
/// <summary>
2929
/// Identifies the primary key from the database.
3030
/// </summary>
31-
public int? DatabaseId { get; }
31+
public long? DatabaseId { get; }
3232

3333
/// <summary>
3434
/// The user who authored the deleted comment.

0 commit comments

Comments
 (0)