diagram-to-iac 1.6.0__py3-none-any.whl → 1.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -767,10 +767,25 @@ class GitExecutor:
767
767
  labels_str = ",".join(gh_input.labels)
768
768
  gh_command += f" --label \"{labels_str}\""
769
769
 
770
- # Handle assignees - auto-assign to repository owner or github-copilot if none provided
770
+ # Smart assignee prioritization logic
771
771
  assignees_to_use = gh_input.assignees or []
772
- if not assignees_to_use:
773
- # Try to assign to @github-copilot first, fallback to repository owner
772
+
773
+ if assignees_to_use:
774
+ # If assignees are provided, apply smart prioritization
775
+ if "github-copilot" in assignees_to_use:
776
+ # Multiple assignees with Copilot -> assign to Copilot only
777
+ assignees_to_use = ["github-copilot"]
778
+ self.logger.info("Multiple assignees detected with @github-copilot - assigning to @github-copilot only")
779
+ elif len(assignees_to_use) == 1 and assignees_to_use[0] == owner:
780
+ # Only owner as assignee -> keep as owner
781
+ self.logger.info(f"Single assignee is repository owner - assigning to @{owner}")
782
+ elif len(assignees_to_use) > 1 and "github-copilot" not in assignees_to_use:
783
+ # Multiple assignees without Copilot -> assign to owner only
784
+ assignees_to_use = [owner]
785
+ self.logger.info(f"Multiple assignees without @github-copilot - assigning to repository owner @{owner} only")
786
+ # Single non-owner assignee -> keep as provided
787
+ else:
788
+ # No assignees provided - auto-assign with Copilot preference
774
789
  try:
775
790
  # Check if github-copilot exists as a user
776
791
  check_copilot_cmd = "gh api /users/github-copilot"
@@ -779,15 +794,15 @@ class GitExecutor:
779
794
 
780
795
  if check_result.exit_code == 0:
781
796
  assignees_to_use = ["github-copilot"]
782
- self.logger.info("Auto-assigning issue to @github-copilot")
797
+ self.logger.info("No assignees provided - auto-assigning to @github-copilot")
783
798
  else:
784
799
  # Fallback to repository owner
785
800
  assignees_to_use = [owner]
786
- self.logger.info(f"Auto-assigning issue to repository owner: @{owner}")
801
+ self.logger.info(f"No assignees provided, @github-copilot not available - auto-assigning to repository owner @{owner}")
787
802
  except Exception as e:
788
803
  # Fallback to repository owner if check fails
789
804
  assignees_to_use = [owner]
790
- self.logger.info(f"Failed to check @github-copilot, assigning to repository owner: @{owner}. Error: {e}")
805
+ self.logger.info(f"Failed to check @github-copilot, assigning to repository owner @{owner}. Error: {e}")
791
806
 
792
807
  if assignees_to_use:
793
808
  assignees_str = ",".join(assignees_to_use)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diagram-to-iac
3
- Version: 1.6.0
3
+ Version: 1.8.0
4
4
  Summary: Convert architecture diagrams into IaC modules
5
5
  Author-email: vindpro <admin@vindpro.com>
6
6
  Description-Content-Type: text/markdown
@@ -57,7 +57,7 @@ diagram_to_iac/tools/api_utils.py,sha256=c3nOK3eZdUuik5IVvMyGIEG-3oILnyOVd-RubtP
57
57
  diagram_to_iac/tools/sec_utils.py,sha256=Zzb-I3_qZblv0nIEm4TO0xQCga3Phq44SOGx1ga_wOc,12463
58
58
  diagram_to_iac/tools/text_utils.py,sha256=cnwOXWndd1QAlZC4zOO9jtF3_j4xozDLUTfzfJE9wWQ,9959
59
59
  diagram_to_iac/tools/git/__init__.py,sha256=1V3_Kg_KzQ6er60N-1hqQeigkV8c4AvYq-R60_xmQ4o,1316
60
- diagram_to_iac/tools/git/git.py,sha256=0NYz9NqQWf-5YTX7R3nBPyLmzvih-jhd0gYY8KZDmTM,46501
60
+ diagram_to_iac/tools/git/git.py,sha256=QwGNUTluMwlA66dkypIfOz1IV6ZIqVmEsS-XO1UVMq4,47646
61
61
  diagram_to_iac/tools/git/git_config.yaml,sha256=ekww9EEZigEfZBv-HNSEYP__SDT61yOdBQ0u-Lhquv0,4272
62
62
  diagram_to_iac/tools/hello/__init__.py,sha256=f6GpkiQxvuGaRMm34yQilGACxUI4c5edJQTDjZtskjQ,891
63
63
  diagram_to_iac/tools/hello/cal_utils.py,sha256=B-0iOJHNL1IgYPlWUdrAwEf1r9LUKBAnGyx1xQz05ZE,1507
@@ -74,8 +74,8 @@ diagram_to_iac/tools/shell/shell.py,sha256=ZOJ7Vo3l_R2Gm6Ml2FL0RX__-C_JOsUrLJVvB
74
74
  diagram_to_iac/tools/shell/shell_config.yaml,sha256=9mV1mpOD9mwOx50TXF-ACafeJmBSZaqPo4v-TQxB5U4,1722
75
75
  diagram_to_iac/tools/tf/terraform.py,sha256=j1boWRo6JKpNGf1OwnWoWboO0gMYTizCOHDSxozoFZw,37343
76
76
  diagram_to_iac/tools/tf/terraform_config.yaml,sha256=Mj5rp5hwLLZ3VmKIqwnjoKvPlaA20OX5plH40DfGG7k,610
77
- diagram_to_iac-1.6.0.dist-info/METADATA,sha256=0XLOecf3n1rchEW3kG-7AY_JcCS0rKWhvBmJXV5VmBI,10689
78
- diagram_to_iac-1.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- diagram_to_iac-1.6.0.dist-info/entry_points.txt,sha256=DfGCnmgWWGHtQpqU8VqcUWs5k_be-bfO67z1vOuTitA,277
80
- diagram_to_iac-1.6.0.dist-info/top_level.txt,sha256=k1cV0YODiCUU46qlmbQaquMcbMXhNm05NZLxsinDUBA,15
81
- diagram_to_iac-1.6.0.dist-info/RECORD,,
77
+ diagram_to_iac-1.8.0.dist-info/METADATA,sha256=0s_otvA8r4XmxxLtUcoo-4fMlQi0N0GUeIMpgEi2nqs,10689
78
+ diagram_to_iac-1.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ diagram_to_iac-1.8.0.dist-info/entry_points.txt,sha256=DfGCnmgWWGHtQpqU8VqcUWs5k_be-bfO67z1vOuTitA,277
80
+ diagram_to_iac-1.8.0.dist-info/top_level.txt,sha256=k1cV0YODiCUU46qlmbQaquMcbMXhNm05NZLxsinDUBA,15
81
+ diagram_to_iac-1.8.0.dist-info/RECORD,,