From 92872c16f71e695fce71caf21acc9a4036e67252 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 12 Nov 2024 11:31:45 +0200
Subject: [PATCH 01/28] chore(deps): bump commit-check from 0.8.5 to 0.9.0
(#84)
Bumps [commit-check](https://github.com/commit-check/commit-check) from 0.8.5 to 0.9.0.
- [Release notes](https://github.com/commit-check/commit-check/releases)
- [Commits](https://github.com/commit-check/commit-check/compare/v0.8.5...v0.9.0)
---
updated-dependencies:
- dependency-name: commit-check
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index b24952d..6a6deae 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.8.5
+commit-check==0.9.0
# Interact with the GitHub API.
PyGithub==2.5.0
From cedb118b3582243c813f767bb2c9195c85d27187 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 12 Nov 2024 20:29:49 +0200
Subject: [PATCH 02/28] chore(deps): bump commit-check from 0.9.0 to 0.9.1
(#87)
Bumps [commit-check](https://github.com/commit-check/commit-check) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/commit-check/commit-check/releases)
- [Commits](https://github.com/commit-check/commit-check/compare/v0.9.0...v0.9.1)
---
updated-dependencies:
- dependency-name: commit-check
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 6a6deae..e13f4c3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.0
+commit-check==0.9.1
# Interact with the GitHub API.
PyGithub==2.5.0
From 8d507e12899a9feb405c3ed546252ff9508724e0 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Tue, 12 Nov 2024 20:36:06 +0200
Subject: [PATCH 03/28] feat: support `merge-base` input (#86)
* feat: add a empty commit to main for testing
* feat: support merge-base option #85
* test: update commit-check.yml to debug
* test: checkout all branches and tags
* feat: add a empty commit to main for testing
* docs: update readme
* test: update merge_base regex
* fix: update .commit-check.yml
* docs: update README.md
---
.commit-check.yml | 5 +++++
.github/workflows/commit-check.yml | 2 ++
README.md | 26 +++++++++++++++++++-------
action.yml | 5 +++++
main.py | 5 ++++-
5 files changed, 35 insertions(+), 8 deletions(-)
diff --git a/.commit-check.yml b/.commit-check.yml
index 7d5e579..35052d6 100644
--- a/.commit-check.yml
+++ b/.commit-check.yml
@@ -23,3 +23,8 @@ checks:
regex: ^.+@.+$
error: The committer email seems invalid
suggest: run command `git config user.email yourname@example.com`
+
+ - check: merge_base
+ regex: main # it can be master, develop, devel etc based on your project.
+ error: Current branch is not rebased onto target branch
+ suggest: please ensure your branch is rebased with the target branch
diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml
index 7ee0be4..dc398fd 100644
--- a/.github/workflows/commit-check.yml
+++ b/.github/workflows/commit-check.yml
@@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
+ fetch-depth: 0 # fetch all history for all branches and tags
- uses: ./ # self test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
@@ -24,5 +25,6 @@ jobs:
author-name: true
author-email: true
commit-signoff: true
+ merge-base: true
job-summary: true
pr-comments: ${{ github.event_name == 'pull_request' }}
diff --git a/README.md b/README.md
index e58e79c..a25d56f 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit
+ fetch-depth: 0 # required for merge-base check
- uses: commit-check/commit-check-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
@@ -39,6 +40,7 @@ jobs:
author-name: true
author-email: true
commit-signoff: true
+ merge-base: false
job-summary: true
pr-comments: ${{ github.event_name == 'pull_request' }}
```
@@ -59,19 +61,29 @@ jobs:
### `author-name`
-- **Description**: check committer author name
+- **Description**: check committer author name.
- Default: 'true'
### `author-email`
-- **Description**: check committer author email
+- **Description**: check committer author email.
- Default: 'true'
### `commit-signoff`
-- **Description**: check committer commit signature
+- **Description**: check committer commit signature.
- Default: 'true'
+### `merge-base`
+
+- **Description**: check current branch is rebased onto target branch.
+- Default: 'false'
+
+> [!IMPORTANT]
+> `merge-base` is an experimental feature. by default it's disable.
+>
+> To use this feature, you need fetch all history for all branches by setting `fetch-depth: 0` in `actions/checkout`.
+
### `dry-run`
- **Description**: run checks without failing. exit code is 0 otherwise is 1.
@@ -79,18 +91,18 @@ jobs:
### `job-summary`
-- **Description**: display job summary to the workflow run
+- **Description**: display job summary to the workflow run.
- Default: 'true'
### `pr-comments`
-- **Description**: post results to the pull request comments
+- **Description**: post results to the pull request comments.
- Default: 'false'
> [!IMPORTANT]
-> `pr-comments` is an experimental feature. To use it you need to set `GITHUB_TOKEN` in the GitHub Action.
+> `pr-comments` is an experimental feature. by default it's disable. To use it you need to set `GITHUB_TOKEN` in the GitHub Action.
>
-> This feature currently doesn’t work with forked repositories. For more details, refer to issue [#77](https://github.com/commit-check/commit-check-action/issues/77)
+> This feature currently doesn’t work with forked repositories. For more details, refer to issue [#77](https://github.com/commit-check/commit-check-action/issues/77).
Note: the default rule of above inputs is following [this configuration](https://github.com/commit-check/commit-check/blob/main/.commit-check.yml), if you want to customize just add your `.commit-check.yml` config file under your repository root directory.
diff --git a/action.yml b/action.yml
index 531acb4..d23acfc 100644
--- a/action.yml
+++ b/action.yml
@@ -25,6 +25,10 @@ inputs:
description: check committer commit signature
required: false
default: true
+ merge-base:
+ description: check current branch is rebased onto target branch
+ required: false
+ default: false
dry-run:
description: run checks without failing
required: false
@@ -57,6 +61,7 @@ runs:
AUTHOR_NAME: ${{ inputs.author-name }}
AUTHOR_EMAIL: ${{ inputs.author-email }}
COMMIT_SIGNOFF: ${{ inputs.commit-signoff }}
+ MERGE_BASE: ${{ inputs.merge-base }}
DRY_RUN: ${{ inputs.dry-run }}
JOB_SUMMARY: ${{ inputs.job-summary }}
PR_COMMENTS: ${{ inputs.pr-comments }}
diff --git a/main.py b/main.py
index eb0af9c..91d2246 100755
--- a/main.py
+++ b/main.py
@@ -16,6 +16,7 @@
AUTHOR_NAME = os.getenv("AUTHOR_NAME", "false")
AUTHOR_EMAIL = os.getenv("AUTHOR_EMAIL", "false")
COMMIT_SIGNOFF = os.getenv("COMMIT_SIGNOFF", "false")
+MERGE_BASE = os.getenv("MERGE_BASE", "false")
DRY_RUN = os.getenv("DRY_RUN", "false")
JOB_SUMMARY = os.getenv("JOB_SUMMARY", "false")
PR_COMMENTS = os.getenv("PR_COMMENTS", "false")
@@ -32,6 +33,7 @@ def log_env_vars():
print(f"AUTHOR_NAME = {AUTHOR_NAME}")
print(f"AUTHOR_EMAIL = {AUTHOR_EMAIL}")
print(f"COMMIT_SIGNOFF = {COMMIT_SIGNOFF}")
+ print(f"MERGE_BASE = {MERGE_BASE}")
print(f"DRY_RUN = {DRY_RUN}")
print(f"JOB_SUMMARY = {JOB_SUMMARY}")
print(f"PR_COMMENTS = {PR_COMMENTS}\n")
@@ -45,11 +47,12 @@ def run_commit_check() -> int:
"--author-name",
"--author-email",
"--commit-signoff",
+ "--merge-base",
]
args = [
arg
for arg, value in zip(
- args, [MESSAGE, BRANCH, AUTHOR_NAME, AUTHOR_EMAIL, COMMIT_SIGNOFF]
+ args, [MESSAGE, BRANCH, AUTHOR_NAME, AUTHOR_EMAIL, COMMIT_SIGNOFF, MERGE_BASE]
)
if value == "true"
]
From 1ab8377c687393a441c2a953413925398cbd28fe Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 15 Nov 2024 01:22:54 +0200
Subject: [PATCH 04/28] chore(deps): bump commit-check from 0.9.1 to 0.9.2
(#88)
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index e13f4c3..fdcf08c 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.1
+commit-check==0.9.2
# Interact with the GitHub API.
PyGithub==2.5.0
From 4a509ea5098fa2e24945649d9198e1aece898733 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Sun, 1 Dec 2024 21:18:21 +0200
Subject: [PATCH 05/28] docs: update readme.md (#89)
---
README.md | 41 +++++++++++++++++++++++++----------------
1 file changed, 25 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index a25d56f..e96d3d3 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,15 @@
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
+## Table of Contents
+
+* [Usage](#usage)
+* [Optional Inputs](#optional-inputs)
+* [GitHub Action Job Summary](#github-action-job-summary)
+* [GitHub Pull Request Comments](#github-pull-request-comments)
+* [Badging Your Repository](#badging-your-repository)
+* [Versioning](#versioning)
+
## Usage
Create a new GitHub Actions workflow in your project, e.g. at [.github/workflows/commit-check.yml](.github/workflows/commit-check.yml)
@@ -51,33 +60,33 @@ jobs:
- **Description**: check commit message formatting convention.
- By default the rule follows [conventional commits](https://www.conventionalcommits.org/).
-- Default: 'true'
+- Default: `true`
### `branch`
- **Description**: check git branch naming convention.
- By default follow bitbucket [conventional branch](https://conventional-branch.github.io/).
-- Default: 'true'
+- Default: `true`
### `author-name`
- **Description**: check committer author name.
-- Default: 'true'
+- Default: `true`
### `author-email`
- **Description**: check committer author email.
-- Default: 'true'
+- Default: `true`
### `commit-signoff`
- **Description**: check committer commit signature.
-- Default: 'true'
+- Default: `true`
### `merge-base`
- **Description**: check current branch is rebased onto target branch.
-- Default: 'false'
+- Default: `false`
> [!IMPORTANT]
> `merge-base` is an experimental feature. by default it's disable.
@@ -87,17 +96,17 @@ jobs:
### `dry-run`
- **Description**: run checks without failing. exit code is 0 otherwise is 1.
-- Default: 'false'
+- Default: `false`
### `job-summary`
- **Description**: display job summary to the workflow run.
-- Default: 'true'
+- Default: `true`
### `pr-comments`
- **Description**: post results to the pull request comments.
-- Default: 'false'
+- Default: `false`
> [!IMPORTANT]
> `pr-comments` is an experimental feature. by default it's disable. To use it you need to set `GITHUB_TOKEN` in the GitHub Action.
@@ -106,29 +115,29 @@ jobs:
Note: the default rule of above inputs is following [this configuration](https://github.com/commit-check/commit-check/blob/main/.commit-check.yml), if you want to customize just add your `.commit-check.yml` config file under your repository root directory.
-## GitHub Action job summary
+## GitHub Action Job Summary
By default, commit-check-action results are shown on the job summary page of the workflow.
-### Success job summary
+### Success Job Summary

-### Failure job summary
+### Failure Job Summary

-## GitHub Pull Request comments
+## GitHub Pull Request Comments
-### Success pull request comment
+### Success Pull Request Comment

-### Failure pull request comment
+### Failure Pull Request Comment

-## Badging your repository
+## Badging Your Repository
You can add a badge to your repository to show your contributors/users that you use commit-check!
From cd614c1cb08de72a55a5ec4aaab7f30ca9ba4d69 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Sun, 8 Dec 2024 22:23:12 +0200
Subject: [PATCH 06/28] feat: print error log in github action (#91)
* feat: print error log in github action
* feat: add pre-commit.yml
* chore: add type to function
---
.github/workflows/pre-commit.yml | 10 ++++++++++
.pre-commit-config.yaml | 9 ++++-----
README.md | 2 +-
main.py | 32 ++++++++++++++++++++++++++++----
4 files changed, 43 insertions(+), 10 deletions(-)
create mode 100644 .github/workflows/pre-commit.yml
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
new file mode 100644
index 0000000..7ee1b19
--- /dev/null
+++ b/.github/workflows/pre-commit.yml
@@ -0,0 +1,10 @@
+name: Run pre-commit
+
+on:
+ push:
+ pull_request:
+ types: opened
+
+jobs:
+ pre-commit:
+ uses: commit-check/.github/.github/workflows/pre-commit.yml@main
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b45ec09..571d5ee 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,11 +17,10 @@ repos:
rev: 24.10.0
hooks:
- id: black
-# FIXME: main.py:109: error: Item "None" of "str | None" has no attribute "split" [union-attr]
-# - repo: https://github.com/pre-commit/mirrors-mypy
-# rev: v1.12.0
-# hooks:
-# - id: mypy
+- repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v1.12.0
+ hooks:
+ - id: mypy
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
diff --git a/README.md b/README.md
index e96d3d3..5bd3919 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ jobs:
> [!IMPORTANT]
> `merge-base` is an experimental feature. by default it's disable.
->
+>
> To use this feature, you need fetch all history for all branches by setting `fetch-depth: 0` in `actions/checkout`.
### `dry-run`
diff --git a/main.py b/main.py
index 91d2246..87434ec 100755
--- a/main.py
+++ b/main.py
@@ -3,7 +3,7 @@
import sys
import subprocess
import re
-from github import Github
+from github import Github # type: ignore
# Constants for message titles
@@ -52,7 +52,8 @@ def run_commit_check() -> int:
args = [
arg
for arg, value in zip(
- args, [MESSAGE, BRANCH, AUTHOR_NAME, AUTHOR_EMAIL, COMMIT_SIGNOFF, MERGE_BASE]
+ args,
+ [MESSAGE, BRANCH, AUTHOR_NAME, AUTHOR_EMAIL, COMMIT_SIGNOFF, MERGE_BASE],
)
if value == "true"
]
@@ -104,7 +105,12 @@ def add_pr_comments() -> int:
try:
token = os.getenv("GITHUB_TOKEN")
repo_name = os.getenv("GITHUB_REPOSITORY")
- pr_number = os.getenv("GITHUB_REF").split("/")[-2]
+ pr_number = os.getenv("GITHUB_REF")
+ if pr_number is not None:
+ pr_number = pr_number.split("/")[-2]
+ else:
+ # Handle the case where GITHUB_REF is not set
+ raise ValueError("GITHUB_REF environment variable is not set")
# Initialize GitHub client
g = Github(token)
@@ -157,6 +163,23 @@ def add_pr_comments() -> int:
return 1
+def log_error_and_exit(
+ failure_title: str, result_text: str | None, ret_code: int
+) -> None:
+ """
+ Logs an error message to GitHub Actions and exits with the specified return code.
+
+ Args:
+ failure_title (str): The title of the failure message.
+ result_text (str): The detailed result text to include in the error message.
+ ret_code (int): The return code to exit with.
+ """
+ if result_text:
+ error_message = f"{failure_title}\n```\n{result_text}\n```"
+ print(f"::error::{error_message}")
+ sys.exit(ret_code)
+
+
def main():
"""Main function to run commit-check, add job summary and post PR comments."""
log_env_vars()
@@ -169,7 +192,8 @@ def main():
if DRY_RUN == "true":
ret_code = 0
- sys.exit(ret_code)
+ result_text = read_result_file()
+ log_error_and_exit(FAILURE_TITLE, result_text, ret_code)
if __name__ == "__main__":
From e0cc9e5316ee98e3e3b46587e2a5ceb1cbe0e8b8 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 23 Dec 2024 11:55:13 +0200
Subject: [PATCH 07/28] chore: update used-by badge by github-actions[bot]
(#90)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5bd3919..904f3ff 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From a9e1fa7cfc7bf7e343d035ca39fb10d0f73f93c2 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 11:52:03 +0200
Subject: [PATCH 08/28] chore: update used-by badge by github-actions[bot]
(#92)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 904f3ff..78bc0df 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 7ad236da3dbc06f7366c04539fac7b1d316c7311 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Sun, 26 Jan 2025 18:06:38 +0200
Subject: [PATCH 09/28] docs: Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 78bc0df..8cf7e56 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ jobs:
### `branch`
- **Description**: check git branch naming convention.
- - By default follow bitbucket [conventional branch](https://conventional-branch.github.io/).
+ - By default the rule follows [conventional branch](https://conventional-branch.github.io/).
- Default: `true`
### `author-name`
From 85adfd6817121ee1d974447c148bd7c545cda55a Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 3 Feb 2025 11:39:38 +0200
Subject: [PATCH 10/28] chore(deps): bump commit-check from 0.9.2 to 0.9.3
(#96)
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index fdcf08c..87cc436 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.2
+commit-check==0.9.3
# Interact with the GitHub API.
PyGithub==2.5.0
From e3433860d76e5ac2e085b7fba66a313197d5b404 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 6 Feb 2025 14:36:12 +0200
Subject: [PATCH 11/28] chore: update used-by badge by github-actions[bot]
(#95)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8cf7e56..bb7c106 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From e6a901f3af3cb43def9dd8dcd864b03dc44a860e Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 18 Feb 2025 15:39:46 +0800
Subject: [PATCH 12/28] chore(deps): bump pygithub from 2.5.0 to 2.6.0 (#99)
Bumps [pygithub](https://github.com/pygithub/pygithub) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst)
- [Commits](https://github.com/pygithub/pygithub/compare/v2.5.0...v2.6.0)
---
updated-dependencies:
- dependency-name: pygithub
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 87cc436..fa52544 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,4 +2,4 @@
# For details please see: https://github.com/commit-check/commit-check
commit-check==0.9.3
# Interact with the GitHub API.
-PyGithub==2.5.0
+PyGithub==2.6.0
From 3b406fc3006cde0e64a760fb50063f79027259c2 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 18 Feb 2025 15:40:37 +0800
Subject: [PATCH 13/28] chore: update used-by badge by github-actions[bot]
(#97)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bb7c106..10a43ff 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 59690d7fbb42eb373d0c278db60c1afe83c9b13f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sat, 22 Feb 2025 19:51:32 +0800
Subject: [PATCH 14/28] chore(deps): bump pygithub from 2.6.0 to 2.6.1 (#100)
Bumps [pygithub](https://github.com/pygithub/pygithub) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/v2.6.1/doc/changes.rst)
- [Commits](https://github.com/pygithub/pygithub/compare/v2.6.0...v2.6.1)
---
updated-dependencies:
- dependency-name: pygithub
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index fa52544..aae4bb1 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,4 +2,4 @@
# For details please see: https://github.com/commit-check/commit-check
commit-check==0.9.3
# Interact with the GitHub API.
-PyGithub==2.6.0
+PyGithub==2.6.1
From ec47d191c2a467428c72aedf8823cc609db0e767 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 24 Feb 2025 22:27:38 +0800
Subject: [PATCH 15/28] chore(deps): bump commit-check from 0.9.3 to 0.9.4
(#103)
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index aae4bb1..8b903aa 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.3
+commit-check==0.9.4
# Interact with the GitHub API.
PyGithub==2.6.1
From cac2d49b6c81b73cefef7a842f69b872543a18dc Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Tue, 25 Feb 2025 01:54:49 +0800
Subject: [PATCH 16/28] fix: update .commit-check.yml (#104)
Ref https://github.com/commit-check/commit-check/pull/221
---
.commit-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.commit-check.yml b/.commit-check.yml
index 35052d6..f1f725f 100644
--- a/.commit-check.yml
+++ b/.commit-check.yml
@@ -15,7 +15,7 @@ checks:
suggest: run command `git checkout -b type/branch_name`
- check: author_name
- regex: ^[A-Za-z ,.\'-]+$|.*(\[bot])
+ regex: ^[A-Za-zÀ-ÖØ-öø-ÿ\u0100-\u017F\u0180-\u024F ,.\'-]+$|.*(\[bot])
error: The committer name seems invalid
suggest: run command `git config user.name "Your Name"`
From a14e83e435c351b6bd9a12eea2909ef75d514cf8 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 25 Feb 2025 01:57:01 +0800
Subject: [PATCH 17/28] chore: update used-by badge by github-actions[bot]
(#102)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 10a43ff..7bba6d8 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 9a4f9d029326c8f51a0a672055300fcc2b89d6a3 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Mon, 24 Mar 2025 23:28:27 +0800
Subject: [PATCH 18/28] docs: add used-by section (#106)
* docs: add used-by section
* docs: add more logo and name
---
README.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/README.md b/README.md
index 7bba6d8..3a5dd8d 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,22 @@ jobs:
pr-comments: ${{ github.event_name == 'pull_request' }}
```
+## Used By
+
+
+
+ Apache
+
+ discovery-unicamp
+
+ Texas Instruments
+
+ OpenCADC
+
+ Extrawest
+ and many more.
+
+
## Optional Inputs
### `message`
From 5ea0f66e396dda561c2db397b125c245ef3f133c Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 3 Apr 2025 18:27:09 +0300
Subject: [PATCH 19/28] chore(deps): bump commit-check from 0.9.4 to 0.9.5
(#107)
Bumps [commit-check](https://github.com/commit-check/commit-check) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/commit-check/commit-check/releases)
- [Commits](https://github.com/commit-check/commit-check/compare/v0.9.4...v0.9.5)
---
updated-dependencies:
- dependency-name: commit-check
dependency-version: 0.9.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 8b903aa..764bb33 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.4
+commit-check==0.9.5
# Interact with the GitHub API.
PyGithub==2.6.1
From 2f0715bb7ec18b41fdeab08e92a28ee3b5e3daee Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 3 Apr 2025 18:31:07 +0300
Subject: [PATCH 20/28] chore: update used-by badge by github-actions[bot]
(#105)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3a5dd8d..73693ac 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From a2873ca0482dd505c93fb51861c953e82fd0a186 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Thu, 3 Apr 2025 23:46:30 +0800
Subject: [PATCH 21/28] feat: verify commit-check artifact attestations (#53)
* Update action.yml to verify artifact attestations
* Update action.yml to add GH_TOKEN
* Update action.yml
* Update action.yml
* Update action.yml
* Update action.yml
* fix: create virtual env then verify attestations
---
action.yml | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/action.yml b/action.yml
index d23acfc..cdd75ea 100644
--- a/action.yml
+++ b/action.yml
@@ -51,9 +51,23 @@ runs:
# https://github.com/pypa/setuptools/issues/3269
export DEB_PYTHON_INSTALL_LAYOUT=deb
fi
+
+ # Set up virtual environment
python3 -m venv venv
source venv/bin/activate
- python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
+
+ # Download artifact
+ python3 -m pip download -r "$GITHUB_ACTION_PATH/requirements.txt"
+
+ # Verify artifact attestations
+ if ! gh attestation verify commit_check-*.whl -R commit-check/commit-check; then
+ echo "Artifact verification failed. Aborting installation."
+ exit 1
+ fi
+
+ # Install artifact
+ python3 -m pip install commit_check-*.whl PyGithub-*.whl
+
python3 "$GITHUB_ACTION_PATH/main.py"
env:
MESSAGE: ${{ inputs.message }}
From 188ce79aedf0bbe6bb80bdde87286b39d856a146 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 29 Apr 2025 01:49:28 +0300
Subject: [PATCH 22/28] chore: update used-by badge by github-actions[bot]
(#109)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 73693ac..b1581f8 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 2a2720988b5dc4de387a87aa095bcd36d5477ff5 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Fri, 9 May 2025 14:02:52 +0300
Subject: [PATCH 23/28] docs: Update README.md to add more user (#110)
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index b1581f8..c402e4c 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,8 @@ jobs:
OpenCADC
Extrawest
+
+ Chainlift
and many more.
From 6fc6f138e6cf9839ffdfd9b644e9c6ff16d18ca7 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 19 May 2025 20:42:24 +0300
Subject: [PATCH 24/28] chore: update used-by badge by github-actions[bot]
(#111)
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c402e4c..8c3955f 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 1e0b8f60abf130034231a303f520213c7da90421 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 2 Jun 2025 01:05:57 +0300
Subject: [PATCH 25/28] chore(deps): bump commit-check from 0.9.5 to 0.9.6
(#112)
Bumps [commit-check](https://github.com/commit-check/commit-check) from 0.9.5 to 0.9.6.
- [Release notes](https://github.com/commit-check/commit-check/releases)
- [Commits](https://github.com/commit-check/commit-check/compare/v0.9.5...v0.9.6)
---
updated-dependencies:
- dependency-name: commit-check
dependency-version: 0.9.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements.txt b/requirements.txt
index 764bb33..e16e5b7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
# Install commit-check CLI
# For details please see: https://github.com/commit-check/commit-check
-commit-check==0.9.5
+commit-check==0.9.6
# Interact with the GitHub API.
PyGithub==2.6.1
From f09ba795622b9cb0d0d5e668926235a1d893c7a4 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Mon, 2 Jun 2025 01:15:48 +0300
Subject: [PATCH 26/28] docs: update README.md to add SLSA badge (#108)
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 8c3955f..864c2a9 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@

[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
+[](https://github.com/commit-check/commit-check-action/blob/a2873ca0482dd505c93fb51861c953e82fd0a186/action.yml#L59-L69)
A Github Action for checking commit message formatting, branch naming, committer name, email, commit signoff and more.
From 3d725f7c79065a0868c1159b9620e2fdbf593070 Mon Sep 17 00:00:00 2001
From: shenxianpeng
Date: Mon, 9 Jun 2025 16:24:47 +0300
Subject: [PATCH 27/28] docs: update used-by section to add new user (#114)
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 864c2a9..85cb932 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,8 @@ jobs:
Extrawest
Chainlift
+
+ Mila
and many more.
From fc071f42a0383a8293e08ee74b9790667e81b071 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 9 Jun 2025 16:25:28 +0300
Subject: [PATCH 28/28] chore: update used-by badge by github-actions[bot]
(#113)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 85cb932..9e9df7b 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[](https://github.com/commit-check/commit-check-action/actions/workflows/main.yaml)
[](https://github.com/commit-check/commit-check-action/actions/workflows/commit-check.yml)

-[](https://github.com/commit-check/commit-check-action/network/dependents)
+[](https://github.com/commit-check/commit-check-action/network/dependents)
[](https://github.com/marketplace/actions/commit-check-action)
[](https://github.com/commit-check/commit-check-action/blob/a2873ca0482dd505c93fb51861c953e82fd0a186/action.yml#L59-L69)