MCPcopy Create free account
hub / github.com/apache/devlake / convertTag

Function convertTag

backend/plugins/gitlab/tasks/tag_extractor.go:86–95  ·  view source on GitHub ↗

Convert the API response to our DB model instance

(tag *GitlabApiTag)

Source from the content-addressed store, hash-verified

84
85// Convert the API response to our DB model instance
86func convertTag(tag *GitlabApiTag) (*models.GitlabTag, errors.Error) {
87 gitlabTag := &models.GitlabTag{
88 Name: tag.Name,
89 Message: tag.Message,
90 Target: tag.Target,
91 Protected: tag.Protected,
92 ReleaseDescription: tag.Release.Description,
93 }
94 return gitlabTag, nil
95}

Callers 1

ExtractApiTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected