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

Function getStdTypeMappings

backend/plugins/tapd/tasks/shared.go:205–216  ·  view source on GitHub ↗

getStdTypeMappings creates a map of user type to standard type based on the provided TapdTaskData. It returns the created map.

(data *TapdTaskData)

Source from the content-addressed store, hash-verified

203// getStdTypeMappings creates a map of user type to standard type based on the provided TapdTaskData.
204// It returns the created map.
205func getStdTypeMappings(data *TapdTaskData) map[string]string {
206 stdTypeMappings := make(map[string]string)
207 if data.Options.ScopeConfig == nil {
208 return stdTypeMappings
209 }
210 mapping := data.Options.ScopeConfig.TypeMappings
211 // Map user types to standard types
212 for userType, stdType := range mapping {
213 stdTypeMappings[userType] = strings.ToUpper(stdType)
214 }
215 return stdTypeMappings
216}
217
218// getStatusMapping creates a map of original status values to standard status values
219// based on the provided TapdTaskData. It returns the created map.

Callers 4

ExtractStoriesFunction · 0.70
ConvertStoryChangelogFunction · 0.70
ExtractTasksFunction · 0.70
ExtractBugsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected