debian-mirror-gitlab/spec/contracts/consumer/endpoints/project/pipelines.js
2022-08-13 15:12:31 +05:30

16 lines
348 B
JavaScript

import { request } from 'axios';
export function getProjectPipelines(endpoint) {
const { url } = endpoint;
return request({
method: 'GET',
baseURL: url,
url: '/gitlab-org/gitlab-qa/-/pipelines.json',
headers: { Accept: '*/*' },
params: {
scope: 'all',
page: 1,
},
}).then((response) => response.data);
}