Skip to content

Commit cb2bb1e

Browse files
Merge pull request #178 from HavenDV/bot/update-openapi_202509100608
feat:@coderabbitai
2 parents a5efb24 + 74ad08e commit cb2bb1e

File tree

94 files changed

+18485
-6953
lines changed

Some content is hidden

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

94 files changed

+18485
-6953
lines changed

src/libs/GitHub/Generated/GitHub..JsonSerializerContext.g.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,16 @@ namespace GitHub
333333
typeof(global::GitHub.JsonConverters.OrgPrivateRegistryConfigurationWithSelectedRepositoriesVisibilityNullableJsonConverter),
334334
typeof(global::GitHub.JsonConverters.ProjectOrganizationPermissionJsonConverter),
335335
typeof(global::GitHub.JsonConverters.ProjectOrganizationPermissionNullableJsonConverter),
336+
typeof(global::GitHub.JsonConverters.NullableProjectsV2StatusUpdateStatusJsonConverter),
337+
typeof(global::GitHub.JsonConverters.NullableProjectsV2StatusUpdateStatusNullableJsonConverter),
338+
typeof(global::GitHub.JsonConverters.ProjectsV2StateJsonConverter),
339+
typeof(global::GitHub.JsonConverters.ProjectsV2StateNullableJsonConverter),
340+
typeof(global::GitHub.JsonConverters.ProjectsV2FieldDataTypeJsonConverter),
341+
typeof(global::GitHub.JsonConverters.ProjectsV2FieldDataTypeNullableJsonConverter),
342+
typeof(global::GitHub.JsonConverters.ProjectsV2ItemContentTypeJsonConverter),
343+
typeof(global::GitHub.JsonConverters.ProjectsV2ItemContentTypeNullableJsonConverter),
344+
typeof(global::GitHub.JsonConverters.AutoMergeMergeMethodJsonConverter),
345+
typeof(global::GitHub.JsonConverters.AutoMergeMergeMethodNullableJsonConverter),
336346
typeof(global::GitHub.JsonConverters.CustomPropertySourceTypeJsonConverter),
337347
typeof(global::GitHub.JsonConverters.CustomPropertySourceTypeNullableJsonConverter),
338348
typeof(global::GitHub.JsonConverters.CustomPropertyValueTypeJsonConverter),
@@ -549,8 +559,6 @@ namespace GitHub
549559
typeof(global::GitHub.JsonConverters.CodespaceMachinePrebuildAvailabilityNullableJsonConverter),
550560
typeof(global::GitHub.JsonConverters.RepositoryInvitationPermissionsJsonConverter),
551561
typeof(global::GitHub.JsonConverters.RepositoryInvitationPermissionsNullableJsonConverter),
552-
typeof(global::GitHub.JsonConverters.AutoMergeMergeMethodJsonConverter),
553-
typeof(global::GitHub.JsonConverters.AutoMergeMergeMethodNullableJsonConverter),
554562
typeof(global::GitHub.JsonConverters.CommitComparisonStatusJsonConverter),
555563
typeof(global::GitHub.JsonConverters.CommitComparisonStatusNullableJsonConverter),
556564
typeof(global::GitHub.JsonConverters.ContentDirectoryItemTypeJsonConverter),
@@ -941,12 +949,6 @@ namespace GitHub
941949
typeof(global::GitHub.JsonConverters.WebhooksProjectCreatorTypeNullableJsonConverter),
942950
typeof(global::GitHub.JsonConverters.WebhooksProjectStateJsonConverter),
943951
typeof(global::GitHub.JsonConverters.WebhooksProjectStateNullableJsonConverter),
944-
typeof(global::GitHub.JsonConverters.NullableProjectsV2StatusUpdateStatusJsonConverter),
945-
typeof(global::GitHub.JsonConverters.NullableProjectsV2StatusUpdateStatusNullableJsonConverter),
946-
typeof(global::GitHub.JsonConverters.ProjectsV2StateJsonConverter),
947-
typeof(global::GitHub.JsonConverters.ProjectsV2StateNullableJsonConverter),
948-
typeof(global::GitHub.JsonConverters.ProjectsV2ItemContentTypeJsonConverter),
949-
typeof(global::GitHub.JsonConverters.ProjectsV2ItemContentTypeNullableJsonConverter),
950952
typeof(global::GitHub.JsonConverters.ProjectsV2StatusUpdateStatusJsonConverter),
951953
typeof(global::GitHub.JsonConverters.ProjectsV2StatusUpdateStatusNullableJsonConverter),
952954
typeof(global::GitHub.JsonConverters.PullRequestWebhookVariant2MergeCommitMessageJsonConverter),
@@ -5261,6 +5263,8 @@ namespace GitHub
52615263
typeof(global::GitHub.JsonConverters.PrivateRegistriesUpdateOrgPrivateRegistryRequestRegistryTypeNullableJsonConverter),
52625264
typeof(global::GitHub.JsonConverters.PrivateRegistriesUpdateOrgPrivateRegistryRequestVisibilityJsonConverter),
52635265
typeof(global::GitHub.JsonConverters.PrivateRegistriesUpdateOrgPrivateRegistryRequestVisibilityNullableJsonConverter),
5266+
typeof(global::GitHub.JsonConverters.ProjectsAddItemForOrgRequestTypeJsonConverter),
5267+
typeof(global::GitHub.JsonConverters.ProjectsAddItemForOrgRequestTypeNullableJsonConverter),
52645268
typeof(global::GitHub.JsonConverters.ReposCreateInOrgRequestVisibilityJsonConverter),
52655269
typeof(global::GitHub.JsonConverters.ReposCreateInOrgRequestVisibilityNullableJsonConverter),
52665270
typeof(global::GitHub.JsonConverters.ReposCreateInOrgRequestSquashMergeCommitTitleJsonConverter),
@@ -5455,6 +5459,8 @@ namespace GitHub
54555459
typeof(global::GitHub.JsonConverters.ReposCreateForAuthenticatedUserRequestMergeCommitTitleNullableJsonConverter),
54565460
typeof(global::GitHub.JsonConverters.ReposCreateForAuthenticatedUserRequestMergeCommitMessageJsonConverter),
54575461
typeof(global::GitHub.JsonConverters.ReposCreateForAuthenticatedUserRequestMergeCommitMessageNullableJsonConverter),
5462+
typeof(global::GitHub.JsonConverters.ProjectsAddItemForUserRequestTypeJsonConverter),
5463+
typeof(global::GitHub.JsonConverters.ProjectsAddItemForUserRequestTypeNullableJsonConverter),
54585464
typeof(global::GitHub.JsonConverters.SecurityAdvisoriesListGlobalAdvisoriesTypeJsonConverter),
54595465
typeof(global::GitHub.JsonConverters.SecurityAdvisoriesListGlobalAdvisoriesTypeNullableJsonConverter),
54605466
typeof(global::GitHub.JsonConverters.SecurityAdvisoriesListGlobalAdvisoriesSeverityJsonConverter),
@@ -5871,6 +5877,7 @@ namespace GitHub
58715877
typeof(global::GitHub.JsonConverters.AnyOfJsonConverter<string, double?, int?>),
58725878
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::GitHub.IssueLabel>),
58735879
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.Team, global::GitHub.EnterpriseTeam>),
5880+
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.Issue, global::GitHub.PullRequestSimple, global::GitHub.ProjectsV2DraftIssue>),
58745881
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
58755882
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
58765883
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
@@ -6076,6 +6083,7 @@ namespace GitHub
60766083
typeof(global::GitHub.JsonConverters.AllOfJsonConverter<global::GitHub.WebhookWorkflowJobInProgressWorkflowJobVariant1, global::GitHub.WebhookWorkflowJobInProgressWorkflowJobVariant2>),
60776084
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<bool?, global::GitHub.GistsCreateRequestPublic?>),
60786085
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.OrgsDeleteAttestationsBulkRequestVariant1, global::GitHub.OrgsDeleteAttestationsBulkRequestVariant2>),
6086+
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, double?>),
60796087
typeof(global::GitHub.JsonConverters.AnyOfJsonConverter<global::GitHub.ReviewCustomGatesCommentRequired, global::GitHub.ReviewCustomGatesStateRequired>),
60806088
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.ReposAddStatusCheckContextsRequest2, global::System.Collections.Generic.IList<string>>),
60816089
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.ReposSetStatusCheckContextsRequest2, global::System.Collections.Generic.IList<string>>),
@@ -6097,6 +6105,7 @@ namespace GitHub
60976105
typeof(global::GitHub.JsonConverters.AnyOfJsonConverter<int?, string>),
60986106
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.UsersAddEmailForAuthenticatedUserRequest2, global::System.Collections.Generic.IList<string>, string>),
60996107
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.UsersDeleteEmailForAuthenticatedUserRequest2, global::System.Collections.Generic.IList<string>, string>),
6108+
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, double?>),
61006109
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<global::GitHub.UsersDeleteAttestationsBulkRequestVariant1, global::GitHub.UsersDeleteAttestationsBulkRequestVariant2>),
61016110
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
61026111
typeof(global::GitHub.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Add item to organization owned project<br/>
9+
/// Add an issue or pull request item to the specified organization owned project.
10+
/// </summary>
11+
/// <param name="org"></param>
12+
/// <param name="projectNumber"></param>
13+
/// <param name="request"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2ItemSimple> ProjectsAddItemForOrgAsync(
17+
string org,
18+
int projectNumber,
19+
global::GitHub.ProjectsAddItemForOrgRequest request,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
22+
/// <summary>
23+
/// Add item to organization owned project<br/>
24+
/// Add an issue or pull request item to the specified organization owned project.
25+
/// </summary>
26+
/// <param name="org"></param>
27+
/// <param name="projectNumber"></param>
28+
/// <param name="type">
29+
/// The type of item to add to the project. Must be either Issue or PullRequest.
30+
/// </param>
31+
/// <param name="id">
32+
/// The numeric ID of the issue or pull request to add to the project.
33+
/// </param>
34+
/// <param name="cancellationToken">The token to cancel the operation with</param>
35+
/// <exception cref="global::System.InvalidOperationException"></exception>
36+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2ItemSimple> ProjectsAddItemForOrgAsync(
37+
string org,
38+
int projectNumber,
39+
global::GitHub.ProjectsAddItemForOrgRequestType type,
40+
int id,
41+
global::System.Threading.CancellationToken cancellationToken = default);
42+
}
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Add item to user owned project<br/>
9+
/// Add an issue or pull request item to the specified user owned project.
10+
/// </summary>
11+
/// <param name="userId"></param>
12+
/// <param name="projectNumber"></param>
13+
/// <param name="request"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2ItemSimple> ProjectsAddItemForUserAsync(
17+
string userId,
18+
int projectNumber,
19+
global::GitHub.ProjectsAddItemForUserRequest request,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
22+
/// <summary>
23+
/// Add item to user owned project<br/>
24+
/// Add an issue or pull request item to the specified user owned project.
25+
/// </summary>
26+
/// <param name="userId"></param>
27+
/// <param name="projectNumber"></param>
28+
/// <param name="type">
29+
/// The type of item to add to the project. Must be either Issue or PullRequest.
30+
/// </param>
31+
/// <param name="id">
32+
/// The numeric ID of the issue or pull request to add to the project.
33+
/// </param>
34+
/// <param name="cancellationToken">The token to cancel the operation with</param>
35+
/// <exception cref="global::System.InvalidOperationException"></exception>
36+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2ItemSimple> ProjectsAddItemForUserAsync(
37+
string userId,
38+
int projectNumber,
39+
global::GitHub.ProjectsAddItemForUserRequestType type,
40+
int id,
41+
global::System.Threading.CancellationToken cancellationToken = default);
42+
}
43+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Delete project item for organization<br/>
9+
/// Delete a specific item from an organization-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="org"></param>
13+
/// <param name="itemId"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task ProjectsDeleteItemForOrgAsync(
17+
int projectNumber,
18+
string org,
19+
int itemId,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Delete project item for user<br/>
9+
/// Delete a specific item from a user-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="userId"></param>
13+
/// <param name="itemId"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task ProjectsDeleteItemForUserAsync(
17+
int projectNumber,
18+
string userId,
19+
int itemId,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get project field for organization<br/>
9+
/// Get a specific field for an organization-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="fieldId"></param>
13+
/// <param name="org"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2Field> ProjectsGetFieldForOrgAsync(
17+
int projectNumber,
18+
int fieldId,
19+
string org,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get project field for user<br/>
9+
/// Get a specific field for a user-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="fieldId"></param>
13+
/// <param name="userId"></param>
14+
/// <param name="cancellationToken">The token to cancel the operation with</param>
15+
/// <exception cref="global::GitHub.ApiException"></exception>
16+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2Field> ProjectsGetFieldForUserAsync(
17+
int projectNumber,
18+
int fieldId,
19+
string userId,
20+
global::System.Threading.CancellationToken cancellationToken = default);
21+
}
22+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get project for organization<br/>
9+
/// Get a specific organization-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="org"></param>
13+
/// <param name="cancellationToken">The token to cancel the operation with</param>
14+
/// <exception cref="global::GitHub.ApiException"></exception>
15+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2> ProjectsGetForOrgAsync(
16+
int projectNumber,
17+
string org,
18+
global::System.Threading.CancellationToken cancellationToken = default);
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get project for user<br/>
9+
/// Get a specific user-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="userId"></param>
13+
/// <param name="cancellationToken">The token to cancel the operation with</param>
14+
/// <exception cref="global::GitHub.ApiException"></exception>
15+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2> ProjectsGetForUserAsync(
16+
int projectNumber,
17+
string userId,
18+
global::System.Threading.CancellationToken cancellationToken = default);
19+
}
20+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#nullable enable
2+
3+
namespace GitHub
4+
{
5+
public partial interface IProjectsClient
6+
{
7+
/// <summary>
8+
/// Get an item for an organization owned project<br/>
9+
/// Get a specific item from an organization-owned project.
10+
/// </summary>
11+
/// <param name="projectNumber"></param>
12+
/// <param name="org"></param>
13+
/// <param name="itemId"></param>
14+
/// <param name="fields">
15+
/// Example: fields[]=123,fields[]=456,fields[]=789
16+
/// </param>
17+
/// <param name="cancellationToken">The token to cancel the operation with</param>
18+
/// <exception cref="global::GitHub.ApiException"></exception>
19+
global::System.Threading.Tasks.Task<global::GitHub.ProjectsV2ItemWithContent> ProjectsGetOrgItemAsync(
20+
int projectNumber,
21+
string org,
22+
int itemId,
23+
global::System.Collections.Generic.IList<string>? fields = default,
24+
global::System.Threading.CancellationToken cancellationToken = default);
25+
}
26+
}

0 commit comments

Comments
 (0)