mirror of
https://github.com/ChristianLempa/scripts.git
synced 2026-11-11 07:32:43 +01:00
updates names
This commit is contained in:
1 parent
82b92939c1
commit
ce7b5fdc5d
3 files changed
+47
-16
No files matched your search
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Check Repos 2
|
||||
# @raycast.mode fullOutput
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon 🤖
|
||||
|
||||
# Documentation:
|
||||
# @raycast.author ChristianLempa
|
||||
# @raycast.authorURL https://raycast.com/ChristianLempa
|
||||
|
||||
op run --env-file="/Users/xcad/.env" -- python3 /Users/xcad/Projects/christianlempa/scripts/repos check --list-orphaned
|
||||
|
||||
File renamed without changes.
Executable
+47
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title test1
|
||||
# @raycast.mode fullOutput
|
||||
|
||||
# Optional parameters:
|
||||
# @raycast.icon https://avatars.githubusercontent.com/u/97734037?s=200&v=4
|
||||
|
||||
# Documentation:
|
||||
# @raycast.author ChristianLempa
|
||||
# @raycast.authorURL https://raycast.com/ChristianLempa
|
||||
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
from repos import getRepos
|
||||
|
||||
|
||||
load_dotenv()
|
||||
|
||||
github_token = os.getenv("GITHUB_TOKEN")
|
||||
|
||||
ignored_folders = [
|
||||
'.git',
|
||||
'.DS_Store',
|
||||
'.obsidian',
|
||||
]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
# List all repos for an organization from GitHub
|
||||
# https://docs.github.com/en/rest/reference/repos#list-organization-repositories
|
||||
|
||||
repos = getRepos(github_token, 'clcreative')
|
||||
if repos is not None:
|
||||
for repo in repos:
|
||||
print(f"{repo['name']}, {repo['owner']['login']}, {repo['description']}")
|
||||
else:
|
||||
raise Exception("repos is None")
|
||||
|
||||
# Sum all repos
|
||||
print(f"---\nTotal: {len(repos)}")
|
||||
|
||||
except Exception as e:
|
||||
print(f"error: {e}")
|
||||
Reference in new issue
Block a user