Открыть боковую панель
nt_test121
nt_project_chzwuz8hfpcw
Коммиты
01a40700
Коммит
01a40700
создал
Янв 14, 2016
по автору
Tomasz Maczukin
Просмотр файлов
Move `status` field back directly to commit data in API
владелец
56a45b09
Изменения
3
Скрыть пробелы
Построчно
Рядом
doc/api/commits.md
Просмотр файла @
01a40700
...
...
@@ -73,8 +73,8 @@ curl -H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3
"parent_ids"
:
[
"ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba"
],
"status"
:
"failed"
,
"last_build"
:
{
"status"
:
"failed"
,
"coverage"
:
null
,
"duration"
:
2
,
"started_at"
:
"2015-12-24T17:54:09.744Z"
,
...
...
doc/api/merge_requests.md
Просмотр файла @
01a40700
...
...
@@ -110,12 +110,12 @@ Parameters:
],
"short_id"
:
"6c14056d"
,
"title"
:
"Add some fixes"
,
"status"
:
"running"
,
"last_build"
:
{
"coverage"
:
null
,
"duration"
:
0
,
"finished_at"
:
null
,
"started_at"
:
"2012-04-25T13:15:15.000+01:00"
,
"status"
:
"running"
"started_at"
:
"2012-04-25T13:15:15.000+01:00"
}
}
}
...
...
lib/api/entities.rb
Просмотр файла @
01a40700
...
...
@@ -132,7 +132,6 @@ class RepoCommit < Grape::Entity
end
class
RepoCommitLastBuild
<
Grape
::
Entity
expose
:status
expose
:started_at
expose
:finished_at
expose
:duration
...
...
@@ -141,6 +140,7 @@ class RepoCommitLastBuild < Grape::Entity
class
RepoCommitDetail
<
RepoCommit
expose
:parent_ids
,
:committed_date
,
:authored_date
expose
:status
expose
:ci_commit
,
as: :last_build
,
with:
Entities
::
RepoCommitLastBuild
end
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать