MCPcopy Create free account
hub / github.com/FastLED/FastLED / _get_repo

Method _get_repo

ci/tools/gh_debug.py:91–108  ·  view source on GitHub ↗

Get repository in owner/repo format.

(self)

Source from the content-addressed store, hash-verified

89 return run_input
90
91 def _get_repo(self) -> str:
92 """Get repository in owner/repo format."""
93 try:
94 result = subprocess.run(
95 ["gh", "repo", "view", "--json", "nameWithOwner"],
96 capture_output=True,
97 text=True,
98 check=True,
99 timeout=10,
100 )
101 data = json.loads(result.stdout)
102 return data["nameWithOwner"]
103 except KeyboardInterrupt as ki:
104 handle_keyboard_interrupt(ki)
105 raise
106 except Exception as e:
107 print(f"Error getting repo info: {e}", file=sys.stderr)
108 return "FastLED/FastLED" # Default fallback
109
110 def get_run_info(self) -> dict[str, str]:
111 """Get basic run information."""

Callers 1

__init__Method · 0.95

Calls 3

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected