Authorization: Bearer ********************
{
"sha": "96a024347146ebdc5f481f45e6e6871e0c43af5f",
"message": "feat(scope): #PLM-001 initialization code structure",
"committer_name": "terry",
"committed_at": 1403018919,
"tree_id": "1bf8989985e70389c07daa5052464a9c6f4896bb",
"files_added": [
"index.ts"
],
"files_removed": [
"utilities.ts"
],
"files_modified": [
"README.md"
],
"work_item_identifiers": [
"PLM-001"
]
}
curl --location --request POST 'https://open.pingcode.com/v1/scm/commits' \
--header 'Content-Type: application/json' \
--data-raw '{
"sha": "96a024347146ebdc5f481f45e6e6871e0c43af5f",
"message": "feat(scope): #PLM-001 initialization code structure",
"committer_name": "terry",
"committed_at": 1403018919,
"tree_id": "1bf8989985e70389c07daa5052464a9c6f4896bb",
"files_added": [
"index.ts"
],
"files_removed": [
"utilities.ts"
],
"files_modified": [
"README.md"
],
"work_item_identifiers": [
"PLM-001"
]
}'
{
"id": "5e3bb2128cfda459bbafa3fb",
"url": "https://rest_api_root/v1/scm/commits/5e3bb2128cfda459bbafa3fb",
"sha": "96a024347146ebdc5f481f45e6e6871e0c43af5f",
"message": "feat(scope): #PLM-001 initialization code structure",
"committer_name": "terry",
"committed_at": 1403018919,
"tree_id": "1bf8989985e70389c07daa5052464a9c6f4896bb",
"files_added": [
"index.ts"
],
"files_removed": [
"utilities.ts"
],
"files_modified": [
"README.md"
],
"file_changed_count": 3,
"work_items": [
{
"id": "564587fe700d43b81b080ab8",
"url": "https://rest_api_root/v1/project/work_items/564587fe700d43b81b080ab8",
"identifier": "PLM-001",
"title": "这是一个用户故事",
"type": "story",
"start_at": 1583290309,
"end_at": 1583290347,
"parent_id": "5edca524cad2fa112b06105c"
}
]
}