File tree 17 files changed +51
-24
lines changed
17 files changed +51
-24
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ class CodeScanningDefaultSetup(GitHubModel):
46
46
]
47
47
]
48
48
] = Field (default = UNSET , description = "Languages to be analyzed." )
49
+ runner_type : Missing [Union [None , Literal ["standard" , "labeled" ]]] = Field (
50
+ default = UNSET , description = "Runner type to be used."
51
+ )
52
+ runner_label : Missing [Union [str , None ]] = Field (
53
+ default = UNSET ,
54
+ description = "Runner label to be used if the runner type is labeled." ,
55
+ )
49
56
query_suite : Missing [Literal ["default" , "extended" ]] = Field (
50
57
default = UNSET , description = "CodeQL query suite to be used."
51
58
)
Original file line number Diff line number Diff line change @@ -413,8 +413,8 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubMode
413
413
head : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = (
414
414
Field ()
415
415
)
416
- id : float = Field ()
417
- number : float = Field ()
416
+ id : int = Field ()
417
+ number : int = Field ()
418
418
url : str = Field ()
419
419
420
420
Original file line number Diff line number Diff line change @@ -402,8 +402,8 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubMod
402
402
head : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = (
403
403
Field ()
404
404
)
405
- id : float = Field ()
406
- number : float = Field ()
405
+ id : int = Field ()
406
+ number : int = Field ()
407
407
url : str = Field ()
408
408
409
409
Original file line number Diff line number Diff line change @@ -410,8 +410,8 @@ class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubMode
410
410
head : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = (
411
411
Field ()
412
412
)
413
- id : float = Field ()
414
- number : float = Field ()
413
+ id : int = Field ()
414
+ number : int = Field ()
415
415
url : str = Field ()
416
416
417
417
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ class CodeScanningDefaultSetupType(TypedDict):
38
38
]
39
39
]
40
40
]
41
+ runner_type : NotRequired [Union [None , Literal ["standard" , "labeled" ]]]
42
+ runner_label : NotRequired [Union [str , None ]]
41
43
query_suite : NotRequired [Literal ["default" , "extended" ]]
42
44
updated_at : NotRequired [Union [datetime , None ]]
43
45
schedule : NotRequired [Union [None , Literal ["weekly" ]]]
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedD
368
368
369
369
base : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType
370
370
head : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType
371
- id : float
372
- number : float
371
+ id : int
372
+ number : int
373
373
url : str
374
374
375
375
Original file line number Diff line number Diff line change @@ -366,8 +366,8 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(Typed
366
366
367
367
base : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType
368
368
head : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType
369
- id : float
370
- number : float
369
+ id : int
370
+ number : int
371
371
url : str
372
372
373
373
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedD
368
368
369
369
base : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType
370
370
head : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType
371
- id : float
372
- number : float
371
+ id : int
372
+ number : int
373
373
url : str
374
374
375
375
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ class CodeScanningDefaultSetup(GitHubModel):
46
46
]
47
47
]
48
48
] = Field (default = UNSET , description = "Languages to be analyzed." )
49
+ runner_type : Missing [Union [None , Literal ["standard" , "labeled" ]]] = Field (
50
+ default = UNSET , description = "Runner type to be used."
51
+ )
52
+ runner_label : Missing [Union [str , None ]] = Field (
53
+ default = UNSET ,
54
+ description = "Runner label to be used if the runner type is labeled." ,
55
+ )
49
56
query_suite : Missing [Literal ["default" , "extended" ]] = Field (
50
57
default = UNSET , description = "CodeQL query suite to be used."
51
58
)
Original file line number Diff line number Diff line change @@ -413,8 +413,8 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubMode
413
413
head : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = (
414
414
Field ()
415
415
)
416
- id : float = Field ()
417
- number : float = Field ()
416
+ id : int = Field ()
417
+ number : int = Field ()
418
418
url : str = Field ()
419
419
420
420
Original file line number Diff line number Diff line change @@ -402,8 +402,8 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubMod
402
402
head : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = (
403
403
Field ()
404
404
)
405
- id : float = Field ()
406
- number : float = Field ()
405
+ id : int = Field ()
406
+ number : int = Field ()
407
407
url : str = Field ()
408
408
409
409
Original file line number Diff line number Diff line change @@ -410,8 +410,8 @@ class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubMode
410
410
head : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = (
411
411
Field ()
412
412
)
413
- id : float = Field ()
414
- number : float = Field ()
413
+ id : int = Field ()
414
+ number : int = Field ()
415
415
url : str = Field ()
416
416
417
417
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ class CodeScanningDefaultSetupType(TypedDict):
38
38
]
39
39
]
40
40
]
41
+ runner_type : NotRequired [Union [None , Literal ["standard" , "labeled" ]]]
42
+ runner_label : NotRequired [Union [str , None ]]
41
43
query_suite : NotRequired [Literal ["default" , "extended" ]]
42
44
updated_at : NotRequired [Union [datetime , None ]]
43
45
schedule : NotRequired [Union [None , Literal ["weekly" ]]]
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedD
368
368
369
369
base : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType
370
370
head : WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType
371
- id : float
372
- number : float
371
+ id : int
372
+ number : int
373
373
url : str
374
374
375
375
Original file line number Diff line number Diff line change @@ -366,8 +366,8 @@ class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(Typed
366
366
367
367
base : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType
368
368
head : WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType
369
- id : float
370
- number : float
369
+ id : int
370
+ number : int
371
371
url : str
372
372
373
373
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedD
368
368
369
369
base : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType
370
370
head : WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType
371
- id : float
372
- number : float
371
+ id : int
372
+ number : int
373
373
url : str
374
374
375
375
Original file line number Diff line number Diff line change @@ -472,6 +472,15 @@ source = "https://raw.githubusercontent.com/github/rest-api-description/main/des
472
472
" null" ,
473
473
] }
474
474
475
+ # webhook workflow run workflow-run-*.workflow_run.pull_requests.number and .id should be integers
476
+ # https://github.com/github/rest-api-description/issues/4408
477
+ "/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/id" = { type = " integer" }
478
+ "/components/schemas/webhook-workflow-run-completed/properties/workflow_run/properties/pull_requests/items/properties/number" = { type = " integer" }
479
+ "/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/id" = { type = " integer" }
480
+ "/components/schemas/webhook-workflow-run-in-progress/properties/workflow_run/properties/pull_requests/items/properties/number" = { type = " integer" }
481
+ "/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/id" = { type = " integer" }
482
+ "/components/schemas/webhook-workflow-run-requested/properties/workflow_run/properties/pull_requests/items/properties/number" = { type = " integer" }
483
+
475
484
# webhook repository dispatch action can be any string
476
485
"/webhooks/repository-dispatch-sample.collected/post" = { operationId = " repository-dispatch" }
477
486
# "/components/schemas/webhook-repository-dispatch-sample/properties/action" = { enum = "<unset>" }
You can’t perform that action at this time.
0 commit comments