cURL
curl --request POST \ --url https://api.example.com/v1/repositories/{repository_id}/analysis/{commit_hash} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "branch": "<string>", "language": "ja" } '
{ "repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "commit_hash": "<string>", "status": "pending", "created_at": "2023-11-07T05:31:56Z" }
リポジトリ解析を開始する。
解析結果は commit_hash 時点のスナップショットに紐づいて不変となる。 同じ repository_id + commit_hash なら同じワークフロー ID で冪等に起動する。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
分析対象のブランチ名
解析結果の出力言語
ja
en
Successful Response
解析開始レスポンス(POST)
pending
running
completed
failed
cancelled