You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may add a feature to allow you to add a custom icon for private repo in the private_repos folder and pick up the image from there to solve this problem instead of adding it to the private markdown file which can be used for other things.
The text was updated successfully, but these errors were encountered:
I added the feature by updating the project_tier_table_generator.py under commit line af5bc4b.
# Check if the repo is private to use the private repo icon (Issue #3)ifrepo_data['private']:
# Construct the expected icon file pathexpected_icon_path=os.path.join(PRIVATE_REPO_ICON_DIR, f"{repo_data['name']}.png")
# Check if the icon file existsifos.path.isfile(expected_icon_path):
# Use the relative path from your project root to the iconifMD_ONLY_TIER_TABLE:
path_start='..'icon_url=f"{PRIVATE_REPO_ICON_DIR}/{repo_data['name']}.png"print(f"Using private repo icon for {repo_data['name']}.")
else:
# Use placeholder if the icon file does not existifMD_ONLY_TIER_TABLE:
path_start='..'icon_url=PLACEHOLDER_ICONprint(f"Icon not found for private repo {repo_data['name']}, using placeholder.")
I may add a feature to allow you to add a custom icon for private repo in the private_repos folder and pick up the image from there to solve this problem instead of adding it to the private markdown file which can be used for other things.
The text was updated successfully, but these errors were encountered: