From 85f33e76b98ef3e8c6a21d130ba96426180c4cd3 Mon Sep 17 00:00:00 2001 From: Pavan Raga Date: Fri, 9 May 2025 14:29:23 +0800 Subject: [PATCH 1/5] fix: boolean check for LINK_TO_PROFILE LINK_TO_PROFILE is read/set as boolean but compared against string Signed-off-by: Pavan Raga --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.py b/markdown.py index 1acda35..fb51d35 100644 --- a/markdown.py +++ b/markdown.py @@ -191,7 +191,7 @@ def get_contributor_table( commit_urls += f"{url}, " new_contributor = collaborator.new_contributor - row = f"| {'' if link_to_profile == 'false' else '@'}{username} | {contribution_count} |" + row = f"| {'' if not link_to_profile else '@'}{username} | {contribution_count} |" if "New Contributor" in columns: row += f" {new_contributor} |" if "Sponsor URL" in columns: From c1d83cf78b33e728e6e81c51433f3f1b7358dc4a Mon Sep 17 00:00:00 2001 From: Pavan Raga Date: Sat, 10 May 2025 09:07:33 +0800 Subject: [PATCH 2/5] Update test_markdown.py Signed-off-by: Pavan Raga --- test_markdown.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_markdown.py b/test_markdown.py index e70ab78..54a7337 100644 --- a/test_markdown.py +++ b/test_markdown.py @@ -49,7 +49,7 @@ def test_write_to_markdown(self, mock_file): None, "org/repo", "false", - "true", + True, ghe, ) @@ -105,7 +105,7 @@ def test_write_to_markdown_with_sponsors(self, mock_file): None, "org/repo", "true", - "true", + True, ghe, ) @@ -161,7 +161,7 @@ def test_write_to_markdown_without_link_to_profile(self, mock_file): None, "org/repo", "false", - "false", + False, ghe, ) From 8e4f332e2312bb62b5ad8a61faa16a40c487aae6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 May 2025 00:12:21 +0000 Subject: [PATCH 3/5] chore(deps): bump github/contributors in the dependencies group Bumps the dependencies group with 1 update: [github/contributors](https://github.com/github/contributors). Updates `github/contributors` from 1.5.6 to 1.5.7 - [Release notes](https://github.com/github/contributors/releases) - [Commits](https://github.com/github/contributors/compare/ed5a1f1c7c0038f4c9ad790685b6b8a549ab3f64...9e9ce8e51fe186c4d699ebb3d35c1f1fd755a357) --- updated-dependencies: - dependency-name: github/contributors dependency-version: 1.5.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] --- .github/workflows/contributors_report.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/contributors_report.yaml b/.github/workflows/contributors_report.yaml index 1c78aa2..d262144 100644 --- a/.github/workflows/contributors_report.yaml +++ b/.github/workflows/contributors_report.yaml @@ -30,7 +30,7 @@ jobs: echo "END_DATE=$end_date" >> "$GITHUB_ENV" - name: Run contributor action - uses: github/contributors@ed5a1f1c7c0038f4c9ad790685b6b8a549ab3f64 + uses: github/contributors@9e9ce8e51fe186c4d699ebb3d35c1f1fd755a357 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} START_DATE: ${{ env.START_DATE }} From 90367f3ed8b44d4144da33ba079e61961db78946 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 May 2025 00:22:14 +0000 Subject: [PATCH 4/5] chore(deps): bump python from `60248ff` to `914bf5c` Bumps python from `60248ff` to `914bf5c`. --- updated-dependencies: - dependency-name: python dependency-version: 3.13-slim dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6a9bce7..93e3a9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ #checkov:skip=CKV_DOCKER_2 #checkov:skip=CKV_DOCKER_3 -FROM python:3.13-slim@sha256:60248ff36cf701fcb6729c085a879d81e4603f7f507345742dc82d4b38d16784 +FROM python:3.13-slim@sha256:914bf5c12ea40a97a78b2bff97fbdb766cc36ec903bfb4358faf2b74d73b555b LABEL com.github.actions.name="contributors" \ com.github.actions.description="GitHub Action that given an organization or repository, produces information about the contributors over the specified time period." \ com.github.actions.icon="users" \ From bd86d8700b7169b46c9a4a2c6525e8d40955909b Mon Sep 17 00:00:00 2001 From: Pavan Raga Date: Mon, 12 May 2025 13:47:19 +0800 Subject: [PATCH 5/5] fix: linting Signed-off-by: Pavan Raga --- markdown.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/markdown.py b/markdown.py index fb51d35..5d5e419 100644 --- a/markdown.py +++ b/markdown.py @@ -191,7 +191,9 @@ def get_contributor_table( commit_urls += f"{url}, " new_contributor = collaborator.new_contributor - row = f"| {'' if not link_to_profile else '@'}{username} | {contribution_count} |" + row = ( + f"| {'' if not link_to_profile else '@'}{username} | {contribution_count} |" + ) if "New Contributor" in columns: row += f" {new_contributor} |" if "Sponsor URL" in columns: