Skip to content

Commit

Permalink
Fix find label code (#39245)
Browse files Browse the repository at this point in the history
* fix find label code

* remove debug
  • Loading branch information
kristapratico authored Jan 17, 2025
1 parent df7dc2f commit cfcf626
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/repo_health_status_report/output_health_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,11 @@ def map_codeowners_to_label(
if len(parts) > 3:
# we don't distinguish past package level for SLA
continue
service_directory = parts[0]
try:
service_directory = parts[0]
except IndexError:
# it was a single file
continue
tracked_labels[label] = service_directory
try:
library = parts[1]
Expand Down
6 changes: 5 additions & 1 deletion tools/azure-sdk-tools/gh_tools/vnext_issue_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ def get_labels(package_name: str, service: str) -> list[str]:
parts = [part for part in line.split("@")[0].split("/") if part.strip()][1:]
if len(parts) > 2:
continue
service_directory = parts[0]
try:
service_directory = parts[0]
except IndexError:
# it was a single file
continue
try:
library = parts[1]
if package_name == library:
Expand Down

0 comments on commit cfcf626

Please sign in to comment.