Files
shields/services/gitlab/gitlab-helper.js
chris48s 10bf39632a migrate examples to openApi part 26; affects [gitlab] (#9752)
* replace failing 'other' test with a mock

* update pipeline/coverage 'not found' tests

* migrate gitlab from examples to openApi

* eat own tail
2023-12-30 17:38:31 +00:00

18 lines
556 B
JavaScript

const description = `
You may use your GitLab Project Id (e.g. 278964) or your Project Path (e.g.
[gitlab-org/gitlab](https://gitlab.com/gitlab-org/gitlab) ).
Note that only internet-accessible GitLab instances are supported, for example
[https://jihulab.com](https://jihulab.com),
[https://gitlab.gnome.org](https://gitlab.gnome.org), or
[https://gitlab.com](https://gitlab.com).
`
function httpErrorsFor(notFoundMessage = 'project not found') {
return {
401: notFoundMessage,
404: notFoundMessage,
}
}
export { description, httpErrorsFor }