From d243d515946737ffb04b25640794c11aa2f0b1ab Mon Sep 17 00:00:00 2001 From: Minhaz Alam Date: Fri, 2 Oct 2026 01:40:55 +0530 Subject: [PATCH 1/3] de(python): [project] add shared DE commit policy check --- .githooks/commit-msg | 15 +++++++++++++++ .github/workflows/de-commit-policy.yml | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 .githooks/commit-msg create mode 100644 .github/workflows/de-commit-policy.yml diff --git a/.githooks/commit-msg b/.githooks/commit-msg new file mode 100755 index 0000000..90978cd --- /dev/null +++ b/.githooks/commit-msg @@ -0,0 +1,15 @@ +#!/bin/sh +set -eu + +subject=$(head -n 1 "$1") +pattern='^de\((python|sql|dsa|pyspark|kafka|databricks|system-design)\): \[(prep|project)\] ([^[:space:]].*[^[:space:]]|[^[:space:]])$' +if ! printf '%s\n' "$subject" | grep -Eq "$pattern"; then + cat >&2 <<'EOF' +Invalid commit subject. Use: + de(): [] +Example: + de(sql): [prep] solve rolling revenue query +See https://github.com/minhazalam/data-engineering-interview-prep/blob/main/docs/commit-message-policy.md for setup and details. +EOF + exit 1 +fi diff --git a/.github/workflows/de-commit-policy.yml b/.github/workflows/de-commit-policy.yml new file mode 100644 index 0000000..c3e3e48 --- /dev/null +++ b/.github/workflows/de-commit-policy.yml @@ -0,0 +1,14 @@ +name: Validate DE commit messages + +on: + pull_request: + +permissions: + contents: read + +jobs: + validate: + uses: minhazalam/data-engineering-interview-prep/.github/workflows/validate-de-commit-messages.yml@main + with: + base: ${{ github.event.pull_request.base.sha }} + head: ${{ github.event.pull_request.head.sha }} From 7fd8bc49ed16923ef684ac426cff69fa68c1c450 Mon Sep 17 00:00:00 2001 From: Minhaz Alam Date: Fri, 2 Oct 2026 01:45:50 +0530 Subject: [PATCH 2/3] de(python): [project] pin the shared commit validator --- .github/workflows/de-commit-policy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/de-commit-policy.yml b/.github/workflows/de-commit-policy.yml index c3e3e48..e0c677e 100644 --- a/.github/workflows/de-commit-policy.yml +++ b/.github/workflows/de-commit-policy.yml @@ -8,7 +8,7 @@ permissions: jobs: validate: - uses: minhazalam/data-engineering-interview-prep/.github/workflows/validate-de-commit-messages.yml@main + uses: minhazalam/data-engineering-interview-prep/.github/workflows/validate-de-commit-messages.yml@1fe4838 with: base: ${{ github.event.pull_request.base.sha }} head: ${{ github.event.pull_request.head.sha }} From 9f281cd3e58a3444518f35353fd325e90c85a9f7 Mon Sep 17 00:00:00 2001 From: Minhaz Alam Date: Fri, 2 Oct 2026 01:49:58 +0530 Subject: [PATCH 3/3] de(system-design): [project] use full shared policy revision --- .github/workflows/de-commit-policy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/de-commit-policy.yml b/.github/workflows/de-commit-policy.yml index e0c677e..bbffa8f 100644 --- a/.github/workflows/de-commit-policy.yml +++ b/.github/workflows/de-commit-policy.yml @@ -8,7 +8,7 @@ permissions: jobs: validate: - uses: minhazalam/data-engineering-interview-prep/.github/workflows/validate-de-commit-messages.yml@1fe4838 + uses: minhazalam/data-engineering-interview-prep/.github/workflows/validate-de-commit-messages.yml@1fe4838abed2fefeb5e118eb713e1439e9a328e9 with: base: ${{ github.event.pull_request.base.sha }} head: ${{ github.event.pull_request.head.sha }}