MCPcopy Create free account
hub / github.com/SignTools/SignTools / getProjectId

Method getProjectId

src/builders/semaphore.go:63–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (s *Semaphore) getProjectId() (string, error) {
64 data := semaphoreProject{}
65 resp, err := s.client.New().
66 Get("v1alpha/projects/" + s.data.ProjectName).
67 ReceiveSuccess(&data)
68 if err != nil {
69 return "", err
70 }
71 if err := util.Check2xxCode(resp.StatusCode); err != nil {
72 return "", err
73 }
74 return data.Metadata.ID, nil
75}
76
77type semaphoreProject struct {
78 Spec struct {

Callers 1

TriggerMethod · 0.95

Calls 3

Check2xxCodeFunction · 0.92
NewMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected