Используя документацию GitLab API, я могу получить коммиты для проекта.
*** Команда Curl
curl -X GET -H "PRIVATE-TOKEN: tc5W6MZSREQb6XLCZx5-" "http://192.168.8.200:8081/api/v4/projects/4/repository/commits/master"
*** Пример вывода
{
"id": "79653d97fef4e0e202439b4fddc9833d8d24433a",
"short_id": "79653d97",
"created_at": "2019-06-18T05:37:54.000Z",
"parent_ids": [
"e571470e928418f73938e453da7d69c7d306b004"
],
"title": "Update Jenkinsfile",
"message": "Update Jenkinsfile",
"author_name": "Administrator",
"author_email": "admin@example.com",
"authored_date": "2019-06-18T05:37:54.000Z",
"committer_name": "Administrator",
"committer_email": "admin@example.com",
"committed_date": "2019-06-18T05:37:54.000Z",
"stats": {
"additions": 1,
"deletions": 2,
"total": 3
},
"status": "failed",
"last_pipeline": {
"id": 35,
"sha": "79653d97fef4e0e202439b4fddc9833d8d24433a",
"ref": "master",
"status": "failed",
"web_url": "http://example.gitlab.com/adl-dte/create-app/pipelines/35"
},
"project_id": 4
}
Когда я просматриваю документацию по GitLab API для коммитов (https://docs.gitlab.com/ee/api/commits.html),, там есть таблица с разными «Атрибутами». Можете ли вы показать мне использование Атрибута с примером?
Например: как использовать атрибут «с» с приведенной выше командой curl?