Skip to content

Commit

Permalink
fix labeller and add 4.0 label (#27174)
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m authored Aug 27, 2024
1 parent 99b4df8 commit 208a2df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
16 changes: 2 additions & 14 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ v/2.x (legacy):
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)2\.\d+'
v/3.x:
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)3\.\d+'
v/4.x:
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)4\.\d+'
service/aadb2c:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_aadb2c_directory((.|\n)*)###'

Expand Down Expand Up @@ -120,8 +122,6 @@ service/devtestlabs:
service/digital-twins:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_digital_twins_((.|\n)*)###'

service/disks:

service/dns:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(dns_|private_dns_a_record\W+|private_dns_aaaa_record\W+|private_dns_cname_record\W+|private_dns_mx_record\W+|private_dns_ptr_record\W+|private_dns_soa_record\W+|private_dns_srv_record\W+|private_dns_txt_record\W+|private_dns_zone\W+|private_dns_zone_virtual_network_link\W+)((.|\n)*)###'

Expand Down Expand Up @@ -173,16 +173,12 @@ service/iot-central:
service/iot-hub:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_iothub((.|\n)*)###'

service/iot-time-series:

service/key-vault:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(key_vault\W+|key_vault_access_policy\W+|key_vault_certificate\W+|key_vault_certificate_contacts\W+|key_vault_certificate_data\W+|key_vault_certificate_issuer\W+|key_vault_certificates\W+|key_vault_encrypted_value\W+|key_vault_key\W+|key_vault_managed_storage_account\W+|key_vault_managed_storage_account_sas_token_definition\W+|key_vault_secret\W+|key_vault_secrets\W+)((.|\n)*)###'

service/kusto:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_kusto_((.|\n)*)###'

service/labservice:

service/lighthouse:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_lighthouse_((.|\n)*)###'

Expand All @@ -198,8 +194,6 @@ service/log-analytics:
service/logic:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_logic_app_((.|\n)*)###'

service/logz:

service/machine-learning:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_machine_learning_((.|\n)*)###'

Expand All @@ -218,8 +212,6 @@ service/management-groups:
service/maps:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_maps_((.|\n)*)###'

service/maria-db:

service/media:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_media_services_account_filter((.|\n)*)###'

Expand Down Expand Up @@ -322,8 +314,6 @@ service/signalr:
service/spring:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(spring_cloud_accelerator\W+|spring_cloud_active_deployment\W+|spring_cloud_api_portal\W+|spring_cloud_api_portal_custom_domain\W+|spring_cloud_app\W+|spring_cloud_app_cosmosdb_association\W+|spring_cloud_app_dynamics_application_performance_monitoring\W+|spring_cloud_app_mysql_association\W+|spring_cloud_app_redis_association\W+|spring_cloud_application_insights_application_performance_monitoring\W+|spring_cloud_application_live_view\W+|spring_cloud_build_deployment\W+|spring_cloud_build_pack_binding\W+|spring_cloud_builder\W+|spring_cloud_certificate\W+|spring_cloud_configuration_service\W+|spring_cloud_container_deployment\W+|spring_cloud_custom_domain\W+|spring_cloud_customized_accelerator\W+|spring_cloud_dev_tool_portal\W+|spring_cloud_dynatrace_application_performance_monitoring\W+|spring_cloud_elastic_application_performance_monitoring\W+|spring_cloud_gateway\W+|spring_cloud_gateway_custom_domain\W+|spring_cloud_gateway_route_config\W+|spring_cloud_java_deployment\W+|spring_cloud_new_relic_application_performance_monitoring\W+|spring_cloud_service\W+|spring_cloud_storage\W+)((.|\n)*)###'

service/sql:

service/storage:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(storage_account\W+|storage_account_blob_container_sas\W+|storage_account_customer_managed_key\W+|storage_account_local_user\W+|storage_account_network_rules\W+|storage_account_sas\W+|storage_blob\W+|storage_blob_inventory_policy\W+|storage_container\W+|storage_container_immutability_policy\W+|storage_containers\W+|storage_data_lake_gen2_filesystem\W+|storage_data_lake_gen2_path\W+|storage_encryption_scope\W+|storage_management_policy\W+|storage_object_replication\W+|storage_queue\W+|storage_share\W+|storage_share_directory\W+|storage_share_file\W+|storage_sync\W+|storage_sync_cloud_endpoint\W+|storage_sync_group\W+|storage_sync_server_endpoint\W+|storage_table\W+|storage_table\W+|storage_table_entities\W+|storage_table_entity\W+)((.|\n)*)###'

Expand All @@ -345,8 +335,6 @@ service/systemcentervirtualmachinemanager:
service/traffic-manager:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_traffic_manager_((.|\n)*)###'

service/video-analyzer:

service/virtual-desktops:
- '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_virtual_desktop_((.|\n)*)###'

Expand Down
20 changes: 11 additions & 9 deletions internal/tools/generator-services/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ v/2.x (legacy):
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)2\.\d+'
v/3.x:
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)3\.\d+'
v/4.x:
- '### AzureRM Provider Version\s+(|azurerm |AzureRM )(|v|V)4\.\d+'
`

const azurerm = "azurerm_"
Expand Down Expand Up @@ -392,16 +394,16 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct
}
}

if len(prefixes) > 1 {
out = append(out, fmt.Sprintf(" - '### (|New or )Affected Resource\\(s\\)\\/Data Source\\(s\\)((.|\\n)*)azurerm_(%s)((.|\\n)*)###'", strings.Join(prefixes, "|")))
}
if len(prefixes) == 1 {
out = append(out, fmt.Sprintf(" - '### (|New or )Affected Resource\\(s\\)\\/Data Source\\(s\\)((.|\\n)*)azurerm_%s((.|\\n)*)###'", prefixes[0]))
if len(prefixes) > 0 {
if len(prefixes) > 1 {
out = append(out, fmt.Sprintf(" - '### (|New or )Affected Resource\\(s\\)\\/Data Source\\(s\\)((.|\\n)*)azurerm_(%s)((.|\\n)*)###'", strings.Join(prefixes, "|")))
}
if len(prefixes) == 1 {
out = append(out, fmt.Sprintf(" - '### (|New or )Affected Resource\\(s\\)\\/Data Source\\(s\\)((.|\\n)*)azurerm_%s((.|\\n)*)###'", prefixes[0]))
}
out = append(out, "")
output += fmt.Sprintf("\n%s", strings.Join(out, "\n"))
}
// NOTE: it's possible for a Service to contain 0 Data Sources/Resources (during initial generation)

out = append(out, "")
output += fmt.Sprintf("\n%s", strings.Join(out, "\n"))
}

return writeToFile(outputFileName, output)
Expand Down

0 comments on commit 208a2df

Please sign in to comment.