From 9fd3d22686b2fcebaca3aa018e125ff51851ba56 Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sun, 26 Feb 2023 15:39:39 +0530 Subject: [PATCH 01/10] Create .github/workflows/dependency-review.yml Fixes #390 --- .github/workflows/dependency-review.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000..4883f1e --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,17 @@ +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@main + - name: 'Dependency Review' + uses: actions/dependency-review-action@main + with: + comment-summary-in-pr: true From eca7d89cfce91ca69a94dac3c3c7dcf7ea269376 Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:04:40 +0530 Subject: [PATCH 02/10] Perform dependency review on push and schedule --- .github/workflows/dependency-review.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 4883f1e..d33991b 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,5 +1,12 @@ -name: 'Dependency Review' -on: [pull_request] +name: 'Dependency review' +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "**" ] + workflow_dispatch: + schedule: + - cron: '45 15 * * 5' permissions: contents: read @@ -9,9 +16,9 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - name: 'Checkout Repository' + - name: 'Checkout repository' uses: actions/checkout@main - - name: 'Dependency Review' + - name: 'Dependency review' uses: actions/dependency-review-action@main with: comment-summary-in-pr: true From 143e118f1a889632cd51c7864d922c5ff6e1a238 Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:55:13 +0530 Subject: [PATCH 03/10] Pin action version in Dependency review --- .github/workflows/dependency-review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index d33991b..09d23a7 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -17,8 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout repository' - uses: actions/checkout@main + uses: actions/checkout@v3 - name: 'Dependency review' - uses: actions/dependency-review-action@main + uses: actions/dependency-review-action@v3 with: comment-summary-in-pr: true From b2aafe405760860ca44da7fe7644f10ee2fa4e0f Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:58:10 +0530 Subject: [PATCH 04/10] Fix formatting in dependency-review-action --- .github/workflows/dependency-review.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 09d23a7..323a33c 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,4 +1,4 @@ -name: 'Dependency review' +name: Dependency review on: push: branches: [ "master" ] @@ -6,7 +6,7 @@ on: branches: [ "**" ] workflow_dispatch: schedule: - - cron: '45 15 * * 5' + - cron: 45 15 * * 5 permissions: contents: read @@ -16,9 +16,9 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - name: 'Checkout repository' + - name: Checkout repository uses: actions/checkout@v3 - - name: 'Dependency review' + - name: Dependency review uses: actions/dependency-review-action@v3 with: comment-summary-in-pr: true From e337347cb39d1edd76745f15d36efa332c950ddb Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:59:16 +0530 Subject: [PATCH 05/10] Fix formatting in dependency-review-action --- .github/workflows/dependency-review.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 323a33c..2ed2dc8 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,9 +1,8 @@ name: Dependency review on: push: - branches: [ "master" ] + branches: master pull_request: - branches: [ "**" ] workflow_dispatch: schedule: - cron: 45 15 * * 5 From a49641e425f1ad4cd92d2f5bd40fb9bfd5ac0690 Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Tue, 28 Feb 2023 01:56:53 +0530 Subject: [PATCH 06/10] Create dependabot.yml --- .github/dependabot.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/dependabot.yml 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 From 7297a84faa923c413270196ddeefcc955382c518 Mon Sep 17 00:00:00 2001 From: pseusys Date: Mon, 27 Feb 2023 22:23:44 +0100 Subject: [PATCH 07/10] workflow file emojis added --- .github/workflows/dependency-review.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 2ed2dc8..3c31efd 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -14,10 +14,12 @@ permissions: jobs: dependency-review: runs-on: ubuntu-latest + steps: - - name: Checkout repository + - name: Checkout repository 🛎️ uses: actions/checkout@v3 - - name: Dependency review + + - name: Dependency review 👀 uses: actions/dependency-review-action@v3 with: comment-summary-in-pr: true From 12989d35adfbc0ebe86b29c5304043507ce21ba5 Mon Sep 17 00:00:00 2001 From: pseusys Date: Tue, 28 Feb 2023 17:26:52 +0100 Subject: [PATCH 08/10] retries added to GitHub GraphQL API requests --- sources/manager_download.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()}") From 629925595bad56d9b1890042c00163fb4c819808 Mon Sep 17 00:00:00 2001 From: pseusys Date: Wed, 1 Mar 2023 00:28:13 +0100 Subject: [PATCH 09/10] persian translation added --- sources/translation.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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": "من یک 🦉 شبم" } } From 286476d7283bb63048ddae068571c04b6a40284e Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Fri, 10 Mar 2023 02:35:21 +0530 Subject: [PATCH 10/10] Set dependency-review to only check PRs --- .github/workflows/dependency-review.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 3c31efd..6a26cd5 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,11 +1,5 @@ name: Dependency review -on: - push: - branches: master - pull_request: - workflow_dispatch: - schedule: - - cron: 45 15 * * 5 +on: pull_request permissions: contents: read