diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6c05be3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +version: 2 +updates: + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 99 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 99 + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 99 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000..6a26cd5 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,19 @@ +name: Dependency review +on: pull_request + +permissions: + contents: read + pull-requests: write + +jobs: + dependency-review: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository 🛎️ + uses: actions/checkout@v3 + + - name: Dependency review 👀 + uses: actions/dependency-review-action@v3 + with: + comment-summary-in-pr: true diff --git a/sources/manager_download.py b/sources/manager_download.py index 71db5d9..79ef636 100644 --- a/sources/manager_download.py +++ b/sources/manager_download.py @@ -121,7 +121,7 @@ GITHUB_API_QUERIES = { """, "hide_outdated_comment": """ mutation { - minimizeComment(input: {classifier:OUTDATED, subjectId: "$id"}) { + minimizeComment(input: {classifier: OUTDATED, subjectId: "$id"}) { clientMutationId } } @@ -227,7 +227,7 @@ class DownloadManager: return await DownloadManager._get_remote_resource(resource, safe_load) @staticmethod - async def _fetch_graphql_query(query: str, **kwargs) -> Dict: + async def _fetch_graphql_query(query: str, retries_count: int = 10, **kwargs) -> Dict: """ Execute GitHub GraphQL API simple query. :param query: Dynamic query identifier. @@ -241,6 +241,8 @@ class DownloadManager: ) if res.status_code == 200: return res.json() + elif res.status_code == 502 and retries_count > 0: + return await DownloadManager._fetch_graphql_query(query, retries_count - 1, **kwargs) else: raise Exception(f"Query '{query}' failed to run by returning code of {res.status_code}: {res.json()}") diff --git a/sources/translation.json b/sources/translation.json index 899130e..2d9642c 100644 --- a/sources/translation.json +++ b/sources/translation.json @@ -701,5 +701,42 @@ "private repositories": "%d Приватных репозиторіїв", "I am an Early": "Я рання 🐤", "I am a Night": "Я нічна 🦉" + }, + "fa": { + "Monday": "دوشنبه", + "Tuesday": "سه‌شنبه", + "Wednesday": "چهارشنبه", + "Thursday": "پنج‌شنبه", + "Friday": "جمعه", + "Saturday": "شنبه", + "Sunday": "یک‌شنبه", + "Morning": "صبح", + "Daytime": "طول روز", + "Evening": "عصر", + "Night": "شب", + "Languages": "زبان‌ها", + "Editors": "ادیتورها", + "operating system": "سیستم‌عامل‌ها", + "Projects": "پروژه‌ها", + "Timezone": "منطقه‌ی زمانی", + "Contributions in the year": "%s مشارکت‌ها در سال جاری %s", + "Used in GitHub's Storage": "%s مصرف فضای گیت‌هاب", + "Opted to Hire": "جویای‌کار", + "Not Opted to Hire": "دنبال‌کار نیست", + "Profile Views": "بازدید‌های پروفایل", + "From Hello World I have written": "از اولین کدم تا کنون %s کد نوشته‌ام.", + "I am Most Productive on": "بیشتر در %s فعالیت دارم", + "This Week I Spend My Time On": "این هفته بیشتر روی این موضوعات کار کردم", + "I Mostly Code in": "من بیشتر کدهام %s هست.", + "Timeline": "زمان‌بندی", + "No Activity Tracked This Week": "این هفته فعالیتی نبوده", + "My GitHub Data": "اطلاعات گیت‌هاب من", + "Lines of code": "خط‌های کد", + "public repository": "%d رپیوزیتوری‌ عمومی", + "public repositories": "%d ریپوزیتوری‌های عمومی", + "private repository": "%d ریپوزیتوری‌ شخصی", + "private repositories": "%d ریپوزیتوری‌های شخصی", + "I am an Early": "من یک 🐤 سحر‌خیزم", + "I am a Night": "من یک 🦉 شبم" } }