You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: descriptions/api.github.com/api.github.com.2022-11-28.json
+351Lines changed: 351 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49160,6 +49160,148 @@
49160
49160
}
49161
49161
}
49162
49162
},
49163
+
"/repos/{owner}/{repo}/code-quality/setup": {
49164
+
"get": {
49165
+
"summary": "Get a code quality setup configuration",
49166
+
"description": "Gets a code quality setup configuration.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.",
"summary": "Update a code quality setup configuration",
49218
+
"description": "Updates a code quality setup configuration.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.",
"summary": "List code scanning alerts for a repository",
@@ -137725,6 +137867,146 @@
137725
137867
}
137726
137868
}
137727
137869
},
137870
+
"code-quality-setup": {
137871
+
"description": "Configuration for code quality setup.",
137872
+
"type": "object",
137873
+
"properties": {
137874
+
"state": {
137875
+
"description": "Code quality setup has been configured or not.",
137876
+
"type": "string",
137877
+
"enum": [
137878
+
"configured",
137879
+
"not-configured"
137880
+
]
137881
+
},
137882
+
"languages": {
137883
+
"description": "Languages to be analyzed.",
137884
+
"type": "array",
137885
+
"items": {
137886
+
"type": "string",
137887
+
"enum": [
137888
+
"csharp",
137889
+
"go",
137890
+
"java-kotlin",
137891
+
"javascript-typescript",
137892
+
"python",
137893
+
"ruby",
137894
+
"rust"
137895
+
]
137896
+
}
137897
+
},
137898
+
"runner_type": {
137899
+
"description": "Runner type to be used.",
137900
+
"nullable": true,
137901
+
"type": "string",
137902
+
"enum": [
137903
+
"standard",
137904
+
"labeled"
137905
+
]
137906
+
},
137907
+
"runner_label": {
137908
+
"description": "Runner label to be used if the runner type is labeled.",
137909
+
"nullable": true,
137910
+
"type": "string",
137911
+
"example": "code-scanning"
137912
+
},
137913
+
"updated_at": {
137914
+
"description": "Timestamp of latest configuration update.",
137915
+
"nullable": true,
137916
+
"type": "string",
137917
+
"format": "date-time",
137918
+
"example": "2023-12-06T14:20:20.000Z"
137919
+
},
137920
+
"schedule": {
137921
+
"description": "The frequency of the periodic analysis.",
137922
+
"nullable": true,
137923
+
"type": "string",
137924
+
"enum": [
137925
+
"weekly"
137926
+
]
137927
+
}
137928
+
}
137929
+
},
137930
+
"code-quality-setup-update": {
137931
+
"description": "Configuration for code quality setup.",
137932
+
"type": "object",
137933
+
"properties": {
137934
+
"state": {
137935
+
"description": "The desired state of code quality setup.",
137936
+
"type": "string",
137937
+
"enum": [
137938
+
"configured",
137939
+
"not-configured"
137940
+
]
137941
+
},
137942
+
"runner_type": {
137943
+
"description": "Runner type to be used.",
137944
+
"type": "string",
137945
+
"enum": [
137946
+
"standard",
137947
+
"labeled"
137948
+
]
137949
+
},
137950
+
"runner_label": {
137951
+
"nullable": true,
137952
+
"description": "Runner label to be used if the runner type is labeled.",
137953
+
"type": "string",
137954
+
"example": "code-scanning"
137955
+
},
137956
+
"languages": {
137957
+
"description": "Languages to be analyzed.",
137958
+
"type": "array",
137959
+
"items": {
137960
+
"type": "string",
137961
+
"enum": [
137962
+
"csharp",
137963
+
"go",
137964
+
"java-kotlin",
137965
+
"javascript-typescript",
137966
+
"python",
137967
+
"ruby"
137968
+
]
137969
+
}
137970
+
}
137971
+
},
137972
+
"anyOf": [
137973
+
{
137974
+
"required": [
137975
+
"state"
137976
+
]
137977
+
},
137978
+
{
137979
+
"required": [
137980
+
"runner_type"
137981
+
]
137982
+
},
137983
+
{
137984
+
"required": [
137985
+
"runner_label"
137986
+
]
137987
+
},
137988
+
{
137989
+
"required": [
137990
+
"languages"
137991
+
]
137992
+
}
137993
+
],
137994
+
"additionalProperties": false
137995
+
},
137996
+
"code-quality-setup-update-response": {
137997
+
"description": "You can use `run_url` to track the status of the run. This includes a property status and conclusion.\nYou should not rely on this always being an actions workflow run object.",
0 commit comments