()
| 1411 | } |
| 1412 | |
| 1413 | func (g ForgeEntity) LabelScope() string { |
| 1414 | switch g.EntityType { |
| 1415 | case ForgeEntityTypeRepository: |
| 1416 | return MetricsLabelRepositoryScope |
| 1417 | case ForgeEntityTypeOrganization: |
| 1418 | return MetricsLabelOrganizationScope |
| 1419 | case ForgeEntityTypeEnterprise: |
| 1420 | return MetricsLabelEnterpriseScope |
| 1421 | } |
| 1422 | return "" |
| 1423 | } |
| 1424 | |
| 1425 | func (g ForgeEntity) String() string { |
| 1426 | switch g.EntityType { |
no outgoing calls
no test coverage detected