MCPcopy
hub / github.com/apache/devlake / GetProject

Method GetProject

backend/test/helper/api.go:197–203  ·  view source on GitHub ↗
(projectName string)

Source from the content-addressed store, hash-verified

195}
196
197func (d *DevlakeClient) GetProject(projectName string) models.ApiOutputProject {
198 return sendHttpRequest[models.ApiOutputProject](d.testCtx, d.timeout, &testContext{
199 client: d,
200 printPayload: true,
201 inlineJson: false,
202 }, http.MethodGet, fmt.Sprintf("%s/projects/%s", d.Endpoint, projectName), nil, nil)
203}
204
205func (d *DevlakeClient) ListProjects() apiProject.PaginatedProjects {
206 return sendHttpRequest[apiProject.PaginatedProjects](d.testCtx, d.timeout, &testContext{

Callers 10

TestTestmoPluginFunction · 0.80
TestPagerDutyPluginFunction · 0.80
createProjectFunction · 0.80
TestAzureFunction · 0.80
TestArgoCDPluginFunction · 0.80
TestGitlabPluginFunction · 0.80
CreateTestBlueprintsFunction · 0.80
GetProjectFunction · 0.80
GetProjectCheckFunction · 0.80
getOrCreateConnectionFunction · 0.80

Calls 1

sendHttpRequestFunction · 0.85

Tested by 6

TestTestmoPluginFunction · 0.64
TestPagerDutyPluginFunction · 0.64
createProjectFunction · 0.64
TestAzureFunction · 0.64
TestArgoCDPluginFunction · 0.64
TestGitlabPluginFunction · 0.64